Пример #1
0
 public function url($url = null, $full = false)
 {
     if (is_array($url) && !isset($url['admin'])) {
         $url['admin'] = false;
     }
     return parent::url($url, $full);
 }
Пример #2
0
 /**
  * undocumented function
  *
  * @param string $url 
  * @param string $full 
  * @return void
  * @access public
  */
 function url($url = null, $full = false)
 {
     if (!isset($url['plugin'])) {
         $url['plugin'] = '';
     }
     return parent::url($url, $full);
 }
Пример #3
0
 /**
  * The Html->url() function overridden to support local prefixes
  *
  * @param string $url 
  * @param string $full 
  * @return void
  * @author Dean Sofer
  */
 function url($url = null, $full = false)
 {
     if (is_array($url)) {
         if (!isset($url['lang']) && isset($this->params['lang'])) {
             $url['lang'] = $this->params['lang'];
         } elseif (isset($url['lang']) && $url['lang'] == Configure::read('Languages.default')) {
             unset($url['lang']);
         }
         if (!isset($url['plugin'])) {
             $url['plugin'] = false;
         }
         if (!$this->maintainPrefix) {
             $routing = Configure::read('Routing');
             if (!empty($routing['prefixes'])) {
                 $prefixes = array_diff_key(array_flip($routing['prefixes']), $url);
                 $url = array_merge($url, array_fill_keys(array_keys($prefixes), false));
             }
         }
     }
     return parent::url($url, $full);
 }
 public function url($url = null, $full = false)
 {
     return parent::url($url, $full);
 }