PHP Classes

File: app/controllers/HomeController.php

Recommend this page to a friend!
  Classes of John Marlo Factorin   Bit Framework   app/controllers/HomeController.php   Download  
File: app/controllers/HomeController.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Bit Framework
MVC based Web application development framework
Author: By
Last change: Update of app/controllers/HomeController.php
Date: 2 months ago
Size: 324 bytes
 

Contents

Class file image Download
<?php

use Snipworks\BitCore\Request;
use
Snipworks\BitCore\Controller;

class
HomeController extends Controller
{
    public function
indexAction()
    {
       
$name = Request::get('name');
        if (!
$name) {
           
$name = UserService::getUserName();
        }

       
$this->view->set('name', $name);
    }
}