Error [ Error ]:
Class 'Admingaleria\Frontend\Galerias' not found
0 1<?php 2 3class Controller_Galerias extends \Admingaleria\Frontend\Galerias 4{ 5 6 public function before() { 7 parent::before(); 8 $etiquetas = \Imts\Model_Categoria::bySlug('galeria-etiquetas')->children()->get();
360 protected static function init_class($class, $file = null) 361 { 362 // include the file if needed 363 if ($file) 364 { 365 include $file; 366 } 367 368 // if the loaded file contains a class... 369 if (class_exists($class, false)) 370 {
278 { 279 $path = APPPATH.'classes'.DS.static::class_to_path($class); 280 281 if (is_file($path)) 282 { 283 static::init_class($class, $path); 284 $loaded = true; 285 } 286 } 287 } 288
327 */ 328 protected static function check_class($class) 329 { 330 try 331 { 332 return class_exists($class); 333 } 334 catch (\Exception $e) 335 { 336 // capture autoloader failures 337 if (strpos($e->getFile(),'/core/classes/autoloader.php') !== false)
286 287 array_pop($temp_segments); 288 289 foreach ($classes as $class) 290 { 291 if (static::check_class($class)) 292 { 293 return array( 294 'controller' => $class, 295 'controller_path' => implode('/', array_slice($segments, 0, $key + 1)), 296 'action' => isset($segments[$key + 1]) ? $segments[$key + 1] : null,
253 $match->module = array_shift($segments); 254 $namespace .= ucfirst($match->module).'\\'; 255 $module = $match->module; 256 } 257 258 if ($info = static::parse_segments($segments, $namespace, $module)) 259 { 260 $match->controller = $info['controller']; 261 $match->controller_path = $info['controller_path']; 262 $match->action = $info['action']; 263 $match->method_params = $info['method_params'];
228 if ($match->callable !== null) 229 { 230 return $match; 231 } 232 233 return static::parse_match($match); 234 } 235 236 /** 237 * Find the controller that matches the route requested 238 *
336 // update the loaded list of routes 337 \Router::add($prepped_routes, null, true); 338 } 339 } 340 341 $this->route = \Router::process($this, $route); 342 343 if (\Fuel::$profiling) 344 { 345 \Profiler::mark(__METHOD__.' End route lookup'); 346 }
64 { 65 $class = \Inflector::words_to_upper('Request_'.$options['driver']); 66 return $class::forge($uri, $options, $method); 67 } 68 69 $request = new static($uri, isset($options['route']) ? $options['route'] : true, $method); 70 if (static::$active) 71 { 72 $request->parent = static::$active; 73 static::$active->children[] = $request; 74 }
37 */ 38 39 //-- Asumimos que los 3 primeros caracteres son el idioma siempre (dos del código, y uno más del slash "/") 40 //-- $nuevaCadena = preg_replace('/^.{2}\//', '', \Uri::string()); 41 42 $out = \Imts\Utils\Request::forge(preg_replace('/^.{2}\//', '', \Uri::string()), false) 43 ->set_params(array('idioma'=>$this->params('idioma'))) 44 ->execute(); 45 46 47 }
478 // fire any controller started events 479 \Event::instance()->has_events('controller_started') and \Event::instance()->trigger('controller_started', '', 'none'); 480 481 $class->hasMethod('before') and $class->getMethod('before')->invoke($this->controller_instance); 482 483 $response = $action->invokeArgs($this->controller_instance, $this->method_params); 484 485 $class->hasMethod('after') and $response = $class->getMethod('after')->invoke($this->controller_instance, $response); 486 487 // fire any controller finished events 488 \Event::instance()->has_events('controller_finished') and \Event::instance()->trigger('controller_finished', '', 'none');
128 $response = Response::forge($response); 129 } 130 } 131 elseif ($e === false) 132 { 133 $response = Request::forge()->execute()->response(); 134 } 135 elseif ($route) 136 { 137 $response = Request::forge($route, false)->execute(array($e))->response(); 138 }
167{ 168 // Boot the app... 169 require APPPATH.'bootstrap.php'; 170 171 // ... and execute the main request 172 $response = $routerequest(); 173} 174catch (HttpBadRequestException $e) 175{ 176 $response = $routerequest('_400_', $e); 177}