/** * Returns current color from decorator parameter or * the one defined by the view, and requires that file * to be called in the rendered view * * @param string $view * @return string */ protected function _getColor($view = 'all') { if ($this->_obj->getParameter('color')) { View::addRequiredLib($this->_obj->getParameter('color'), 'css', 't41'); return $this->_obj->getParameter('color'); } else { return View::getColor($view); } }
public function init() { parent::init(); View::addRequiredLib('http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js', 'js'); View::addCoreLib('core.js'); }