php - Why is Request::current() null after upgrade from Kohana 3.0 to 3.1? -


we upgraded our kohana framework 3.0 3.1 , in bootstrap.php file had change:

request = request::instance($_server['path_info']); 

to

$request = request::current();  

but $request null.

what have change request::current() returns request instead of null?

you need call request::factory() create initial request object. request::current() doesnt create new request, returns current.

also, need change index.php , bootstrap.php files, because request execution was moved index.php.

ps. maybe this link helps.


Comments