示例#1
0
文件: Records.php 项目: atiarda/bolt
 protected function addRoutes(ControllerCollection $c)
 {
     $c->method('GET|POST');
     $c->match('/editcontent/{contenttypeslug}/{id}', 'edit')->bind('editcontent')->assert('id', '\\d*')->value('id', '');
     $c->get('/overview/{contenttypeslug}', 'overview')->bind('overview');
     $c->get('/relatedto/{contenttypeslug}/{id}', 'related')->bind('relatedto')->assert('id', '\\d*');
 }
 protected function addRoutes(ControllerCollection $c)
 {
     $c->method('GET|POST');
     $c->get('/list/{contenttypeslug}', 'overview')->bind('overview');
     $c->match('/add-edit/{contenttypeslug}/{id}', 'edit')->bind('editcontent')->value('id', '');
     $c->get('/delete/{contenttypeslug}/{id}', 'delete')->bind('deletecontent');
     $c->post('/content-{action}/{contenttypeslug}/{id}', 'modify')->bind('contentaction');
     $c->get('/relatedto/{contenttypeslug}/{id}', 'related')->bind('relatedto');
 }
示例#3
0
文件: Records.php 项目: Twiebie/bolt
 protected function addRoutes(ControllerCollection $c)
 {
     $c->method('POST');
     $c->post('/content/{action}', 'action')->bind('contentaction');
 }
示例#4
0
 protected function addRoutes(ControllerCollection $c)
 {
     $c->method('GET');
     $c->get('/sign-in', 'signin')->bind('postLogin');
 }