/** * Calls a controller's method from any location. * * @param mixed $url String or array-based url. * @param array $extra if array includes the key "return" it sets the AutoRender to true. * @return mixed Boolean true or false on success/failure, or contents * of rendered action if 'return' is set in $extra. * @access public */ function requestAction($url, $extra = array()) { // >>> CUSTOMIZE ADD 2011/12/16 ryuring // 管理システムやプラグインでのURLの生成が CakePHP の標準仕様と違っていたので調整 // >>> CUSTOMIZE MODIFY 2012/1/28 ryuring // 配列でないURLの場合に、間違った値に書きなおされていたので配列チェックを追加 if (is_array($url)) { if (!isset($url['admin']) && !empty($this->params['admin']) || !empty($url['admin'])) { $url['prefix'] = 'admin'; } if (!isset($url['plugin']) && !empty($this->params['plugin'])) { $url['plugin'] = $this->params['plugin']; } } // <<< return parent::requestAction($url, $extra); }