开发者

Doctrine inextricable string of require_once dependancies

I am trying to use a pear installation of Doctrine, it seems like all of the Requires and Class Names are just looking in the wrong places... do I need to be updating this all in cli-config.php (or similar file)? I don't understand how to get all of these things resolved.

before I go hard-coding all of the requires, I assume there is an elegant way to get this to work. for instance...

Class 'Doctrine\DBAL\Configuration' not found in /usr/local/pear/share/pear/Doctrine/ORM/Configuration.php on line 41

so my pear install path is /usr/local/pear and the pear doctrine install seems to be /usr/local/pear/share/pear/Doctrine

I have been reading documents, and it seems to work in the sandbox from the cli, but, I don't really开发者_StackOverflow中文版 have a very modern understanding of PHP. I have been looking through the documentation, and there is probably a very simple step that I am missing, but I do not see it.


try running php like

php -d include_path=/usr/local/pear/share/pear

if this works, you may be missing that path in your include_path

try to issue a phpinfo() or var_dump(ini_get('include_path')) to actually see your include path, the directory Doctrine should be located somewhere inside that path

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜