MODULES UNDER YII

Hi,

Anyone has ben working with modules with this framework?

have any sample module builded as a miniblog or anithing with DB support?

regards

Max

currently the yiic tool can build automatic the full skeleton of files

typing module forum

Quote

root@seguro [/home/devm/www/sistema]# protected/yiic shell

Yii Interactive Tool v1.0 (based on Yii v1.1-dev)

Please type 'help' for help. Type 'exit' to quit.

>>

>> module forum

      mkdir /home/devm/public_html/sistema/protected/modules/forum

      mkdir /home/devm/public_html/sistema/protected/modules/forum/views

      mkdir /home/devm/public_html/sistema/protected/modules/forum/views/default

  generate views/default/index.php

      mkdir /home/devm/public_html/sistema/protected/modules/forum/views/layouts

  generate views/layouts/.yii

      mkdir /home/devm/public_html/sistema/protected/modules/forum/components

  generate components/.yii

      mkdir /home/devm/public_html/sistema/protected/modules/forum/controllers

  generate controllers/DefaultController.php

      mkdir /home/devm/public_html/sistema/protected/modules/forum/models

  generate models/.yii

  generate ForumModule.php

Module 'forum' has been created under the following folder:

    /home/devm/public_html/sistema/protected/modules/forum

You may access it in the browser using the following URL:

    http://hostname/path…dex.php?r=forum

Note, the module needs to be installed first by adding 'forum'

to the 'modules' property in the application configuration.

>>

but not have option for make actions, any ideias to expanding the controller features to modules features under cli?

regards

we can build an model and actions controllers using the yiic cli and latter move to /modules thats all?

regards

Max

Yes.

Hi Qiang,

first thanks for this gread framework contribution to expand many posibilities for many people/php ecosystem ++++!!!

can I sugest add a new category to forum called 'Modules'  like this

http://www.yiiframew…/board,7.0.html

have to 'Extentions'…

Kind regards

Max

Quote

Yes.

Thanks. A module is a kind of extension in Yii. Creating a new forum category might cause confusion, I am afraid.