Jump to content

Модуль. Вывод в админку


Recommended Posts

Помогите с разработкой модуля для BackOffice
есть модуль

<?php

class test extends Module {
   public function __construct() {
       $this->name="test";

   parent::__construct();
       $this->page = basename(__FILE__, '.php');
       $this->displayName = "Тестовый модуль";
       $this->version = "0.1";
       $this->tab = "Test";
       $this->description = "Первый самопальный модуль.";
   }
       public function install() {
       if (!parent::install() OR !$this->registerHook('backOfficeHome'))
           return false;
       return true;
       }
   function backOfficeHome($params) {

       return $this->display(__FILE__, 'test.tpl');
   }
}


?>


есть шаблон к нему

<!-- Test Module-->


   Тестовое сообщение


<!-- End Test Module-->


Как правильно вывести информацию?
Почемуто на главной пусто после подключения модуля.
Пробывал добавить в закладки все равно не получилось ни чего вывести

Link to comment
Share on other sites

×
×
  • Create New...