ErrorException [ Fatal Error ]: Call to a member function route() on a non-object

APPPATH/classes/View/Template.php [ 218 ]

213 	public function top_categories()
214 	{
215 		$category = new Model_Category(0, TRUE);
216 		$items = $category->Children();
217 		$rq = Request::current();
218 		if (Route::name($rq->route()) === 'aldis_category')
219 		{
220 			foreach($items as $item)
221 			{
222 				if ($item->CategoryID == $rq->param('object'))
223 				{
  1. SYSPATH/classes/Kohana/Core.php [ 0 ] » Kohana_Corestaticshutdown_handler()

  2. /srv/www/kolleldirshu.com/vendor/mustache/mustache/src/Mustache/Context.php [ 138 ] » View_Templatedynamictop_categories()

  3. /srv/www/kolleldirshu.com/vendor/mustache/mustache/src/Mustache/Context.php [ 78 ] » Mustache_ContextdynamicfindVariableInStack(arguments)

  4. APPPATH/cache/mustache/__Mustache_9e41da50c6461aa5cb6cadcea54b1e66.php [ 16 ] » Mustache_Contextdynamicfind(arguments)

  5. APPPATH/cache/mustache/__Mustache_ed12cce6efe4bd74584081c98330280b.php [ 293 ] » __Mustache_9e41da50c6461aa5cb6cadcea54b1e66dynamicrenderInternal(arguments)

  6. APPPATH/cache/mustache/__Mustache_ed12cce6efe4bd74584081c98330280b.php [ 144 ] » __Mustache_ed12cce6efe4bd74584081c98330280bdynamicsectionA4a2617e8cb2b91cf946b1a312210631(arguments)

  7. /srv/www/kolleldirshu.com/vendor/mustache/mustache/src/Mustache/Template.php [ 67 ] » __Mustache_ed12cce6efe4bd74584081c98330280bdynamicrenderInternal(arguments)

  8. MODPATH/kostache/classes/Kohana/Kostache/Layout.php [ 43 ] » Mustache_Templatedynamicrender(arguments)

  9. APPPATH/classes/View/Template.php [ 249 ] » Kohana_Kostache_Layoutdynamicrender(arguments)

  10. APPPATH/classes/HTTP/Exception/404.php [ 18 ] » View_Templatedynamicrender(arguments)

  11. SYSPATH/classes/Kohana/Request.php [ 976 ] » HTTP_Exception_404dynamicget_response()

  12. DOCROOT/index.php [ 128 ] » Kohana_Requestdynamicexecute()

  13. DOCROOT/index.php [ 0 ] » {main}()

Environment