2014-10-13 4 views
0

У меня есть код (для PrestaShop 1,5):Prestashop шаблон переопределение администратора

class AdminTestController extends AdminController 
{ 
    public $identifier = 'id_test'; 
    function __construct() { 
     parent::__construct(); 
     $this->table = 'test'; 
     $this->className = 'test'; 

     /*$this->fields_list = array(
     'id_test' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), 
     'content' => array('title' => $this->l('Test'), 'width' => 'auto') 
     );*/ 

     $this->fields_options = array(
        'general' => array(
        'title' => $this->l(''), 
        'icon' => 'tab-preferences', 
        'fields' => array(
          'TEST' => array(
          'type' => 'textarea', 
          'label' => $this->l('TEST'), 
          'title' => $this->l('TEST'), 
          'name' => 'test', 
          'autoload_rte' => true, 
          'lang' => true, 
          'rows' => 15, 
          'cols' => 70, 
          //'hint' => $this->l('Invalid characters:').' <>;=#{}' 
          ) 
        ), 
        'submit' => array(
           'title' => $this->l('Save'), 
           'class' => 'button' 
          )  
        ) 
       ); 
    } 
} 

Я хочу, чтобы прикрепить к TinyMCE мои textarea.I нужно переопределить один шаблон, но я не могу найти Wich один.

Я пробовал:

шаблон/контроллеры/тест/список/list.tpl шаблон/контроллеры/тест/form.form.tpl

Как я могу переопределить шаблон для моего контроллера?

ответ

0

Просто для информации. Я переопределяю параметр/option.tpl; Теперь это работает.

Смежные вопросы