cakephp

Auth in CakePhp using 2 tables

I would like to know how to make a login in CakePhp when my data comes from 2 tables. Due to the specifications in the application the data in the table is divided like this: users: details: id id idDetail username group_id pas...

File_get_contents not working?

Hi, I am using cakephp. I am trying get data from facebook using file_get_contents. I get a warning. Warning (2): file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration Warning (2): file_get_contents(https://graph.facebook.com/XXXXXXX/?access_token=111978178XXXXXX|2.lg65A3c...

Using plugins slows down CakePHP

I am using 7-8 plugins with CakePHP, and the webpage takes from 3 to 6s to load . Why do plugins slow down CakePHP so much? O_O. I found out it is slow because it loads model in plugins (I disabled Cake's cache globally) (I use localhost to develop the website, Debug level = 2) Using DebugKit, I found out Component initialization and st...

How to extract information from the httpsocket get request?

Hi, I am using cakephp. I am trying to use httpsocket to get information. <?php App::import('Core', 'HttpSocket'); $HttpSocket = new HttpSocket(); $results =$HttpSocket->get('https://graph.facebook.com/XXXXXXXXXXX/', 'access_token=111978XXXXXXXXXXX|2.1lD7XrS1nXXXXXXXXXXX__.3600.1279976400-XXXXXXXXXXXXX|9vJZuRDvlzLhFfXXXXXXXXXX...

cakePHP 1.2/1.3 Manual in CHM format

Can anyone provide me some useful links to download CakePHP 1.2/1.3 Manual including API version in CHM format, which runs locally without any internet usage? It would be helpful for me! ...

How to facebook user's information.

Hi, I am using facebook graph. I am able to retrieve the access_token. Now I want to get info using https://graph.facebook.com/XXXXXXXXX/?access_token=111978178853984|2.1lD7XrS1n7C3UgudmiSpQg__.3600.1279976400-10000XXXXXXXXX|9vJZuRDvlzLhFfGkqGkg92KmDSE. I already multiple ways to retrieve json output. 1) jquery.getJSON method - Fal...

CakePHP REST Authorization problem on POST and PUT (I get 404)

I'm developing a REST api for a application, and everething went fine up until now... I'm building a header with login data, GET and DELETE work fine but when I try to send a PUT or POST request I get 404... When authorization is off (i.e., I do not check it in cake) everything works fine. Here's the controller code: class SitesContr...

[CakePHP] Why is the first item in select menu always empty?

Hi all, Using CakePHP, I created select-option form element with: echo $form->select('items', $numeration , array('selected' => 0)); It creates selection box, but the first option is always empty. How can I get rid of that empty option? I did not manage to do anything with showEmpty option... please help.... :-(( UPDATED: cakeph...

CakePHP - Using User model in SecurityComponent

Hello, I'm creating a application based on REST requests and I'm using SecurityComponent for HTTP Authorisation. My question is - how can I use a User model with it? Instead of giving a array of usernames and passowrds... Cheers, Lucas ...

Opinions: CakePHP or CodeIgniter for eCommerce

I know there are many options out there for eCommerce and I know there are many opinions on these two frameworks that differ beyond belief. I am looking for thoughts on which framework would be easier to use to create a site that will be used to sell prints of photos. The prints will be sold in various sizes, each size being added to th...

Specifying record criteria on more than one model in one pagination call.

Hi all, I am stuck on pagination in CakePHP 1.3. I am trying to paginate feePayment records based on certain criteria. feePayments belongs to Students which in turn belongs YearGroups. I want to paginate 'unpaid' feePayments for each year group. The problem I am having is that the SQL query seems to only take into account the conditio...

[CakePHP] How to use session defined variables in controller?

hello, how can i use session variables in my controllers? do i need some specific helper, or component? i need to use some of Auth defined variables, like $session->read('Auth.User.user_type_id') ... etc. tnx in adv! ...

CakePhp ACL permissions

Checking my application, I saw that every user can access to all the actions in it. I'm using cakePhp build-in ACL Component... Checking permissions through terminal displays correctly is the user is allowed or not to call a certain action. But once I'm checking the application on the browser all users have access to every action. Any cl...

MySQL error when using send() method of Email component in CakePHP

I've followed the tutorial here: http://book.cakephp.org/view/1286/Sending-a-basic-message, which I have successfully used before with 1.2. However, in 1.3, with a different application, I get the following error: Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL ser...

How to write content type in cakephp ?

Hi, How can i write ["Content-Type"] = "text/xml" in cakephp and in which file i have to include that one. Please Help. Thanks. ...

cakephp css and images problem at localhost.

I've downloaded a project from a root server. It acts there very fine. But when i run the project in the localhost on xampp environment, didn't find the any css nor any images. How can i solve this problem? ...

Inegration of wordpress in cakephp Application

how i can extend the cake-app-authentication, so that the user is automatically logged in to the wordpress blog ...

How to show RSS feeds from my Wordpress blog in my CakePHP website?

Hello, How i can show the RSS Feed from my WordPress blog into my CakePHP website? I need the result to be a list where i can use the html code: <ul> <li>feed item 1</li> <li>feed item 2</li> ... <li>feed item n</li> </ul> ...

Manipulating Order of JOINS in CakePHP

I have the following problem with CakePHP: In my model, Deposit belongsTo Account, and Account belongsTo Customer. When querying Deposits, I get the Account information, but not the Customer's, by default. If I set Deposit->recursive to 2, I get the Customer information (and a whole lot more), but CakePHP esentially throws one SEL...

cakephp form validation

does anyone know if there is a VALIDATE function for a form in cakePHP and view the errors array? i.ve checked the documentation but the only thing i found is the SAVE function, i just need to know if the data i send is valid and review the errors manually. ...