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

APPPATH/views/index/template.php [ 146 ]

141 
142 </script>
143 </head>
144 <body class="page-common-home none">
145 <!--<h1 style="color: red; font-size: 20px; text-align: center; background-color: yellow">ВЕДУТСЯ РАБОТЫ НАД САЙТОМ</h1>-->
146 <?if(Request::current()->controller() != 'Auth' and Request::current()->controller() == 'Main' and Request::current()->action() == 'index'):?>
147 <!--    <div class="modal fade" id="myModalPopup" role="dialog" style="z-index: 10000350">-->
148 <!--        <div class="modal-dialog ">-->
149 <!--            <!-- Modal content-->
150 <!--            <div class="modal-content" >-->
151 <!--                <div class="modal-header">-->
  1. {PHP internal call} » Kohana_Core::shutdown_handler()

Environment