Thursday, December 2, 2010

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: