Getting Started

This article provides a brief overview of the TigerMVC and how to get started writing your first Tiger-based application.

Setting-up Your First “Hello World” Page

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.

The Tiger Model Class

Now you’ll have all of the various YUI DOM and Events functions at your command. Let’s look at what the

<br /> <?php</p> <p>lib('Model');<br /> app('models/DAO/DAO_Users');</p> <p>class Users extends Model {</p> <p> // Model Vars //<br /> public $SecurityCredentials;<br /> protected $DAO_Users = NULL;<br /> public $UserVO = NULL;</p> <p> public function __construct()<br /> {<br /> $this->DAO_Users = new DAO_Users();<br /> $this->UserVO = $this->DAO_Users->getVO(&#8217;UserVO&#8217;);<br /> }</p> <p> // DAO Methods //</p> <p> public function getUserList()<br /> {<br /> return $this->DAO_Users->getUserList();<br /> }</p> <p>
Now …