Пример #1
0
 /**
  * Get the skin base url for the loaded theme
  * 
  * @param array $params
  * @return string skin url 
  */
 public function getSkinBaseUrl(array $params = array())
 {
     $this->updateParamDefaults($params);
     if (!$this->_skinBaseUrl) {
         $this->_skinBaseUrl = App_main::getModel('core/url')->getDirectUrl('design', array('_nosid' => true));
     }
     return $this->_skinBaseUrl . '/' . $params['_area'] . '/' . $params['_theme'] . '/' . 'skin/';
 }
Пример #2
0
 /**
  * Get resource collection instance
  *
  * @return Core_Model_Resource_Collection_Abstract
  */
 public function getResourceCollection()
 {
     if (empty($this->_resourceCollectionName)) {
         App_Main::throwException('Model collection resource name is not defined');
     }
     return App_main::getResourceModel($this->_resourceCollectionName, $this->_getResource());
 }