Exemple #1
0
 /**
  * Retorna a URL de acesso
  * 
  * @param bool $removeAction
  * @return string 
  */
 public static function getUri($removeAction = false)
 {
     $uri = ZendT_Url::getHostName();
     $uri .= ZendT_Url::getBaseUrl();
     $route = ZendT_Controller_Front::getInstance()->getRequest()->getParams();
     $uri .= '/' . $route['module'];
     $uri .= '/' . $route['controller'];
     if (!$removeAction) {
         $uri .= '/' . $route['action'];
     }
     return $uri;
 }
Exemple #2
0
 /**
  * Singleton instance
  *
  * @return ZendT_Controller_Front
  */
 public static function getInstance()
 {
     if (null === self::$_instance) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }