Questions about the 2.0.x branch of the CakePHP MVC framework. If your question applies to CakePHP in general, use the tag [cakephp].

learn more… | top users | synonyms

0
votes
0answers
8 views

cakephp beforeSave function not working with update

I am working on a CakePHP 2.x. The scenario is I am sending an encrypted and decrypted data to the database. So in order to do this I have written beforeSave function in each modal. So I want to know ...
2
votes
3answers
15 views

How to detect if the current page is the homepage with CakePhp?

How can I detect if the user is on the homepage of my website with CakePhp? May I use $this->webroot? The goal is to do something only if the current page is the homepage.
0
votes
0answers
8 views

CakePHP 2.2.8 helper problems

I'm using this version of the framework, but when I write a helper like this: <?php echo $this->Html->css('forms'); ?> It outputs this: <link rel="stylesheet" type="text/css" ...
0
votes
1answer
17 views

cakePHP File Download was not found or not readable

I've been struggling now for an hour trying to fix this. I used this to download file from app/uploads/ directory. It says the directory not found or not readable. Yet i checked it and it was there ...
0
votes
0answers
16 views

cakephp how to remove authcomponent errors

i am working on a Cakephp 2.x .. the problem which i have is whenever there is an error comes on my webapp ..these error always shows on the top of the page and then the actual error come.. ...
0
votes
0answers
15 views

jQuery File Upload Plugin in CakePHP

I am trying to use this jQuery File Upload plugin in my CakePHP project: http://blueimp.github.io/jQuery-File-Upload/ The demo works fine, it also works in my CakePHP project when I place the 'server' ...
3
votes
1answer
25 views

CakePHP: authorizing actions based on belongsTo relationships

Let's keep it simple. A project has just two models: User (hasMany Project) Project (belongsTo User) Users are only allowed to perform actions on the projects which they own. No one else's. I ...
0
votes
0answers
17 views

cakephp remove controller name from url

i am working on a cakephp 2.x .. right now i have a function called forgetpassword and resetpassword in my userscontroller .. i am sending an email to a user.. i am sending a url like this ..this ...
-2
votes
0answers
15 views

Undefined variable: id

I have created a blog posts application in cakephp. But when i run this on localhost, it is showing an error: "Undefined index: id [APP/View/Posts/index.ctp, line 16]" and "Undefined index: title ...
0
votes
1answer
36 views

Working with Virtual Fields when using model alias

I'm a CakePHP newbie. I have been looking for an answer to this for a while. I followed directions from RichardAtHome in answer regarding autocomplete in CakePHP (autoComplete CakePHP 2.0). I set up ...
0
votes
0answers
9 views

An internal error has occured

I'm Vaijanath. I'm using cakephp installed on lamp. Now i have created a blog application, but when i run this on localhost/cakephpproject/cakephp/ it is showing an error: "An Internal Error Has ...
0
votes
1answer
26 views

Form element array cakephp

I am in need of all the arrays and subarrays for a form element. When referred cookbook, I found only the subarrays for limited elements. For example, <?php echo ...
0
votes
1answer
23 views

CakePHP: How to find columns ordered by number of related models?

i hope someone is able to help me. i have two tables websites and likes. each website has likes. i can't figure out how i can get all websites ordered by the number of its likes. this sounds pretty ...
0
votes
1answer
22 views

cakephp data from multiple tables join query

I am working on a Cakephp 2.x. I have a query like this: $this->bindModel(array( 'belongsTo' => array( 'Contact' => array( 'className' => 'Contact', ...
0
votes
1answer
10 views

Debug CakePHP HttpSocket data being sent in get

Is there a way to see the raw data being sent in a HttpSocket->get()? I get the response from the server but I can't tell if the headers I am sending are formatted correctly or if there are any ...

1 2 3 4 5 154
15 30 50 per page