private function _getUrlForAction($action, $params = array()) { return Ak::toUrl(array_merge($params, array('action' => $action), $this->_default_urlparams)); }
function _mapRoutes($Map = null) { require_once AK_LIB_DIR . DS . 'AkRouter.php'; if (is_file(AK_ROUTES_MAPPING_FILE)) { if (empty($Map)) { $Map =& AkRouter(); } include AK_ROUTES_MAPPING_FILE; // Set this routes for being used via Ak::toUrl Ak::toUrl($Map, true); $this->checkForRoutedRequests($Map); } }
/** * Returns a query string with escaped keys and values from the passed array. If the passed * array contains an 'id' it'll * be added as a path element instead of a regular parameter pair. */ function buildQueryString($array, $only_keys = null) { $array = !empty($only_keys) ? array_keys($array) : $array; return Ak::toUrl($array); }