Example of generating a view by php code

<?php require_once("application/logics/views.php"); 
 require_once("application/logics/user.php"); 
$view = New View;
$user = New User;
$view->html("start");
require_once("application/base/head.php");$view->body("start");$view->html('render','<br/>') ;
 require_once("application/base/top.php");
$view->font("Welcome to PPHL Management System");
$user->login_view();
require_once("application/base/footer.php");
$view->body("end");
$view->html("end");
?>


Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s