I've not had experience with Laravel, but with regards to the "magic" being 
a con, specifically when it comes to the convention of models, table names 
and controllers, I've had plenty of experience with using legacy databases 
that don't conform to the convention, and have still been able to use them, 
without changing the database to suit. 

That flexibility one of the reasons I use CakePHP.  

You can override $name on the controller, and use a controller name that 
doesn't conform to the convention.

You can override $useTable 
[http://book.cakephp.org/2.0/en/models/model-attributes.html#usetable] on 
the model, to map to a table that doesn't use the plural convention. And 
you can use $useTable to suppress mapping to a table altogether (for 
implementing web services via the model).

The only time I've had to fight CakePHP is when I want to extend the 
FormHelper to add additional types, or override existing types for 
alternate output and convenience.  However, that doesn't happen very often.

With a minor modification to the core (index.php), I've never had success 
in integrating CakePHP Sessions into legacy applications so I can gradually 
migrate and introduce new functionality using CakePHP to the legacy 
application.

If there are specific cases of magic that you're concerned with, let us 
know, and someone could probably tell you if what you're wanting to do 
would be a problem or not.

Regards
Reuben Helms


On Monday, 20 January 2014 12:17:27 UTC+10, Sam wrote:
>
> Dear Cakephp gurus,
>
> I have used cakephp in a past project (simple one) and I would like to 
> continue using cakephp in a new project. There are some voices which 
> advocate using Laravel which is an up-and-coming php framework. 
>
> For experienced programmers who know something about both frameworks, 
> could you tell me what are the pros and cons?
>
> Since I use cakephp before, here are my comments about cakephp;
> Pros
> - It uses convention over configuration
> I like this because I am forgetful. If the framework uses configuration 
> over convention, I may miss out things to configure when things are changed 
> or added to the code.
>
> Cons
> - It does quite a bit of magic in the background(can be good or bad) and 
> loses flexibility in the process. If the programmer wants to do special 
> things, he may have to fight cakephp.
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to