it is, but as others are saying it should work with a little extra
configuration. Good luck and get back to us with how you find it.
@phpMagpie
On Sep 6, 2:10 am, Greg Skerman <gsker...@gmail.com> wrote:
> I told you how to do it :) its not impossible, you just risk it becoming an
> unmaintainable mess.
>
> There are many tables I use which come from other systems/are static dumps
> of tables out of systems i need to use as reference data but don't want to
> muck up the table definitions etc - and I routinely tell cake "this is this,
> that is that"...and all is good....
>
> Its just something that needs to be dealt with carefully - if you have
> hundreds of tables and nothing else depends on them, and you have the
> time/budget to do it, it may be worth altering the tables to be more cake
> friendly....but if not, just configure your models and document everything
> carefully so the next developer who has to come along knows what it is
> you've done to make it work.
>
>
>
>
>
>
>
> On Mon, Sep 5, 2011 at 5:20 PM, Cruisine <cruisin...@yahoo.co.id> wrote:
> > to be honest,i don't really want this happen.but what am i supposed to
> > do?i cant build new database since the current database have lots of
> > datas inside. after i read ur reply i started to think like that as
> > well.my work will be hard later. i have to define lots of things on
> > the model and i don't have an idea about the unpreddicted issues which
> > will follow later.
>
> > do you have any idea to solve this problem?
>
> > On Sep 5, 10:39 am, Greg Skerman <gsker...@gmail.com> wrote:
> > >http://book.cakephp.org/view/1057/Model-Attributesisa 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 <cruisin...@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 sitehttp://ask.cakephp.organdhelp
> > > > 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
> > > > 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 sitehttp://ask.cakephp.organd 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
> > 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment