[eluser]AnimeCYC[/eluser]
[quote author="Phil Sturgeon" date="1244121334"]I can see some thought has gone into this but I'm not sure I follow. What is the purpose of this? Is it meant as a lightweight competitor to Matchbox and HMVC?
I'm not sure I like the way you load "a module" and it then loads the view automatically. Perhaps I don't understand.[/quote]
To answer your question, I didn't think it would compare to a full fledged system as HVMC or Matchbox but ... maybe? As for the the view, it doesnt load the view automatically. This is optional by calling the $this->view(); method from within the module controller on the display() method for instance:
Code:
function display() {
print $this->someFunction();
}
function somFunction() {
$this->view('sampleView');
}
The function that the library looks for to output the display is the display() method inside the module controller so if you don't want anything to display either don't call the view() method from within the module controller or don't call the display() method within the module controller and set the load() method within its parent controller (where your calling the module from) to not buffer the result and it will just include the file instead of sending it to the output buffer.