Symfony 1.4 change admin admin actions or patterns

How can I change the modules created by the administrator (caps and templates)? They are stored in the cache, but I need to modify them (templates!). Is it possible at all?

Hi

+3
source share
1 answer

Of course, just copy the template files from the cache to the appropriate folder module/templatesin the backend for templates, and then change / expand.

For actions, add the same action to the file module/actions/actions.class.phpand continue it if necessary, for example:

application / backend / modules / l / 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');
  }
}
+5
source

Source: https://habr.com/ru/post/1742187/


All Articles