/**
* @Extends MasterController
*/
class Index extends MasterController
{
{
function __construct()
{
parent::__construct();
}
public function index()
{
$this->templet->title = "Abc mvc";
$this->templet->render("index/index");
}
public function home($params = "")
{
$this->model->users();
$this->model->insertUsers();
$this->model->updateUsers();
$this->model->deleteUsers();
}
}
public function index()
{
$this->templet->title = "Abc mvc";
$this->templet->render("index/index");
}
Here you can set page title as shown, call a templet(view file) located under views folder, 'index' directory with file name as 'index.php'