Exemple #1
0
 /**
  * Include a particular K2Store Model
  * @param $name the name of the mode (ex: products)
  */
 protected function includeK2StoreModel($name, $admin = true)
 {
     if ($admin) {
         $base_path = JPATH_ADMINISTRATOR;
     } else {
         $base_path = JPATH_SITE;
     }
     JModelAdmin::addIncludePath($base_path . '/components/com_k2store/models/' . strtolower($name));
 }