i would go for $this->tablePrefix.$this->table prefix you would need if you used in your config
tip: use a proper IDE which auto-completion this will show you the available names/fields inside your model On 15 Jun., 19:07, Tilen Majerle <tilen.maje...@gmail.com> wrote: > $useTable > -- > Lep pozdrav, Tilen Majerlehttp://majerle.eu > > 2011/6/15 Celso <cels...@gmail.com> > > > > > > > > > Hi ! > > How get the database name from a Model? > > > Because the $useDbConfig returns only the name of config.. > > > thanks, > > celso > > > -- > > Our newest site for the community: CakePHP Video Tutorials > >http://tv.cakephp.org > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help > > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > > cake-php+unsubscr...@googlegroups.com For more options, visit this group > > athttp://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php