Example #1
0
 public function index()
 {
     $config = new Config();
     $data['todo'] = 'todo';
     $data['root'] = $config->getWebRoot();
     $data['home_url'] = $config->getHomeURL();
     $this->view->getView('header', $data, true);
     $this->view->getView('todo', $data, true);
     $this->view->getView('footer', $data, true);
 }
Example #2
0
 public function index()
 {
     $user = new User();
     $config = new Config();
     $current_user = $user->getUser();
     $todo = new todo\Todo();
     $task = $user->getTask();
     $data = array();
     $data['title'] = 'Sample TODO App';
     //		$data['firstname'] = $current_user->getName();
     //		$data['task'] = $task->getTaskName();
     $data['message'] = 'Here is a message created in our Home controller';
     $data['root'] = $config->getWebRoot();
     $data['home_url'] = $config->getHomeURL();
     // Lets load our views
     $this->view->getView('header', $data, TRUE);
     $this->view->getView('home', $data);
     $this->view->getView('footer', $data, TRUE);
 }