且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2023-09-24 14:41:58

肯定是-只需将模板文件从缓存复制到模板后端的相关 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');
  }
}