" I want my modules to be totally independent and completely modular,
in an encapsulated way that they
will have their own model/own controller and own view and I just want
to include this as a black box."
I think Cake plugins are the nearest match to this - see the manual:
http://manual.cakephp
You might try using the requestAction() method which exists in the view
class (and also controller class). This allows you to make requests to
any other controller that you want to envoke, which would make Cake
work in a "modular" fashion.
robechar.
On Jan 24, 12:44 pm, "Chris Hartjes" <[EMAIL
I believe the correct way to have self-contained elements is for the
element to perform a requestAction to get the data it needs. If you
have
$data = $this->requestAction( '/books/toplist' );
in your element, and your /books/toplist action is something like
function toplist(){
return $this->
On 1/13/07, NewbieCaker <[EMAIL PROTECTED]> wrote:
>
>
> A typical usage of this is the modules concept on Joomla/Mambo...
>
Well, this ain't Joomla/Mambo now, is it? ;)
Trying to import non-MVC concepts into an MVC framework are difficult
because, well, they're not MVC.
I think dkarlson point
Sorry about my post earlier. I got called away from computer mid-post,
and I it looks like Google submitted it??
Anyhow -- I don't know if this is the "right" way of doing things, but
this is how I solved the same problem.
http://groups.google.com/group/cake-php/browse_thread/thread/620dd148118b8
I don't know if this is the right way to do things or not
On Jan 24, 2:05 pm, "Davy" <[EMAIL PROTECTED]> wrote:
> Hi, I'd also like to know how to accomplish this.
>
> On Jan 14, 12:34 am, "NewbieCaker" <[EMAIL PROTECTED]> wrote:
>
> > Hi All,
>
> > I am new to CakePHP and have a question regardi
Hi, I'd also like to know how to accomplish this.
On Jan 14, 12:34 am, "NewbieCaker" <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I am new to CakePHP and have a question regarding modular coding in
> cake.
>
> Basically, let's say I am implementing a bookstore, and I want to have
> a generic layout t
Hi All,
I am new to CakePHP and have a question regarding modular coding in
cake.
Basically, let's say I am implementing a bookstore, and I want to have
a generic layout that will be used throughout the pages, which is very
easy in CakePHP. Along with that, I would like to have modules (div
box