SYSPATH/classes/KO7/View.php [ 180 ]
175 }
176 elseif (array_key_exists($key, View::$_global_data))
177 {
178 return View::$_global_data[$key];
179 }
180 throw new View_Exception(
181 'Variable is not set: :var',
182 [':var' => $key]
183 );
184 }
185
-
APPPATH/classes/controller/module.php [ 113 ] » KO7_View->__get( )
108 } 109 110 if (!is_ajax() && is_object($this->template)) { 111 $this->template->jsonData = $this->_jsonData; 112 113 $this->template->main = Text::cleanHTML($this->template->main); 114 } 115 116 if (is_ajax()) { 117 return Controller_Api::data([ 118 'menuSections' => Text::cleanHTML((new Widget_MenuSections())->render()),
-
SYSPATH/classes/KO7/Controller.php [ 89 ] » Controller_Module->after( )
84 85 // Execute the action itself 86 $this->{$action}(); 87 88 // Execute the "after action" method 89 $this->after(); 90 91 // Return the response 92 return $this->response; 93 } 94
-
{PHP internal call} » KO7_Controller->execute( )
-
SYSPATH/classes/KO7/Request/Client/Internal.php [ 87 ] » ReflectionMethod->invoke( )
82 83 // Create a new instance of the controller 84 $controller = $class->newInstance($request, $response); 85 86 // Run the controller's execute() method 87 $response = $class->getMethod('execute')->invoke($controller); 88 89 if ( ! $response instanceof Response) 90 { 91 // Controller failed to return a Response. 92 throw new KO7_Exception('Controller failed to return a Response');
-
SYSPATH/classes/KO7/Request/Client.php [ 115 ] » KO7_Request_Client_Internal->execute_request( )
110 $orig_response = $response = Response::factory(['_protocol' => $request->protocol()]); 111 112 if (($cache = $this->cache()) instanceof HTTP_Cache) 113 return $cache->execute($this, $request, $response); 114 115 $response = $this->execute_request($request, $response); 116 117 // Execute response callbacks 118 foreach ($this->header_callbacks() as $header => $callback) 119 { 120 if ($response->headers($header))
-
SYSPATH/classes/KO7/Request.php [ 934 ] » KO7_Request_Client->execute( )
929 throw new Request_Exception('Unable to execute :uri without a KO7_Request_Client', [ 930 ':uri' => $this->_uri, 931 ]); 932 } 933 934 return $this->_client->execute($this); 935 } 936 937 /** 938 * Returns whether this request is the initial request KO7 received. 939 * Can be used to test for sub requests.
-
APPPATH/classes/controller/frontend.php [ 69 ] » KO7_Request->execute( )
64 // Generate module uri 65 $other_uri = $this->uri->string(Page::urlObjects()->count()); 66 67 $module_uri = '_modules/' . Page::urlObjects()->getLast(null, true)->module . '/' . trim($other_uri, '/'); 68 try { 69 $this->template->content = Request::factory($module_uri)->execute(); 70 } catch (Exception $e) { 71 return $this->err404(); 72 } 73 74 $item = Page::urlObjects()->getLast();
-
SYSPATH/classes/KO7/Controller.php [ 86 ] » Controller_Frontend->action_index( )
81 [':uri' => $this->request->uri()] 82 )->request($this->request); 83 } 84 85 // Execute the action itself 86 $this->{$action}(); 87 88 // Execute the "after action" method 89 $this->after(); 90 91 // Return the response
-
{PHP internal call} » KO7_Controller->execute( )
-
SYSPATH/classes/KO7/Request/Client/Internal.php [ 87 ] » ReflectionMethod->invoke( )
82 83 // Create a new instance of the controller 84 $controller = $class->newInstance($request, $response); 85 86 // Run the controller's execute() method 87 $response = $class->getMethod('execute')->invoke($controller); 88 89 if ( ! $response instanceof Response) 90 { 91 // Controller failed to return a Response. 92 throw new KO7_Exception('Controller failed to return a Response');
-
SYSPATH/classes/KO7/Request/Client.php [ 115 ] » KO7_Request_Client_Internal->execute_request( )
110 $orig_response = $response = Response::factory(['_protocol' => $request->protocol()]); 111 112 if (($cache = $this->cache()) instanceof HTTP_Cache) 113 return $cache->execute($this, $request, $response); 114 115 $response = $this->execute_request($request, $response); 116 117 // Execute response callbacks 118 foreach ($this->header_callbacks() as $header => $callback) 119 { 120 if ($response->headers($header))
-
SYSPATH/classes/KO7/Request.php [ 934 ] » KO7_Request_Client->execute( )
929 throw new Request_Exception('Unable to execute :uri without a KO7_Request_Client', [ 930 ':uri' => $this->_uri, 931 ]); 932 } 933 934 return $this->_client->execute($this); 935 } 936 937 /** 938 * Returns whether this request is the initial request KO7 received. 939 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 118 ] » KO7_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 }