コード例 #1
0
ファイル: vendor.php プロジェクト: panickylemon/joomlastayn
 function info()
 {
     $jshopConfig = JSFactory::getConfig();
     $dispatcher = JDispatcher::getInstance();
     $vendor_id = JRequest::getInt("vendor_id");
     if (!$jshopConfig->product_show_vendor_detail) {
         JError::raiseError(404, _JSHOP_PAGE_NOT_FOUND);
         return;
     }
     $vendor = JSFactory::getTable('vendor', 'jshop');
     $vendor->load($vendor_id);
     $dispatcher->trigger('onBeforeDisplayVendorInfo', array(&$vendor));
     $header = $vendor->shop_name;
     JshopHelpersMetadata::vendorInfo($vendor);
     $vendor->country = $vendor->getCountryName();
     $view = $this->getView('vendor');
     $view->setLayout("info");
     $view->assign('vendor', $vendor);
     $view->assign('header', $header);
     $dispatcher->trigger('onBeforeDisplayVendorInfoView', array(&$view));
     $view->display();
 }