Exemple #1
0
 public function googleMaps()
 {
     $oModelGoogleMaps = new Admin_Model_GoogleMaps();
     $sApiKey = $oModelGoogleMaps->getRow(1)->api_key;
     if (isset($sApiKey) && strlen($sApiKey)) {
         $this->view->api_key = $sApiKey;
         return $this->view->render('_helpers/gm.phtml');
     }
 }
Exemple #2
0
 public function __construct($options = null)
 {
     $oModelGoogleMaps = new Admin_Model_GoogleMaps();
     $this->_sApiKey = $oModelGoogleMaps->getRow(1)->api_key;
     parent::__construct($options);
 }