Beispiel #1
0
 public function __construct(Request $request, $name, $action, array $args)
 {
     parent::__construct($request, $name, $action, $args, new Response\Html($request));
     // Set the default template
     $this->response->setTemplate("{$this->getName()}/{$this->getAction()}");
 }
Beispiel #2
0
 public function __construct()
 {
     parent::__construct();
     $this->getRoute();
 }
Beispiel #3
0
 public function __construct(Request $request, $name, $action, array $args)
 {
     parent::__construct($request, $name, $action, $args, new Response\Json($request));
 }
Beispiel #4
0
 public function __construct(Request $request, $name, $action, array $args)
 {
     // Default response is a redirect to the current
     parent::__construct($request, $name, $action, $args, new Response\Redirect($request, new HttpStatus\SeeOther($request->getUrl())));
 }
Beispiel #5
0
 public function __construct(Request $request, $page, $action, $args)
 {
     Base::__construct($request, $page, $action, $args, new Response\Html($request));
     $this->response->setTemplate("_page/{$page}");
 }
Beispiel #6
0
 public function __construct(Request $request, $name, $action, array $args, Base $controller = null)
 {
     parent::__construct($request, $name, $action, $args);
     $this->controller = $controller;
 }
Beispiel #7
0
 public function __construct()
 {
     parent::__construct();
 }