开发者

Symfony: trouble adding Prototype to view.yml

开发者 https://www.devze.com 2023-02-18 02:26 出处:网络
I added the following to my view.yml javascripts:[%SF_PROTOTYPE_WEB_DIR%/js/prototype] However, Symfony 开发者_运维知识库isn\'t including prototype properly.When I look at the source code, I see th

I added the following to my view.yml

javascripts:    [%SF_PROTOTYPE_WEB_DIR%/js/prototype]

However, Symfony 开发者_运维知识库isn't including prototype properly. When I look at the source code, I see this:

<script type="text/javascript" src="/js/%SF_PROTOTYPE_WEB_DIR%/js/prototype.js"></script>

which I don't think is right. What am I doing wrong?


If you have prototype.js in your /web/js folder, all you need is

javascripts:  [prototype]

Symfony cannot replace sf_prototype_web_dir, because you do not have a config setting named like that.

0

精彩评论

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