Placing a cakephp app in a subdir but making it act as if on root

2012-03-14 Thread Burningfuses
appreciated. Cheers, Burningfuses -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake

model-delete() returns false but record gets deleted

2011-10-02 Thread Burningfuses
Hello. I have the following code in my controller called comments_controller: if ($this-Comment-delete($id)) { ... } At localhost everything works as expected: the table row with the provided ID gets removed and the if statement gets executed. But as soon as I move my code to the server, the if

Re: model-delete() returns false but record gets deleted

2011-10-02 Thread Burningfuses
Hello again. I just found out what the problem was. I have a trigger in a table and the delete action was causing a recursion in my MySQL. Since I had debug set to 0, I wasn't able to see what the actual problem was. The funny thing is that this trigger is working fine locally, but not on the

calling Controller::render() from a model

2011-08-18 Thread Burningfuses
triggerCallback() on a non- object in /Users/x/Documents/www/cake/libs/controller/controller.php on line 864 I was wondering what would be the right way to do this. Please let me know if I was able to make myself clear. Thanks a lot, Burningfuses -- Our newest site for the community: CakePHP Video

how to call a controller function from a model

2011-08-18 Thread Burningfuses
a lot, Burningfuses -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr

Re: Where to place code meant to be universally accessible?

2011-08-12 Thread Burningfuses
I opted to go by Miles' suggestion and created a static class in vendors. So far it is working great. Thanks a lot for all the help guys. Best, Burningfuses On Aug 12, 2:17 pm, Miles J mileswjohn...@gmail.com wrote: That's not what models are for. Models are meant to represent an entity

Where to place code meant to be universally accessible?

2011-08-11 Thread BurningFuses
should I put them? Is there a recommended cake guideline for such a thing? Thank you, Burningfuses -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions

Re: Error: Database table acos for model Aco was not found.

2011-05-30 Thread BurningFuses
Make sure that your files (controllers) have the correct capitalization. Once I accidentaly typed an uppercase where it shouldn't be and it brought chaos to my app. On May 27, 1:11 am, 8vius lmd...@gmail.com wrote: Hey all, I'm new to CakePHP and I'm using it at work. I have a Mac running Mac