class PluginBooks_ActionBooks extends ActionPlugin { protected $sDefaultEvent = 'add'; protected $aAllowEvents = array('add', 'view'); public function Init() { // Можно инициализировать переменные или модули } public function RegisterEvent() { $this->AddEvent('add', 'EventAdd'); $this->AddEvent('view', 'EventView'); } public function EventAdd() { $this->SetTemplateAction('add'); } public function EventView() { $this->SetTemplateAction('item'); } } ">
Exception: Cannot load class "PluginBooks_ActionBooks"
See details in error.log