Agile Web Application Development with Yii 1.1 and PHP5: by Jeffrey Winesett

By Jeffrey Winesett

This can be a step by step educational for constructing net functions utilizing Yii. This ebook follows the test-first, incremental, and iterative method of software program improvement whereas constructing a undertaking activity administration software known as "TrackStar". when you are a personal home page programmer with wisdom of item orientated programming and need to quickly enhance glossy, subtle internet functions, then this booklet is for you. No previous wisdom of Yii is needed to learn this booklet.

Show description

Read or Download Agile Web Application Development with Yii 1.1 and PHP5: Fast-track your web application development by harnessing the power of the Yii PHP Framework PDF

Best applied mathematicsematics books

Additional resources for Agile Web Application Development with Yii 1.1 and PHP5: Fast-track your web application development by harnessing the power of the Yii PHP Framework

Sample text

The project issues will be things such as development tasks and application bugs. The issues can be assigned to members of the project and will have a status such as not yet started, started, and finished. This way, the tracking tool can give an accurate depiction of projects with regard to what has been accomplished, what is currently in progress, and what is yet to be started. Creating user stories Simple user stories are a great way to identify the required features of your application. User stories, in their simplest form, state what a user can do with a piece of software.

This way, inside a view script, we can access the controller instance by simply referring to $this. This implementation makes the view and controller very intimate. Thankfully, all of these details are handled for us by Yii, so we can focus on coding the specific application. There is also a lot more to Yii controllers than just calling the model and rendering views. Controllers can manage services to provide sophisticated pre- and post-processing on requests, implement basic access control rules to limit access to certain actions, manage application-wide layout and nested layout file rendering, manage pagination of data, and many other behind-the-scenes services.

Currently our action in our MessageController, actionHelloworld(), simply makes a call to render our helloWorld view by executing the following code: $this->render('helloWorld'); Before we render the view, let's add the call to determine the time, and then store it in a local variable called $theTime. Let's then alter our call to render() by adding a second parameter which includes this variable: $theTime = date("D M j G:i:s T Y"); $this->render('helloWorld',array('time'=>$theTime)); When calling render() with a second parameter containing array data, it will extract the values of the array into PHP variables and make those variables available to the view script.

Download PDF sample

Rated 4.95 of 5 – based on 21 votes