Undefined $input in kohana
So..I've created a controller inside a directory.
application
- classes
- controller
- api
user.php
and added the following route in my bootstrap
Route::set('with_dir','api/(<controller>(/<action>(/<id>)))')->defaults(array(
'directory'=>'api',
'controller'=>'index'
));
I can access my user controller by /api/user, but the problem is that I get the following error.
Undefined property: Controller_Api_User::$input
i开发者_StackOverflow社区n my user controller, I have
$fbid = $this->input->post('fbid');
Why is it happening?
My best bet? You followed a 2.x tut while you use 3.x. Try $this->request->post('fbid');
You can find the api docs here: http://kohanaframework.org/3.2/guide/api
精彩评论