Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Templates Symfony 1.4更改管理生成器操作或模板_Templates_Symfony1_Admin_Generator_Action - Fatal编程技术网

Templates Symfony 1.4更改管理生成器操作或模板

Templates Symfony 1.4更改管理生成器操作或模板,templates,symfony1,admin,generator,action,Templates,Symfony1,Admin,Generator,Action,如何修改管理员生成的模块(acion和模板)?它们存储在缓存中,但我需要修改它们(模板!)。有可能吗 问候语当然可以-只需将模板文件从缓存复制到模板后端的相关模块/模板文件夹,然后进行修改/扩展 对于操作,将相同的命名操作添加到模块/actions/actions.class.php文件中,并根据需要进行扩展,例如: apps/backend/modules/blah/actions/actions.class.php: class blahActions extends autoBlahAct

如何修改管理员生成的模块(acion和模板)?它们存储在缓存中,但我需要修改它们(模板!)。有可能吗


问候语

当然可以-只需将模板文件从缓存复制到模板后端的相关
模块/模板
文件夹,然后进行修改/扩展

对于操作,将相同的命名操作添加到
模块/actions/actions.class.php
文件中,并根据需要进行扩展,例如:

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');
  }
}