Now that our application is set up, we can begin to create our module. We'll start by creating the basic folder structure within our
protected/ [...] modules/ /dashboard assets/ components/ config/ controllers/ views/ layouts/ user/ category/ filemanager/ default/
As you can see, the basic structure of our module looks identical to that of our main application. With our folder structure in place, we now need to create the
DashboardModule class that we'll later tell Yii about so that it knows what to load. The steps are as follows:
protected/modules/dashboardwith the following definition:
<?php class DashboardModule extends CWebModule ...