开发者

Where to save customized behavior for doctrine in a symfony1.4 project?

开发者 https://www.devze.com 2022-12-21 06:03 出处:网络
So that the behavior template can be autoloaded when necess开发者_运维问答ary. I\'m confused by the complex settings.I put them in lib/doctrine, and if there\'s a listener as well, put that in lib/do

So that the behavior template can be autoloaded when necess开发者_运维问答ary.

I'm confused by the complex settings.


I put them in lib/doctrine, and if there's a listener as well, put that in lib/doctrine/listener.

Symfony's autoloader will find the classes and load them for you pretty much wherever you put them (as long as its vaguely logical). The only exception is if you create a new vendor folder, you will need to tell the autoloader to check there as well.

0

精彩评论

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