Index.php 1.13 KB
<?php
use Action\RootAction;

class IndexController extends RootAction
{
    public function indexAction()
    {
        $this->_viewScriptPush(
        		array('bootstrap', 'cookies', 'custom', 'jquery.dataTables', 'dataTables.responsive', 'dataTables.bootstrap')
        );
        $this->_viewLink()->offsetSetFile(103, $this->_css('dataTables', true));
        $this->_assign('tab',array($this->getRequest()->getModuleName(),$this->getRequest()->getControllerName(),$this->getRequest()->getActionName()));
    }

    public function addAction()
    {
        $this->_viewLink()
            ->offsetSetFile(20, $this->_css('jquery.tagsinput', true))
            ->offsetSetFile(21, $this->_css('toggles', true));

        $this->_viewScriptPush(array(
              'bootstrap', 'cookies', 'custom','retina', 'pace', 'modernizr', 'jquery-migrate',
            'jquery-ui', 'autogrow-textarea',
            'jquery.mousewheel', 'jquery.tagsinput', 'toggles',
            'select2'
        ));
        $this->_assign('tab',array($this->getRequest()->getModuleName(),$this->getRequest()->getControllerName(),$this->getRequest()->getActionName()));
    }
}