class DefaultController extends Controller { public function indexAction($page, $name) { return $this->render(‘default/new.html.php’ // , array( // $name =&…
Tag: model-view-controller
What’s the difference between Singleton and Registry design pattern
I have some confusion between those two patterns: singleton Check if the instance exists return it, or create a new one. Registry Check if the instance exists return it, or create a new one and store it. What the difference between them? Answer Both are about instance control. The difference is that Singleton allows only one instance of a given
Understanding MVC Views in PHP
I have to seem problems grasping the concept of Views in MVC, they are, according to what I’ve read, the layer that manages the presentation in the aplication, but many of the material I’ve been …
php Zend / MVC without mod_rewrite
I’ve seen it mentioned in many blogs around the net, but I believe it shoud be discussed here. What can we do when we have an MVC framework (I am interested in ZEND) in PHP but our host does not provide mod_rewrite? Are there any “short-cuts”? Can we transfer control in any way (so that a mapping may occur between