Sunday, September 4, 2011

Re: CakePHP without naming convention. is it possible?

http://book.cakephp.org/view/1057/Model-Attributes is a good place to start.

you can configure in most circumstances cake to talk to any old database - you just end up losing some of the magic and writing more code as a result.

for a model which does not comply with the convention you will at least need to:

1) define the table name ($useTable)
2) define the primary key ($primaryKey)
3) define the display name ($displayName)

you'll also need to provide more verbose settings in the model associations in order to get them to play nice...



On Mon, Sep 5, 2011 at 9:34 AM, Cruisine <cruisine87@yahoo.co.id> wrote:
hi guys, i need to know something important about naming convention.
yeah, i've been using naming convention while developing all my app
all the time. but recently a problem appeared. let say  i've got a
project to re-developing an app ( from non-cakephp to cakephp) which
already had a database. and of course since the app hadn't been built
by cakephp the database also didn't follow the cakephp naming
convention rules.
the question i have is, how do i make an application using cakephp
with that database?is it still possible to  built a cakephp project
without following naming convention rules?

need ur help soon.thank you.

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate