Fuel\Core\PhpErrorException [ Notice ]: Trying to get property of non-object
127 array('relation_type', 1), // video_categoria 128 array('relation_from', $video->id) 129 ) 130 ) 131 ); 132 $categoriaID = $primera_categoria->relation_to; 133 } 134 135 // Ya tengo el ID de la categorÃa, ahora miro los videos relacionados 136 $videos_relacionados = Model_Video::get_videos_relacionados($video->id, $categoriaID); 137
74set_error_handler(function ($severity, $message, $filepath, $line) 75{ 76 // reset the autoloader 77 \Autoloader::_reset(); 78 79 return \Error::error_handler($severity, $message, $filepath, $line); 80}); 81 82function setup_autoloader() 83{ 84 Autoloader::add_namespace('Fuel\\Core', COREPATH.'classes/');
127 array('relation_type', 1), // video_categoria 128 array('relation_from', $video->id) 129 ) 130 ) 131 ); 132 $categoriaID = $primera_categoria->relation_to; 133 } 134 135 // Ya tengo el ID de la categorÃa, ahora miro los videos relacionados 136 $videos_relacionados = Model_Video::get_videos_relacionados($video->id, $categoriaID); 137
56 } 57 58 // If method is not available, throw an HttpNotFound Exception 59 if (method_exists($this, $controller_method)) 60 { 61 return call_user_func_array(array($this, $controller_method), $arguments); 62 } 63 else 64 { 65 throw new \HttpNotFoundException(); 66 }
423 // fire any controller started events 424 \Event::instance()->has_events('controller_started') and \Event::instance()->trigger('controller_started', '', 'none'); 425 426 $class->hasMethod('before') and $class->getMethod('before')->invoke($this->controller_instance); 427 428 $response = $action->invokeArgs($this->controller_instance, $this->method_params); 429 430 $class->hasMethod('after') and $response = $class->getMethod('after')->invoke($this->controller_instance, $response); 431 432 // fire any controller finished events 433 \Event::instance()->has_events('controller_finished') and \Event::instance()->trigger('controller_finished', '', 'none');
51require APPPATH.'bootstrap.php'; 52 53// Generate the request, execute it and send the output. 54try 55{ 56 $response = Request::forge()->execute()->response(); 57} 58catch (HttpNotFoundException $e) 59{ 60 $route = array_key_exists('_404_', Router::$routes) ? Router::$routes['_404_']->translation : Config::get('routes._404_'); 61