PHP Zend Framework ile kendi çerçevesi karıştırma daha iyi bir yol

0 Cevap php

Geçenlerde sonraki kendi çerçevesi Zend framework kullanmak başladım. Modülü "ortak" htaccess bir yeniden yazma durumu olması gibi için, örneğin şu anda çözüm

RewriteCond %{REQUEST_URI} ^./partner/?(.)
//redirect to build ZF
RewriteRule ^.*$ public/partner/index.php

/ / Ve önyükleme dosyaları

//index.php for Zend set_include_path(APPLICATION_PATH . '../../../library/php/');
include_once 'Zend/Loader/Autoloader.php';

//index.php for own framework set_include_path(get_include_path() . PATH_SEPARATOR . 'library/php/');

Sadece o ARMUT bileşenleri ile yaptığınız gibi Zend bileşenlerini kullanmak mümkün mü?

Or the question with different perspective
Am I required to choose one of the two MVC patterns to go along with?

At the end I want to be able to use any library/framework for any module.

0 Cevap