Is it possible to use zend_application and zend_bootstrap as non mvc? I'd like to use them but without the zend_view.
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
yes you can.
there is several way if you don't want to use zend view
don't invoke run() method of zend application, so request will not hit your zend controller, and no zend view will be instantiated :
$application = new Zend_Application( APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini' );
$application->bootstrap();
disable view render & layout at controller
Yes, just strip the appropriate resource parts from your application.ini
Further details