macros/system/core/Kohana.php [ 1322 ]
1317 if ($required === TRUE) {
1318 // Directory i18n key
1319 $directory = 'core.' . inflector::singular($directory);
1320
1321 // If the file is required, throw an exception
1322 throw new Kohana_Exception('core.resource_not_found', self::lang($directory), $filename);
1323 } else {
1324 // Nothing was found, return FALSE
1325 $found = FALSE;
1326 }
1327 }
-
MODPATH/core/libraries/View.php [ 72 ] edit » Kohana::find_file()
67 */ 68 public function set_filename($name, $type = null) 69 { 70 if ($type == null) { 71 // Load the filename and set the content type 72 $this->kohana_filename = Kohana::find_file('views', $name, true); 73 $this->kohana_filetype = EXT; 74 } 75 else { 76 // Check if the filetype is allowed by the configuration 77 if (! in_array($type, Kohana::config('view.allowed_filetypes'))) {
-
MODPATH/core/libraries/View.php [ 40 ] edit » View_Core->set_filename()
35 { 36 $this->name = $name; 37 38 if (is_string($name) and $name !== '') { 39 // Set the filename 40 $this->set_filename($name, $type); 41 } 42 43 if (is_array($data) and ! empty($data)) { 44 // Preload data using array_merge, to allow user extensions 45 $this->kohana_local_data = array_merge($this->kohana_local_data, $data);
-
MODPATH/core/libraries/View.php [ 31 ] edit » View_Core->__construct()
26 * @param string type of file: html, css, js, etc. 27 * @return object 28 */ 29 public static function factory($name = null, $data = null, $type = null) 30 { 31 return new static($name, $data, $type); 32 } 33 34 public function __construct($name = null, $data = null, $type = null) 35 { 36 $this->name = $name;
-
MODPATH/presenter/libraries/PresenterModule.php [ 122 ] edit » View_Core::factory()
117 return []; 118 } 119 120 public function _view($view_name, $data = null) 121 { 122 return View::factory($view_name, $data) 123 ->set('driver', $this) 124 ->set('uid', $this->uid()) 125 ->set((array) $this->viewData()) 126 ->closure_bind($this); 127 }
-
MODPATH/presenter/libraries/PresenterModule.php [ 58 ] edit » PresenterModule->_view()
53 throw new Kohana_Exception('Presenter module ' . $this->name() . ' has not set _view_name property'); 54 } 55 56 $this->joinAssets(); 57 58 $result = $this->_view($view_name)->render(); 59 60 if (isset($benchmark)) { 61 $benchmark->stop(); 62 } 63
-
MODPATH/presenter/libraries/PresenterModule.php [ 357 ] edit » PresenterModule->render()
352 } 353 354 public function __toString() 355 { 356 try { 357 return (string) $this->render(); 358 } catch (Exception $e) { 359 return Kohana::exception_handler($e); 360 } 361 } 362 }
-
MODPATH/presenter/views/presenter_module/goods.php [ 10 ] edit » PresenterModule->__toString()
5 echo Presenter::module('Good_Filtercontainer')->render(); 6 ?> 7 <div class="presenter_module_goods" id="<?php echo $this->uid(); ?>" > 8 <div class="presenter_module_goods_in" > 9 <?php if ($this->config('show_order')) : ?> 10 <div class="order" ><?php echo Presenter::module('Good_Order'); ?></div> 11 <?php endif; ?> 12 <div class="pagination pagination_top" ><?= $this->view('pagination'); ?></div> 13 <div class="clear" ></div> 14 <div class="items" > 15 <?= $this->content(); ?>
-
MODPATH/core/libraries/View.php [ 402 ] edit » include(arguments)
0
string(88) "/www/hosting/marketplus.cz/www/macros/modules/presenter/views/presenter_module/goods.php"
397 398 // Views are straight HTML pages with embedded PHP, so importing them 399 // this way insures that $this can be accessed as if the user was in 400 // the controller, which gives the easiest access to libraries in views 401 try { 402 include $kohana_view_filename; 403 } catch (Exception $e) { 404 ob_end_clean(); 405 throw $e; 406 } 407
-
MODPATH/core/libraries/View.php [ 378 ] edit » Closure->_kohana_load_view()
373 374 protected static function load_view_and_bind_to($fileName, $data, $newThis) 375 { 376 $closure = new ReflectionFunction('_kohana_load_view'); 377 $closure = Closure::bind($closure->getClosure(), $newThis); 378 return $closure($fileName, $data); 379 } 380 } 381 382 if (! function_exists('_kohana_load_view')) { 383 function _kohana_load_view($kohana_view_filename, $kohana_input_data)
-
MODPATH/core/libraries/View.php [ 335 ] edit » View_Core::load_view_and_bind_to()
330 if (is_string($this->kohana_filetype)) { 331 // Merge global and local data, local overrides global with the same name 332 $data = array_merge(View::$kohana_global_data, $this->kohana_local_data); 333 334 if (! is_null($this->_closure_bind)) { 335 $output = static::load_view_and_bind_to($this->kohana_filename, $data, $this->_closure_bind); 336 } elseif (is_null(Kohana::$instance)) { 337 $output = static::load_view_and_bind_to($this->kohana_filename, $data, $this); 338 } else { 339 $output = Kohana::$instance->_kohana_load_view($this->kohana_filename, $data); 340 }
-
MODPATH/presenter/libraries/PresenterModule.php [ 58 ] edit » View_Core->render()
53 throw new Kohana_Exception('Presenter module ' . $this->name() . ' has not set _view_name property'); 54 } 55 56 $this->joinAssets(); 57 58 $result = $this->_view($view_name)->render(); 59 60 if (isset($benchmark)) { 61 $benchmark->stop(); 62 } 63
-
MODPATH/presenter/controllers/presenter_category.php [ 45 ] edit » PresenterModule->render()
40 { 41 /* @var $goods_module \Goods_PresenterModule */ 42 $goods_module = Presenter::module('Goods') 43 ->page($page); 44 // Zbozi je treba vyrenderovat pred fitrama, je v nem tez inicializace modulu filtercontainer 45 $goods = $goods_module->render(); 46 47 $count_goods = $goods_module->total_count(); 48 49 $config = Kohana::config('presenter_category.goods'); 50
-
MODPATH/presenter/controllers/presenter_category.php [ 23 ] edit » Presenter_Category_Controller->_goods()
18 ->title($presenter_category->title()) 19 ->keywords($presenter_category->keywords()) 20 ->description($presenter_category->description()); 21 22 if ($presenter_category->show_goods) { 23 $content = $this->_goods($this->input->get('page', 1)); 24 } 25 else { 26 $content = $this->_categories(); 27 } 28
-
{PHP internal call} » Presenter_Category_Controller->index()
-
MODPATH/core/libraries/Router.php [ 400 ] edit » ReflectionMethod->invokeArgs()
395 396 // Start the controller execution benchmark 397 Benchmark::start($benchmark . '_controller_execution'); 398 399 // Execute the controller method 400 $method_result = $_method->invokeArgs($_controller, $arguments); 401 402 if ($class->hasMethod('process_method_result')) { 403 $class->getMethod('process_method_result')->invoke($_controller, $method_result); 404 } 405
-
SYSPATH/core/Kohana.php [ 236 ] edit » Router_Core::execute()
231 * @return object instance of controller 232 */ 233 public static function & instance() 234 { 235 if (self::$instance === NULL) { 236 Router::execute(); 237 } 238 239 return self::$instance; 240 } 241
-
SYSPATH/core/Event.php [ 209 ] edit » Kohana::instance()
204 self::$data =& $data; 205 $callbacks = self::get($name); 206 207 foreach ($callbacks as $callback) 208 { 209 call_user_func($callback, $data); 210 } 211 212 // Do this to prevent data from getting 'stuck' 213 $clear_data = ''; 214 self::$data =& $clear_data;
-
SYSPATH/core/Bootstrap.php [ 62 ] edit » Event::run()
57 58 // End system_initialization 59 Benchmark::stop(SYSTEM_BENCHMARK.'_system_initialization'); 60 61 // Make the magic happen! 62 Event::run('system.execute'); 63 64 // Clean up and exit 65 Event::run('system.shutdown'); 66 67 // Na 32bitove verzi PHP to koliduje, protože to pracuje s 64bit verzi PHP
-
DOCROOT/macros/bootstrap.php [ 58 ] edit » require(arguments)
0
string(63) "/www/hosting/marketplus.cz/www/macros/system/core/Bootstrap.php"
53 // Defaultni definice promennych 54 require_once(MACROSPATH . 'ini' . EXT); 55 56 bfr_clean(); 57 58 require SYSPATH . 'core/Bootstrap' . EXT;
-
DOCROOT/index.php [ 6 ] edit » require(arguments)
0
string(51) "/www/hosting/marketplus.cz/www/macros/bootstrap.php"
1 <?php 2 3 define('INDEXPATH', __FILE__); 4 5 // Ostry server 6 return require 'macros/bootstrap.php';