When are the frameworks used in PHP or any other language used?

When there is a need to use frameworks in PHP. I heard about the structure of zend and symfony. I read about them, but still do not understand what exactly we use the software development framework.

+3
source share
4 answers

The framework often provides you with the boiler plate code, which you will have to use otherwise, for example: Session management, Templating, access to the database, etc. etc.

From the point of view of proper software development, the use of these frameworks, as a rule, contributes to the correct design with such templates as MVC (Model, View, Controller). Using this template, you can increase code reuse, worry separation , etc.

, , , , . , , - , , SQL. . ( ), - , sql.

, , - URL-. domain.com/posts/edit/5. URL- "" , "edit" 5. , , , .

, html, css, javascript .., . , . , /, ( , ..).

:

- , / , .

, , . . , , .

PHP:

CodeIgniter

CakePHP

Zend Framework

Symfony

:

CodeIgniter

CakePHP

Zend Framework

Symfony

, , CodeIgniter. , , , , .

( !), PHP:

http://en.wikipedia.org/wiki/Comparison_of_web_application_frameworks#PHP_2

+10

. , , , , , .. php. , , /etc...

+2

CodeIgniter - -.

, , , , .. , , .

, , , .

Macromedia Dreamweaver -. Dreamweaver Adobe, - , . , , , " ".

.. -, , .

+1

, ( ), , , , , , , , MVC REST, .

Thus, the naming convention for classes and objects and structures, the structure of files and directories, the location of third-party code, the template system, localization / internationalization, etc. a well-designed (and mature) structure will be well defined and accessible through third-party or community documentation.

0
source

All Articles