Zend framework: enable external module in bootstrapper or create plugin

I am new to the zend framework and have very serious doubts. I created one application that follows its own structure. I want to integrate this application into the zend framework. whenever a request arrives in a zend environment, I want to redirect the same request to my application in order to perform some operations, and then return control to the zend framework. the question is, is it good to include your own created external modules directly inside the index.php or bootstrapper zend structure or create a plugin for this?

+3
source share
3 answers

For best practice, I think you should use a plugin.

However, there are times when you want to bypass the Zend Framework completely for performance . You can use the external module and exit before starting the controller.

0
source

I think it’s better to create a plugin. therefore, you can access the request object before the zend process processes it.

0
source

Zend Framework (ZF) MVC , , . ZF, , ... ...

PHP ZF.

ZF libray :

  • MyProject
    • ...
    • MYLIB
    • Zend
    • .

You will need to register the libraries, and ZF startup will handle everything else when calling different classes from the project code.

0
source

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


All Articles