Symfony 1.4更改管理员生成器操作或模板 [英] Symfony 1.4 change admin generator actions or templates
本文介绍了Symfony 1.4更改管理员生成器操作或模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何修改管理员生成的模块(acions和模板)?它们存储在缓存中,但我需要对其进行修改(模板!)。
how can I modify admin generated modules (acions and templates)? They are stored in cache but I need to modify them (templates!). Is it possible at all?
问候
推荐答案
肯定是-只需将模板文件从缓存复制到模板后端的相关 module / templates
文件夹中,然后进行修改/扩展即可。
Sure is - just copy the template files from the cache to the relevant module/templates
folder in the backend for templates and then modify/extend.
对于操作,将相同的命名操作添加到 module / actions / actions.class.php
文件,并根据需要扩展它,例如:
For actions, add the same named action to the module/actions/actions.class.php
file, and extend it as necessary, e.g.:
apps / backend / modules / blah / actions / actions.class.php :
class blahActions extends autoBlahActions
{
public function updateBlahFromRequest()
{
//handle the form submission
parent::updateBlahFromRequest();
//do some custom tasks
$this->logMessage('Object updated');
}
}
这篇关于Symfony 1.4更改管理员生成器操作或模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文