- Create folders like these:
- assets/
- components/
- controllers/
- databases/
- files/
- models/
- templates/
- theme/
- views/
-
Copy ./config.sample.php to ./config.php and then modify it
-
Create SiteController.php into controllers/
-
Modified SiteController.php
<?php
class SiteController extends Controller
{
protected $view;
public function __construct()
{
$this->view = new HtmlView;
$this->view->title = APP_NAME;
}
public function index()
{
$this->view->render('index');
}
}
- enjoy