O'Reilly logo

Yii Rapid Application Development Hotshot by James R. Hamilton III, Lauren J. O'Meara

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Displaying Graphical Report Output

In the previous section, we collected and prepared data. In this section, we simply have to add a graphing extension to display it. We chose to use the Flot extension because we liked the look and ease of use of the extension.

Prepare for Lift Off

  1. Download the Yii extension EFlot from http://www.yiiframework.com/extension/flot/.
      cd ~/Downloads
      wget http://www.yiiframework.com/extension/flot/files/EFlot.zip
    
  2. Unzip the package in your project's extensions directory.
      cd ~/projects/ch7/protected/extensions/
      unzip ~/Downloads/EFlot.zip
    
  3. Add the following entry to the import array in ch7 | Source Files | protected | config | main.php.
      'ext.EFlot.*'

Engage Thrusters

  1. Update the scheduled job view, Source Files | protected ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required