Re: Model and Controller aliases

2010-04-16 Thread Hendry
I would rather put the descriptions in the comments, especially if you only use it when reviewing the files. # Hendry On Sat, Apr 17, 2010 at 1:59 AM, Scott wrote: > Some of my model and controller classes have very long, and therefore > descriptive, names.  The problem is that it's

Re: Remove "Strip "Welcome to CakePHP Console" from shell output

2009-07-28 Thread Hendry
Hi Piotr, Try to look into: cake/console/libs/shell.php and change the function _welcome , or just simply comment out the $this->_welcome() method call in the function startup() Regards, Hendry On Wed, Jul 29, 2009 at 2:36 AM, 3lancer.eu wrote: > I'd like to get rid off the welcome

Re: jquery cakephp post data problem

2009-07-05 Thread Hendry
What I would suggest is, try to install firebug and use firefox, you could see what data exactly being posted and it would help you more on debugging. Regards, Hendry On Sun, Jul 5, 2009 at 11:14 PM, stZen wrote: > I am getting a response back (with an error saying there is no view > se

Re: generateList() returning SQL error.

2009-07-04 Thread Hendry
What cake version are you using now? If it is cake 1.2, generateList is deprecated, you should use find('list'). Also, would be more helpful if you post your Book and Author model and its relationship here. ~hendry On Sun, Jul 5, 2009 at 12:53 PM, centr0 wrote: > the error msg is

Re: Forms with multiple tables

2009-07-04 Thread Hendry
Hi Travis, Please read http://book.cakephp.org/view/438/displayField Regards, Hendry On Sun, Jul 5, 2009 at 7:36 AM, Travis wrote: > Thanks, That worked. > > I have one more question, is there a way I can tell it what field to > put in the select, right now it is using the fiel

Re: Write to log table for every successful update/delete

2009-07-04 Thread Hendry
THanks Chris, I'm testing it now ;) Regards, Hendry On Sat, Jul 4, 2009 at 6:25 AM, BlueC wrote: > You could use the logablebehavior I have used it and it is really > excellent!! It even integrates with auth component so you can log and > see who did what. It can also log inserts

Re: Automagically filling table-fields?

2009-07-04 Thread Hendry
Hi, should be Post not Posts: $this->data['Post']['username'] = $this->Auth->user('username'); Regards, Hendry On Sun, Jul 5, 2009 at 2:58 AM, eMilk wrote: > This is my PostsController::add(): >        function add() { &g

Re: Automagically filling table-fields?

2009-07-04 Thread Hendry
Hi, That's weird, could you test using this line, just to make sure you implement the AuthComponent correctly: $this->data['Post']['username'] = 'Hendry'; Regards, Hendry On Sun, Jul 5, 2009 at 3:28 AM, eMilk wrote: > Hi Hendry, > > Thanks - d

Re: Write to log table for every successful update/delete

2009-07-03 Thread Hendry
Hi Carlos, Yes, I can use the model's callback method (aftersave and afterdelete) but then, since this would require writing to another table, which means call to other model from inside a model, wouldn't this break the MVC pattern? Regards, Hendry On Sat, Jul 4, 2009 at 12:47