Page 1 of 1

Zend and fluent interface

Posted: Wed May 02, 2007 8:42 am
by jamiel
Hi all,

I am curious as to how Zend implement the fluent interface abilities in their framework. For example in Zend/Controller/Front.php I can see no override of the __call() method to return an instance of itself, and no methods return an instance of getInstance() . So I would be grateful if someone could explain why I can use call $front->addControllerDirectory('foo')->setDefaultAction('bar') .

Many thanks

Jamie

Posted: Wed May 02, 2007 8:52 am
by feyd
addControllerDirectory() returns $this.