How much "unlearning" when switching to the PHP framework

I know the benefits of using the PHP framework (not first hand though, just by reading SO, etc.). But what I don't hear about is the amount of "unlearning" that the structure requires. When using the framework, you manage a new framework, and you need to β€œlearn” a lot of things and relearn them in a new way, as your new structure requires. It is true, and which structure is most flexible when it comes to this aspect of non-appearance?

+6
php codeigniter cakephp zend-framework
source share
4 answers

Not really, it just depends on how / how you learned something.

It also depends on the specific structure, some add useful functions and tips, while others suggest (or force) to use various forms of development, philastructure and functions.

In php, for example, you can still do pre_replace ('[A-Za-z]', $ user.name), it will work anyway, but is_alphabetical ($ user.name) will do the same.

You can still use the same functions, but some frameworks need to redesign your program structure, while others simply provide helper functions, functions, and database classes to use.

I have heard that http://codeigniter.com/ is the most expanding structure, flexible when it comes to program structure, and http://cakephp.org/ is much more self-confident.

This is not like ruby ​​on rails or django, where you learn a complete new language, you still have and can use php, but it’s best to stick to good programming principles with the framework rather than working around them with php.

+2
source share

I think that’s why zend and the symphony are so good: you can use what you want / need. Therefore, you do not need to learn anything.
(although after you start, you add more and more elements to your application logic)

+2
source share

This may be true if you are already using the framework and consider switching to another one. The framework, as a rule, differs in how the common tasks are implemented.

If you are not using the framework yet, you will only "wean" what is cumbersome and difficult to implement manually. This should simplify your programming, so let's try it.

+1
source share

I would say that it does not study less and learns more to do something differently. A frame like Zend is more flexible because it allows you to do anything almost the way you like, and just use bits and fragments of the framework whenever you want. Cake OTOH-like frame is stiffer and will make you learn more to do The Cake Way β„’ stuff; but the Old Way is likely to work in most cases, although it may not be optimal.

As the saying goes, "There's still PHP in CakePHP" (in both Zend and CodeIgniter). Meaning, any PHP code will work, there are not so many cases when the structure blocks you from performing certain actions. Moving from PHP to another language will require much more time to learn.

When you begin to study structure, you will gradually choose different, more effective ways to do things, you will not have to forget everything that you know right away.

+1
source share

All Articles