SYSPATH/classes/Kohana/URL.php [ 127 ]
122 }
123
124 // Validate $host, see if it matches trusted hosts
125 if ( ! static::is_trusted_host($host))
126 {
127 throw new Kohana_Exception(
128 'Untrusted host :host. If you trust :host, add it to the trusted hosts in the `url` config file.',
129 [':host' => $host]
130 );
131 }
132
-
SYSPATH/classes/Kohana/URL.php [ 164 ] » Kohana_URL::base()
159 // Encode all non-ASCII characters, as per RFC 1738 160 $path = preg_replace_callback('~([^/#]+)~', 'URL::_rawurlencode_callback', $path); 161 } 162 163 // Concat the URL 164 return URL::base($protocol, $index, $subdomain).$path; 165 } 166 167 /** 168 * Callback used for encoding all non-ASCII characters, as per RFC 1738 169 * Used by URL::site()
-
SYSPATH/classes/Kohana/HTTP/Exception/Redirect.php [ 29 ] » Kohana_URL::site()
24 return $this->headers('Location'); 25 26 if (strpos($uri, '://') === FALSE) 27 { 28 // Make the URI into a URL 29 $uri = URL::site($uri, TRUE, ! empty(Kohana::$index_file)); 30 } 31 32 $this->headers('Location', $uri); 33 34 return $this;
-
SYSPATH/classes/Kohana/HTTP.php [ 40 ] » Kohana_HTTP_Exception_Redirect->location()
35 if ( ! $e instanceof HTTP_Exception_Redirect) 36 throw new Kohana_Exception('Invalid redirect code \':code\'', [ 37 ':code' => $code 38 ]); 39 40 throw $e->location($uri); 41 } 42 43 /** 44 * Checks the browser cache to see the response needs to be returned, 45 * execution will halt and a 304 Not Modified will be sent if the
-
SYSPATH/classes/Kohana/Controller.php [ 127 ] » Kohana_HTTP::redirect()
122 * @param int $code HTTP Status code to use for the redirect 123 * @throws HTTP_Exception 124 */ 125 public static function redirect($uri = '', $code = 302) 126 { 127 return HTTP::redirect( (string) $uri, $code); 128 } 129 130 /** 131 * Checks the browser cache to see the response needs to be returned, 132 * execution will halt and a 304 Not Modified will be sent if the
-
APPPATH/classes/Controller/Home.php [ 451 ] » Kohana_Controller::redirect()
446 else: 447 $array_cart = unserialize($array_cart); 448 endif; 449 $view->array_cart = $array_cart; 450 if(count($array_cart) == 0) 451 $this->redirect('/'); 452 453 454 $peso = ORM::factory('Cart')->get_peso(); 455 $metodoSpedizione = Session::instance()->get('metodoSpedizione', 'corriere'); 456 // Max peso consentito per le spedizioni
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Home->action_checkout()
79 [':uri' => $this->request->uri()] 80 )->request($this->request); 81 } 82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 94 ] » ReflectionMethod->invoke()
89 90 // Create a new instance of the controller 91 $controller = $class->newInstance($request, $response); 92 93 // Run the controller's execute() method 94 $response = $class->getMethod('execute')->invoke($controller); 95 96 if ( ! $response instanceof Response) 97 { 98 // Controller failed to return a Response. 99 throw new Kohana_Exception('Controller failed to return a Response');
-
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request()
109 $orig_response = $response = Response::factory(['_protocol' => $request->protocol()]); 110 111 if (($cache = $this->cache()) instanceof HTTP_Cache) 112 return $cache->execute($this, $request, $response); 113 114 $response = $this->execute_request($request, $response); 115 116 // Execute response callbacks 117 foreach ($this->header_callbacks() as $header => $callback) 118 { 119 if ($response->headers($header))
-
SYSPATH/classes/Kohana/Request.php [ 1000 ] » Kohana_Request_Client->execute()
995 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', [ 996 ':uri' => $this->_uri, 997 ]); 998 } 999 1000 return $this->_client->execute($this); 1001 } 1002 1003 /** 1004 * Returns whether this request is the initial request Kohana received. 1005 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 118 ] » Kohana_Request->execute()
113 /** 114 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 115 * If no source is specified, the URI will be automatically detected. 116 */ 117 echo Request::factory(TRUE, array(), FALSE) 118 ->execute() 119 ->send_headers(TRUE) 120 ->body(); 121 }