Re: [fw-general] Accessing config from CLI crons

2010-11-05 Thread Jurian Sluiman
On Friday 05 Nov 2010 16:12:47 Hector Virgen wrote: > Either way works, but I like your version because I personally believe > singletons are evil :) Then why are you suggesting it ;) That's my idea as well. It's more clear what happens, it's better testable and you're able to trace the dependen

[fw-general] Typo in zend.http.user-agent.html

2010-11-05 Thread whisher
Hi, To point out a typo in http://www.framework.zend.com/manual/en/zend.http.user-agent.html http://www.framework.zend.com/manual/en/zend.http.user-agent.html It's chmod -R o+rwX data/worful/cache It should be chmod -R o+rwX data/wurfl/cache Bye. Well done folks ! -- View this message in cont

Re: [fw-general] Accessing config from CLI crons

2010-11-05 Thread Hector Virgen
Either way works, but I like your version because I personally believe singletons are evil :) Just don't forget to bootstrap the front controller before accessing the resource, otherwise it will return null. -- *Hector Virgen* Sr. Web Developer http://www.virgentech.com On Fri, Nov 5, 2010 at

Re: [fw-general] Accessing config from CLI crons

2010-11-05 Thread Jurian Sluiman
Hi all, On Friday 05 Nov 2010 14:41:59 Hector Virgen wrote: > $bootstrap = $application->getBootstrap(); > Zend_Controller_Front::getInstance()->setParam('bootstrap', $bootstrap); While most tutorials use the Singleton pattern of the frontController, I see myself using the bootstrap more often:

Re: [fw-general] Accessing config from CLI crons

2010-11-05 Thread Саша Стаменковић
Brilliant, worked like a charm! Thanks Hector :) Regards, Saša Stamenković On Fri, Nov 5, 2010 at 2:41 PM, Hector Virgen wrote: > I believe that param is added when the application is run(). Since you're > not calling run(), you'll need to add that param manually: > > $bootstrap = $applicatio

Re: [fw-general] Accessing config from CLI crons

2010-11-05 Thread Hector Virgen
I believe that param is added when the application is run(). Since you're not calling run(), you'll need to add that param manually: $bootstrap = $application->getBootstrap(); Zend_Controller_Front::getInstance()->setParam('bootstrap', $bootstrap); -- Hector Virgen Sent from my Droid X On Nov 4,