Monday, November 2, 2009

Re: Converting Existing Project into Cake PHP

Hi,

I can't really help you with your questions on the basis of
experience, but I believe that cake should handle that pretty well and
alot of optimizations can also be done on database side. But I already
read about the possibility of lazy loading models in cake, maybe this
is something you could use (just ask google).

After a look in the \libs\model\model.php, it seems like the modified
and created fields are hardcoded. As workaround you could try to copy
this file into your app/models directory, it should be used instead
and you can change the field names there without having to change the
core.

There also exists a book about refactoring legacy applications, that
could help you.
http://www.easyphpwebsites.com/books/v/Refactoring-Legacy-Applications-Using-CakePHP

Regards,
Michael


RakeshGouru schrieb:
> Hello,
>
> Im working in a project, in which i have more than 150 Database
> Tables, and expecting it may grow to 400 Tables in a Year.
> For this project, i have more than 10 modules and even the modules
> will grow in a good count.
> Can i convert this project into Cake PHP.
> I have just recently going through the Cake PHP, what i studied till
> now is
> Table name should be plural,
> Primary Key - id
> created
> modified
> above two fields to update created time and modified time. But most of
> my tables are not in plural, and i can overwrite primary key by using
> $primaryKey in model, but again created and modified are with
> different names, How can i overwrite them.
> How to handle above situation.
> Most Importan Question is Is CakePHP suitable for going with this big
> project, will it serve well.
--~--~---------~--~----~------------~-------~--~----~
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: