kohana中未定义的$input
所以..我在一个目录中创建了一个控制器kohana中未定义的$input,input,kohana,undefined,Input,Kohana,Undefined,所以..我在一个目录中创建了一个控制器 application - classes - controller - api user.php 并在我的引导程序中添加了以下路径 Route::set('with_dir','api/(<controller>(/<action>(/<id>)))')->defaults(array( 'directory'=>'api',
application
- classes
- controller
- api
user.php
并在我的引导程序中添加了以下路径
Route::set('with_dir','api/(<controller>(/<action>(/<id>)))')->defaults(array(
'directory'=>'api',
'controller'=>'index'
));
在我的用户控制器中,我有
$fbid = $this->input->post('fbid');
为什么会这样?我的最佳选择?在使用3.x时,您使用了2.x tut。尝试$this->request->post('fbid')
您可以在此处找到api文档://示例。刚刚发现ko3中没有输入类。谢谢
$fbid = $this->input->post('fbid');