Thanks for the help =) El martes, 10 de julio de 2012 15:25:02 UTC-5, cricket escribió: > > No underscore in model names. > > class SiegjalFuentes extends AppModel > > Also, you no longer need the $name var (was for PHP 4.x). > > > On Tue, Jul 10, 2012 at 2:58 PM, MrMariscal <[email protected]> > wrote: > > I have a problem with naming a model my database table is named: > > siegjal_fuentes so when I use in my controller the: > > $this->loadModel('SiegjalFuente'); it works perfectly normal, I can even > > insert new records, I'm trying to define a model so I can give specif > rules > > for database insertions, but I cannot get the right name of the file so > cake > > recognizes it, I defined the model: > > > > <?php > > class Siegjal_Fuentes extends AppModel { > > public $name = 'Siegjal_Fuentes'; > > public $primaryKey = 'idejemplo'; > > } > > ?> > > > > Here it should chamge the primary key field and must give me an error as > > long as there is not idejemplo field in the table, but it works so I > guess > > it is inferring the model and it's not taking mine. > > > > Any suggetions? > > > > -- > > 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 > > [email protected] For more options, visit this > group at > > http://groups.google.com/group/cake-php >
-- 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 [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
