function indexAction()
 {
     $includer = new Includer();
     $components = $includer->getComponents();
     $components_list = array($components['jquery'], $components['components-font-awesome'], $components['fonts'], $components['livereload']);
     $this->set('components', $components_list);
     $this->set('hello', '<b>_^..^_</b>ichino is a super-light-weight php framework. Enjoy');
     $this->set('logo', array('src' => '//static.pixeledchimp.me/img/mush.png', 'alt' => 'Mush'));
     $this->render('frontpage/index.html.twig');
 }
 /**
  * This is the main function of the class
  * @return void
  */
 function indexAction()
 {
     $this->checkUser();
     $includer = new Includer();
     $components = $includer->getComponents();
     $components_list = array($components['jquery'], $components['trumbowyg'], $components['components-font-awesome'], $components['fonts'], $components['livereload'], $components['dashboard']);
     //posts
     $posts = R::findAll('post');
     $this->set('posts', $posts);
     $this->set('components', $components_list);
     $user = $this->getSession()->get('user');
     // $this->pp($user, true);
     $this->set('msg', '<h3>Hi ' . $user->nick . '!</h3>');
     $this->set('logo', array('src' => '//static.pixeledchimp.me/img/mush.png', 'alt' => 'Mush'));
     $this->render('admin/dashboard.html.twig');
 }
Example #3
0
 function indexAction()
 {
     //checkUser
     $this->checkUser();
     $includer = new Includer();
     $components = $includer->getComponents();
     $components_list = array($components['jquery'], $components['bootstrap'], $components['components-font-awesome'], $components['fonts'], $components['livereload']);
     $this->set('components', $components_list);
     //Check Bag
     $bag = new Bag();
     $loginerror = $bag->get('loginerror');
     if ($loginerror) {
         $this->set('msg', '<div class="alert alert-danger">' . $loginerror . '</div>');
     } else {
         $this->set('msg', 'This is the admin area. Please enter your credentials below.');
     }
     $this->set('logo', array('src' => '//static.pixeledchimp.me/img/mush.png', 'alt' => 'Mush'));
     $this->render('admin/login.html.twig');
 }