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

Preparing Your Module Framework

The first task in creating a module is creating a space for the module. In this task, we will set up the framework that our module will inhabit.

Engage Thrusters

  1. In the modules directory of your project (ch8 | Source Files | protected | modules) create a directory named jobQueue.
  2. In the newly created jobQueue directory, create the following directories:
    • commands
    • components
    • controllers
    • migrations
    • models
    • views
    • extensions

    The Unix command to create these directories looks like the one shown in the following screenshot:

    Engage Thrusters
  3. A module must include in its root directory a class that extends from CWebModule. In the main module directory ...

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