Пример #1
0
 public function indexAction()
 {
     AppFactory::view()->set('request', AppFactory::request())->render('home->index');
 }
Пример #2
0
 public static function taskController()
 {
     $controller = new TaskController();
     $controller->setResponse(AppFactory::response());
     return $controller;
 }
Пример #3
0
 private function _init()
 {
     session_start();
     $this->request = AppFactory::request();
 }
Пример #4
0
 /**
  * @return TaskRepository
  */
 public static function taskRepository()
 {
     return new TaskRepository(AppFactory::db());
 }
Пример #5
0
<?php

require __DIR__ . '/../vendor/autoload.php';
\StaticKarma\Taskpad\Factories\AppFactory::taskpad()->run();