Move Symfony framework out from my sandbox application

一个人想着一个人 提交于 2019-12-25 16:43:10

问题


I use Symfony Sandbox structure in my development. Now, thinking of future ugrades, I want to separate the Symfony application out from my application and put it in a separate folder. The only problem is that it seems my application and Symfony are hopelessly intermingled together.

Anyone has any idea how to separate the Symfony engines out from my sandbox application?


回答1:


After the proper installation of symfony you just have to change the path in config/ProjectConfiguration.class.php from

require_once dirname(__FILE__).'/../lib/symfony/autoload/sfCoreAutoload.class.php';

to your new symfony library directory, like this:

require_once '/usr/share/php/symfony/autoload/sfCoreAutoload.class.php';




回答2:


I solved this issue and blogged about it here.



来源:https://stackoverflow.com/questions/823722/move-symfony-framework-out-from-my-sandbox-application

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!