Yii创建模块

来源:互联网 发布:网络试听证 编辑:程序博客网 时间:2024/06/01 09:05
./protected/yiic shell
Yii Interactive Tool v1.1 (based on Yii v1.1.8)
Please type 'help' for help. Type 'exit' to quit.
>> help  
At the prompt, you may enter a PHP statement or one of the following commands:
 - controller
 - crud
 - form
 - help
 - model
 - module

Type 'help <command-name>' for details about a command.

To expand the above command list, place your command class files
under 'protected/commands/shell', or a directory specified
by the 'YIIC_SHELL_COMMAND_PATH' environment variable. The command class
must extend from CConsoleCommand.

>> module UserManagement             
      mkdir /home/shuyong/PHPWebSite/trunk/03代码开发/SiMinWuShuShe/WebApp/protected/modules
      mkdir /home/shuyong/PHPWebSite/trunk/03代码开发/SiMinWuShuShe/WebApp/protected/modules/UserManagement
      mkdir /home/shuyong/PHPWebSite/trunk/03代码开发/SiMinWuShuShe/WebApp/protected/modules/UserManagement/components
      mkdir /home/shuyong/PHPWebSite/trunk/03代码开发/SiMinWuShuShe/WebApp/protected/modules/UserManagement/messages
      mkdir /home/shuyong/PHPWebSite/trunk/03代码开发/SiMinWuShuShe/WebApp/protected/modules/UserManagement/controllers
   generate controllers/DefaultController.php
      mkdir /home/shuyong/PHPWebSite/trunk/03代码开发/SiMinWuShuShe/WebApp/protected/modules/UserManagement/views
      mkdir /home/shuyong/PHPWebSite/trunk/03代码开发/SiMinWuShuShe/WebApp/protected/modules/UserManagement/views/default
   generate views/default/index.php
      mkdir /home/shuyong/PHPWebSite/trunk/03代码开发/SiMinWuShuShe/WebApp/protected/modules/UserManagement/views/layouts
      mkdir /home/shuyong/PHPWebSite/trunk/03代码开发/SiMinWuShuShe/WebApp/protected/modules/UserManagement/models
   generate UserManagementModule.php

Module 'UserManagement' has been created under the following folder:
    /home/shuyong/PHPWebSite/trunk/03代码开发/SiMinWuShuShe/WebApp/protected/modules/UserManagement

You may access it in the browser using the following URL:
    http://hostname/path/to/index.php?r=UserManagement

Note, the module needs to be installed first by adding 'UserManagement'
to the 'modules' property in the application configuration.

>> exit




原创粉丝点击