There is no entity in CakePHP that work like Joomla modules out of the
box. The closest thing would be elements - elements are "mini-views"
that can be included in layouts or views. However, since they are
intended to be reliant on the information passed to the view they're
included in, they lose the main bit of a Joomla module's functionality
- namely the ability to be fully self-contained and make their own
database calls.

You CAN use App::import within an element to include the model(s) you
need, and run queries on them but this not very efficient as you may
end up with several complete instances of the same model being
generated in a single request.

- James

On Jul 7, 1:44 am, shadab <[email protected]> wrote:
> Hello All,
>
> Greetings of the day!
>
> I want to develop some robust application in CAKE PHP. I would like to
> use Joomla module idea in it. Let me clear what is Joomla module, who
> are not familiar with Joomla. Joomla module is logic with interface
> which can placed at multiple pages at well defined position of the
> pages. We can easily make it enable/disable it and change it position
> any time. For e.g. “online friends” is one module which can be placed
> in different pages at well defined position.
>
>  would like same thing to develop in CAKE PHP to accomplish below goal
> •     We can create module by simply adding files and db entries
> •     We would have generalized function to load modules but once I want
> to create new module than I need not require to touch my controller’s
> logic, just need to db entry and adding necessary files
> •     We can easily enable/disable modules to any page by db may be using
> flag
>
> Now my questions
> 1)      What would be best things in cake php to create this kind of
> module? Whether I should go with helper or anything else?
> 2)      I am open for suggestions/discussions. Please send me your views/
> ideas to accomplish above goals.
>
> Thanks in advance. :)
>
> Best Regards,
> Shadab Shaikh
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to