开发者

Wordpress front end and Zend Framework /members area

I'm planning to use wordpress as a cms front end for a website, and have zend framework used in a members area (/members). The members area开发者_如何转开发 is going to be 100% custom made in zend framework. How would my htaccess, index.php or bootstrap need to be configured to have the /members folder as ZFs root level? Thank you


Assuming that you are using the standard index.php you only need to drop it into /members (along with .htaccess) and make sure that the paths defined in the index.php are defined correctly (e.g. APPLICATION_PATH points to the projects application directory).


the zend framework will have directory structure

   project
     |
     |--public (you can install wordpress site here)
     |--library
     |--application
     |--other stuff

you install wordpress site inside public folder and copy all the contents of public inside a direcory member including .htaccess. and you don't need to modify the content of it (i think so)

and your new directory structure will be like

   project
     |
     |--public_html (you can install wordpress site here)
     |  |
     |  |--all your wordpress site here
     |  |--member
     |      |---all your zend framework files here
     |  
     |--library
     |--application
     |--other stuff

all you need to chage is the index.php fie of zend framework

defined('APPLICATION_PATH')
    || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../../application'));

instead of regular one

defined('APPLICATION_PATH')
|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));

and i must work however i am not so sure(worked in mine).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜