Rey*_*ier 1 symfony1 symfony-1.4
我试图以这种方式使用动作中的帮助器:
sfContext::getInstance()->getConfiguration()->loadHelpers(array('I18N', 'Asset', 'Url'));
echo image_tag('bullet_red.png');
echo link_to('Ver detalles', 'ver-detalles/' . $record->getIdregistros(), 'class="btn btn-success btn-mini"');
Run Code Online (Sandbox Code Playgroud)
但是我得到这个错误:
致命错误:在第333行的/var/www/html/monitor/lib/vendor/symfony/lib/helper/AssetHelper.php中调用未定义的函数_parse_attributes()
为什么?
_parse_attributes()函数位于“标记助手”中。
因此您也必须导入Tag Helper
sfContext::getInstance()->getConfiguration()->loadHelpers(array('I18N', 'Asset', 'Url', 'Tag'));
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1479 次 |
| 最近记录: |