**Route**
Route::get('admin', function()
{
return View::make('theme-admin.main');
});
**Controller**
class Admin_Controller extends Base_Controller {
public function action_index()
{
echo __FUNCTION__;
}
如果我将请求转发给控制器,那么我必须View::make
在控制器的每个函数中定义。如果我不转发它,它就action function
不起作用。
我应该将请求转发给控制器并使用View::make
内部操作功能还是有更好的选择?