PHP code design, structure, template ..?

I want to get information from experienced PHP developers on how to structure the code.

I feel like my apps are getting dirty and disorganized soon.

Do I need to start coding in OO? Should I use MVC? How about the design? What other options are there? How can I better organize and structure the application code (outside the correct indentation and name)?

Links to resources are welcome :)

Should I decide to start coding with MVC? Should I use any frameworks or just save everything? What is your suggestion.

+3
source share
6 answers

, - , . Zend Framework : http://framework.zend.com/

, PHP, "Advanced PHP Programming" . , - , .

, , . , , , / .. (, , ) , .

+4
+2

JAVA - , . , php, . maven, "WOW" , . MVC, - = , Model = page (sql), Viewer = page.
, http://php-html.net/tutorials/model-view-controller-in-php/.

+1

. Smarty . , .

0

.

, , , . - , MVC, , . , , , .

MVC . , AJAX . , .

. , , . , iGoogle.

.

0

I suggest you try working with some popular frames. This way you can read clean code and shape your style. "Yii Frame" is good for me. Of course, it will be useful to read about design patterns not only for your php skill, but also for programming skills in general.

0
source

Source: https://habr.com/ru/post/1776295/


All Articles