/** * Returns JS files * * @return array */ public function getJSFiles() { $list = parent::getJSFiles(); /** @var \XLite\View\Menu\Admin\LeftMenu\ANodeNotification $item */ foreach ($this->getItems() as $item) { $list = array_merge($list, $item->getJSFiles()); } return $list; }
/** * Register JS files * * @return array */ public function getJSFiles() { $list = parent::getJSFiles(); $list[] = $this->getDir() . '/controller.js'; return $list; }