Page 1 of 1

[Zend]

Posted: Sun Oct 24, 2010 5:07 pm
by VladSun
First I am relatively new to Zend (I'm just in a process of migrating to it). Two questions...
1) Where do I have to put "$front->registerPlugin()" - in the BootStrap file or somerhwere else?
2) Do I have the Application_* classes ready to be used with the internal autoloader?

PS: Sorry to be lazy :) I've read some articles but they are not the "quick start" I've expected them to be.

Re: [Zend]

Posted: Sun Oct 24, 2010 11:06 pm
by josh
#1 - bootstrap would be the typical place.
#2 - I don't understand? Are you asking how auto loading works?

Re: [Zend]

Posted: Mon Oct 25, 2010 2:35 am
by VladSun
#1 Thanks

#2

Code: Select all

class Application_Plugin_Dummy extends Zend_Controller_Plugin_Abstract { ...
Is there an easy way to autoload it - i.e. some special paths in the "application" folder?

Re: [Zend]

Posted: Mon Oct 25, 2010 1:25 pm
by josh
Put it in a path Application/Plugin/ relative to a path on your include path. The other option is to simply use a require_once() Make sure your application's namespace is either added to the auto loader, or you've enabled 'fallback auto loading' (fallback auto loading just loads anywhere on the include_path regardless of class prefix, that's what I currently use)