O'Reilly logo

Yii Project Blueprints by Charles R. Portwood II

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

Migrating the functionality to the module

Now that our module is set up, we can start by moving the functionality from our application controllers and theme into our dashboard module. We'll go over everything that is needed for each model: Categories, Content, and Users.

Migrating content management

In this next section, we will migrate all of the management functionalities we built in the previous chapter into our new module:

  1. Starting with our ContentController, we first want to remove the actionAdmin(), actionSave(), and actionDelete() methods from the ContentController.php file at protected/controllers/.
  2. Next, we should remove the access control properties for the actions we just deleted from our ContentController. The restored accessRules() method ...

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