Diferences between extensions and modules?

Hello!

Please share your knowhow…

Can you post what diferences are you found working with modules and extensions at code level.

regards

An extension, at its simplest form, could be just a class. We call it extension because we intend to reuse it in other projects.

A module is more complex. You may think it as a complete application used inside another application.

Quote

An extension, at its simplest form, could be just a class. We call it extension because we intend to reuse it in other projects.

A module is more complex. You may think it as a complete application used inside another application.

Actually, I've found out it is exactly that: a (sub)application. It behaves the same, it has most of the features of an app, it's simply that it needs to be wrapped differently because of its nature - i.e. it needs to be embedded in an app.

Actually, you could simply take a module and make an app out of it, and that with minimal changes.

The module way is a perfect for me, I have created a module called 'system' and I am putting here all we needed for my projects

system/

        /extensions

        /filters

        /components

        /functions

them I don worry when coming new releases of YII, also I cam create at any time new webapp and only paste one directory module system under modules directory, and modify main.php config file, thats all

realy nice.

but I am still learn all potential of a module.

regards

Max

I think you've got it wrong. A module needs to have views, in order to really be a module, otherwise you should put your extensions/filters/components/helpers (yes, I guess in system/functions you actually have helpers) directly under the application's basePath. (and copy/paste those directories in new projects as needed).

Possible modules on a website would be "blog", "forum", "wiki", "admin" and so on.

Sorry for seeming harsh, I ment it from the perspective of clean development practices. Hope it helps. Cheers.

yes under yiic, fir I do : module system, only for store extensions en components etc…

after that I buil all my apps in the modules way,

yiic:

module users

modelm users user

crudm users 4 user

if I need same comtroller:

controllerm users profile

them I am ready for modify and start the new module,

realy more easy…

:)