Reputation: 4546
I am trying out a restfull controller, but binding two urls this way does not seem to work anymore. How is this best handled?
// in the routes file
Route::get('/,new',array('as'=>'new_bit','uses'=>'BitsController@getNew'));
Route::controller('bits','BitsController');
// the controller
class BitsController extends BaseController {
public $restful = true;
/**
* Display a listing of the resource.
*
* @return Response
*/
public function getIndex()
{
return "this is the bits controller";
}
public function getNew()
{
return "this is the new page";
}
}
Upvotes: 1
Views: 390