Ejemplo n.º 1
0
 /**
  * create a link for some text against the display field
  *
  * @param string $text the text to show/filter with
  * @return array the url cake style
  */
 private function __filterLink($text = null)
 {
     if (!$text) {
         return false;
     }
     $model = current($this->request->params['models']);
     $filter = array(ClassRegistry::init($model)->alias . '.' . ClassRegistry::init($model)->displayField => $text);
     $params = array_merge(parent::cleanCurrentUrl(), $this->request->params['named'], $this->request->params['pass'], $filter);
     return $params;
 }