baser/views/helpers/bc_app_helper.php
/**
 * Finds URL for specified action.
 *
 * Returns an URL pointing to a combination of controller and action. Param
 * $url can be:
 *	+ Empty - the method will find adress to actuall controller/action.
 *	+ '/' - the method will find base URL of application.
 *	+ A combination of controller/action - the method will find url for it.
 *
 * @param  mixed  $url    Cake-relative URL, like "/products/edit/92" or "/presidents/elect/4"
 *                        or an array specifying any of the following: 'controller', 'action',
 *                        and/or 'plugin', in addition to named arguments (keyed array elements),
 *                        and standard URL arguments (indexed array elements)
 * @param boolean $full   If true, the full base URL will be prepended to the result
 * @return string  Full translated URL with base path.
 */
Finds URL for specified action.
Returns an URL pointing to a combination of controller and action. Param
$url can be:
+ Empty - the method will find adress to actuall controller/action.
+ '/' - the method will find base URL of application.
+ A combination of controller/action - the method will find url for it.


Finds URL for specified action . Returns an URL pointing to a combination of controller and action . Param $url can be : + Empty - the method will find adress to actuall controller / action . + ' / ' - the method will find base URL of application . + A combination of controller / action - the method will find url for it .
function url($url = null, $full = false) {
		$url = addSessionId($url);
		if(is_array($url) && isset($url['id'])) {
			array_push($url, $url['id']);
			unset($url['id']);
		}
		if (!isset($url['admin']) && !empty($this->params['admin'])) {
			$url['admin'] = true;
		} elseif (isset($url['admin']) && !$url['admin']) {
			unset($url['admin']);
		}
		return parent::url($url, $full);
	}
function url ( $ url = null , $ full = false ) { $ url = addSessionId ( $ url ) ; if ( is_array ( $ url ) && isset ( $ url [ 'id' ] ) ) { array_push ( $ url , $ url [ 'id' ] ) ; unset ( $ url [ 'id' ] ) ; } if ( ! isset ( $ url [ 'admin' ] ) && ! empty ( $ this -> params [ 'admin' ] ) ) { $ url [ 'admin' ] = true ; } elseif ( isset ( $ url [ 'admin' ] ) && ! $ url [ 'admin' ] ) { unset ( $ url [ 'admin' ] ) ; } return parent :: url ( $ url , $ full ) ; }
Finds URL for specified action.
Finds URL for specified action .
//====================================================================== // FormHelper::createで id をキーとして使うので、ルーターでマッチしない場合がある。 // id というキー名を除外する事で対応。 //======================================================================