Example #1
0
File: View.php Project: maxwroc/PHP
 /**
  * Return url for given parh
  * 
  * @param string $sTarget
  */
 public function anchor($sTarget = '')
 {
     if (func_num_args() > 1) {
         $aParams = func_get_args();
         $sTarget = call_user_func_array('sprintf', $aParams);
     }
     return self::$oRouter->getPageUrl($sTarget);
 }
Example #2
0
 /**
  * Returns url for given location
  * 
  * Wrappper for same router method
  * 
  * @param string $sPath
  * @return string
  */
 protected function getPageUrl($sPath = '')
 {
     return $this->oRouter->getPageUrl($sPath);
 }