SYSPATH/classes/Kohana/View.php [ 265 ]
260 */
261 public function set_filename($file)
262 {
263 if (($path = Kohana::find_file('views', $file)) === FALSE)
264 {
265 throw new View_Exception('The requested view :file could not be found', [
266 ':file' => $file,
267 ]);
268 }
269
270 // Store the file path locally
-
SYSPATH/classes/Kohana/View.php [ 145 ]
140 */ 141 public function __construct($file = NULL, array $data = NULL) 142 { 143 if ($file !== NULL) 144 { 145 $this->set_filename($file); 146 } 147 148 if ($data !== NULL) 149 { 150 // Add the values to the current data
-
SYSPATH/classes/Kohana/View.php [ 30 ]
25 * @param array $data array of values 26 * @return View 27 */ 28 public static function factory($file = NULL, array $data = NULL) 29 { 30 return new View($file, $data); 31 } 32 33 /** 34 * Captures the output that is generated when a view is included. 35 * The view data will be extracted to make local variables. This method
-
APPPATH/classes/Controller/Feedback.php [ 8 ]
3 class Controller_Feedback extends Controller_Common { 4 5 public function action_index() 6 { 7 $this->template->title = $this->text['tekst_obratnaya_svyaz']; 8 $view = View::factory('feedback/index'); 9 $this->template->content = $view; 10 } 11 12 public function action_send() 13 {
-
SYSPATH/classes/Kohana/Controller.php [ 84 ]
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}
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ]
92 93 // Create a new instance of the controller 94 $controller = $class->newInstance($request, $response); 95 96 // Run the controller's execute() method 97 $response = $class->getMethod('execute')->invoke($controller); 98 99 if ( ! $response instanceof Response) 100 { 101 // Controller failed to return a Response. 102 throw new Kohana_Exception('Controller failed to return a Response');
-
SYSPATH/classes/Kohana/Request/Client.php [ 114 ]
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 [ 993 ]
988 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', [ 989 ':uri' => $this->_uri, 990 ]); 991 } 992 993 return $this->_client->execute($this); 994 } 995 996 /** 997 * Returns whether this request is the initial request Kohana received. 998 * Can be used to test for sub requests.
-
125 /** 126 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 127 * If no source is specified, the URI will be automatically detected. 128 */ 129 echo Request::factory(TRUE, [], FALSE) 130 ->execute() 131 ->send_headers(TRUE) 132 ->body(); 133 }