-- Roman1975 <[EMAIL PROTECTED]> wrote (on Monday, 10 December 2007, 12:00 AM -0800): > > in > http://framework.zend.com/svn/framework/trunk/incubator/library/Zend/View/Helper/Action.php > line: > $this->dispatcher = clone $front->getDispatcher(); > > get error! because cloning is prohibited in the ZF 1.03! > Zend_Front_Contoller classroom. > What do you think about this?
Umm, did you try that? Because it's not cloning the front controller; it's cloning the dispatcher -- which is *not* a singleton. If you give it a try, you'll see that it works (try running the test suite for it, and you'll see -- incubator/tests/Zend/View/Helper/ActionTest.php). > Matthew Weier O'Phinney-3 wrote: > > > > -- Roman1975 <[EMAIL PROTECTED]> wrote > > (on Sunday, 09 December 2007, 08:58 AM -0800): > >> Zend_Front_Controller handles communications for the session is a user > >> query > >> http://localhost/ for example, he zapusti module: index controller: index > >> action: index > >> How do if you want to help with this request had been met, even queries > >> to > >> the system? for example as a template privedenogo above query system must > >> still handle the request http://localhost/forum/top/messages/ course this > >> should not be a request through http, say it is likely to be similar to > >> _forward but this method should return a result of work: / forum / top / > >> messages / > > > > I'm really sorry -- I just don't understand what you're asking. > > > > If you are asking that you would like to execute a secondary action, the > > ways you can do this are either by using _forward() from a given action, > > or by using the action() view helper currently in the incubator from > > within a view script: > > > > <?= $this->action('messages', 'top', 'forum') ?> > > > >> p / s > >> Why was added __clone () method in Zend_Front_Controller? > >> cloning, it is given that opportunity! > > > > The front controller is a singleton, and as such should not allow > > cloning; to this end, we added a private __clone() method. -- Matthew Weier O'Phinney PHP Developer | [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/
