Re: What is a__constructor
I would suggest learning the basics of PHP and OOP programming before jumping into something like this. http://php.net/manual/en/language.oop5.php On Dec 3, 9:38 am, Ryan Schmidt wrote: > On Dec 2, 2010, at 14:09, João Moura wrote: > > > i dont found a good explanation about what is a constructor and how it works > > Have you tried: > > http://www.google.com/search?q=php+__construct > > The first link in the results is to the PHP documentation about constructors > and destructors, which is a good place to start. > > This is not a cakephp-specific question. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: What is a__constructor
On Dec 2, 2010, at 14:09, João Moura wrote: > i dont found a good explanation about what is a constructor and how it works Have you tried: http://www.google.com/search?q=php+__construct The first link in the results is to the PHP documentation about constructors and destructors, which is a good place to start. This is not a cakephp-specific question. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
What is a__constructor
Srry about this small doubt, im starting on CakePHP, but i already know the language, i saw the api, but i dont found a good explanation about what is a constructor and how it works, somebody could explain to me... and giving a example too please? Like this or another one idk : function __construct($id = false, $table = null, $ds = null) { $this->primaryKey = 'COD_USUR'; $this->useTable = 'USUR'; parent::__construct($id, $table, $ds); } If somebody five me a good link with a tutorial i cant learn by myself too lol. Tks. -- *Joao Moura** * *Web Developer **+55 11 62114486* Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en