We are developing a new site in the Zend Framework, while we maintain and improve our old version (plain old PHP files).
In some cases, this means a waiting time for programming, which we could use to some extent for our new versions.
We have full server control and complex 301 rewrites on Apache, so we could rewrite o symlink as needed. Our goal would be to include Zend in a subdirectory of our site so that we can at least use its libraries for any PHP programming, and even better so that the database models and as much code as possible can be reused on our exclusively zf site when it is finished.
Would it be worth the hassle? Can anyone point out a tutorial or best practices to do this?
Many thanks.
You can completely write ZF-based pages one at a time with new functionality or replace old parts of a site.
You pretty much write new pages as needed, but instead of feeding through index.php, as usual, you mod_rewrite to direct specific URLs to a new zf-based page:
RewriteEngine on RewriteBase / # Not if there is a file or directory that matches RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # a new, clean URL can go to an old page RewriteRule ^online /online_now.php # other pages go to a ZF-frontcontroller, in zf.php RewriteRule ^about/ /zf.php [L] RewriteRule ^account /zf.php [L] RewriteRule ^data /zf.php [L] RewriteRule ^faq /zf.php [L]
, - Zend Framework. .htaccess( , ), - , Zend.
, , .
, , , .
, , , , . ( 10 ), Zend Framework , .
. , Zend Framework, , , . , .
Source: https://habr.com/ru/post/1717078/More articles:Work with CSV - SQLite against the shell (join / paste / cut) - shellSetting up a SQL table query - sqlHow to use StandardAnalyzer with TermQuery? - pythonWho should perform code verification? - code-reviewIs it possible to build a language with full turing in which each line is the correct program? - language-agnosticCreate from the command line to create a binary for Mac OS 10.5 (and 10.6) - command-lineHow can I use std :: remove in a container with std :: tr1 :: weak_ptr? - c ++MySQL Explains Anomaly - sqlGetting Started with Wizard-Free WCF - wcfAssertionFailedException when creating a CellEditor in Eclipse - eclipseAll Articles