[fw-general] APPLICATION_ENV for cli scripts (staging)

2011-06-08 Thread Cristian Bichis
Hello, I am interested how you guys are setting the APPLICATION_ENV for staging. For httpd is easy to set APPLICATION_ENV in vhost. For CLI can be used OS environment variable. But for cli scripts is much harder, especially if the same machine is going to be used for multiple projects, some

Re: [fw-general] APPLICATION_ENV for cli scripts (staging)

2011-06-08 Thread Markizano Draconus
Hi Christian, https://github.com/markizano/markizano/blob/master/application/setup.php https://github.com/markizano/markizano/blob/master/htdocs/.htaccess I use a combination of .htaccess and $_ENV for setting up the application environment. You can create a bash wrapper (ENVIRONMENT=staging),

[fw-general] Re: Zend_Validate_EmailAddress and emails with dot at the end

2011-06-08 Thread Jan Pieper
Try visiting http://framework.zend.com./ Works fine for me. A dot at the end is not invalid (for hostnames) because it indicates the explicit end of the domain name. If no dot is available at the end and the given host cannot be found by your dns server you (/your client) can use search domains

Re: [fw-general] APPLICATION_ENV for cli scripts (staging)

2011-06-08 Thread Marco Pivetta
I usually wrap my cronjobs within bash scripts, which allows me to set enviroment directly in the script... That allows me to centralize and pipe the execution of multiple CLI PHP commands :) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 8 June 2011 15:27, Markizano

Re: [fw-general] Re: Zend_Validate_EmailAddress and emails with dot at the end

2011-06-08 Thread Fernando Morgenstern
I forgot to update this discussion. This is a bug that was introduced on recent versions. Dots at the end are not valid as per RFC-2822. I have reported and it was fixed yesterday ( very fast solution :) ): http://framework.zend.com/issues/browse/ZF-11451 Regards, Fernando Morgenstern

Re: [fw-general] APPLICATION_ENV for cli scripts (staging)

2011-06-08 Thread Cristian Bichis
Thanks, That was too easy :) Exactly what i missed and i needed... Cristian I usually wrap my cronjobs within bash scripts, which allows me to set enviroment directly in the script... That allows me to centralize and pipe the execution of multiple CLI PHP commands :) Marco Pivetta

[fw-general] Dynamically routing a module to different controllers

2011-06-08 Thread tridem-zend
Depending on the APPLICATION_ID my website adds different statict content from a specific module. F.e. APPLICATION_ID 1 catches content from /modules/content1 etc. I would like to always call the static contents via www.mydomain.de/content/foo. I tried around using a plugin but I always get a

Re: [fw-general] APPLICATION_ENV for cli scripts (staging)

2011-06-08 Thread nevvermind
Sorry for barging in, but what do you do exactly with a PHP CLI access to your app? I'm terribly interested in API enabled apps. On Wed, Jun 8, 2011 at 5:05 PM, Cristian Bichis cri...@imagis.ro wrote: Thanks, That was too easy :) Exactly what i missed and i needed... Cristian I usually

Re: [fw-general] APPLICATION_ENV for cli scripts (staging)

2011-06-08 Thread Marco Pivetta
@nevvermind any input output operation where you'll need both batch processing power and piping... As an example, I usually build web crawlers that are accessible as CLI interfaces, which makes cronjob activity easier for me and allows me to redirect output wherever I want :) Marco Pivetta

[fw-general] Zend_PDF canvases / EPS images

2011-06-08 Thread tommyc2k7
Hi all, has any progress been made with Zend_PDF Canvases? I see that it is half completed on the bug tracker, how much more work is needed to complete it? Also, has anybody managed to convert the TCPDF ImageEPS() function to Zend_PDF to import legacy .ai/.eps files into a pdf? Thank you --

Re: [fw-general] APPLICATION_ENV for cli scripts (staging)

2011-06-08 Thread Cristian Bichis
cronjobs, test scripts, aso... Cristian Sorry for barging in, but what do you do exactly with a PHP CLI access to your app? I'm terribly interested in API enabled apps. On Wed, Jun 8, 2011 at 5:05 PM, Cristian Bichis cri...@imagis.ro mailto:cri...@imagis.ro wrote: Thanks, That was

Re: [fw-general] APPLICATION_ENV for cli scripts (staging)

2011-06-08 Thread Matthew Weier O'Phinney
-- Cristian Bichis cri...@imagis.ro wrote (on Wednesday, 08 June 2011, 05:05 PM +0300): Thanks, That was too easy :) Exactly what i missed and i needed... Another easy way: prompt APPLICATION_ENV=cli ; php cli-endpoint.php In your script, grab from $_SERVER:

Re: [fw-general] Dynamically routing a module to different controllers

2011-06-08 Thread Mark Harris
My plugin: ?php class Plugin_Content extends Zend_Controller_Plugin_Abstract { public function dispatchLoopStartup(Zend_Controller_Request_Abstract $request) { I would remove that plugin all-together and push this to your bootstrap, like so: