This article provides a brief overview of the TigerMVC and how to get started writing your first Tiger-based application.
Let’s begin by building a basic “hello world” page that does nothing more than grab a static “hello world” message from a (data) model, processes the message within the (business logic) controller and then send a message to a view. Pretty simple. But along the way we’ll discuss what each of the PHP classes does and how each of those classes (the Model classes, the View classes, and the Controller classes) all work together.
Now you’ll have all of the various YUI DOM and Events functions at your command. Let’s look at what the
lib('Model');
app('models/DAO/DAO_Users');
class Users extends Model {
// Model Vars //
public $SecurityCredentials;
protected $DAO_Users = NULL;
public $UserVO = NULL;
public function __construct()
{
$this->DAO_Users = new DAO_Users();
$this->UserVO = $this->DAO_Users->getVO(’UserVO’);
}
// DAO Methods //
public function getUserList()
{
return $this->DAO_Users->getUserList();
}