[fw-general] Re: Zend Framework 1.9.6 missing Zend/Queue/Adapter/Stomp/IO.php and other files

2009-12-07 Thread Andrea Turso
I downloaded the Zend Framework from trunk using svn and ran phpunit tests/ It stops testing almost immediately with the following output: PHP Fatal error: Class 'Zend_CodeGenerator_Php_Docblock_Tag' not found in /tmp/ZF/library/Zend/CodeGenerator/Php/Docblock/Tag/Param.php on line 35 Fatal erro

Re: [fw-general] Registering namespaces in 1.9

2009-12-07 Thread Diego Potapczuk
Try just putting this in your config.ini. autoloaderNamespaces[] = "Utilities_" ::: Diego Potapczuk On Tue, Dec 8, 2009 at 1:01 AM, Mark Steudel wrote: > I am trying to figure out how to register a namespace in 1.9. This is > my boostrap.php file. > > class Bootstrap extends Zend_Applicat

[fw-general] Registering namespaces in 1.9

2009-12-07 Thread Mark Steudel
I am trying to figure out how to register a namespace in 1.9. This is my boostrap.php file. '', 'basePath' => APPLICATION_PATH, )); $autoloader->registerNamespace( 'Utilities_'); return $autoloader; } } When I tried to use registerNamespace I get: Zend_

[fw-general] multiple databases with application.ini?

2009-12-07 Thread Terre Porter
Anyone got some pointers? I read two pages with info about dbAlias, but it doesn't seem to have ever left the proposed state. http://framework.zend.com/wiki/display/ZFPROP/Zend_Db_Adapter_Alias+-+Joseph +Lee http://framework.zend.com/issues/browse/ZF-7997 There was also a reference to another w

Re: [fw-general] Zend_Date first day of the week

2009-12-07 Thread takeshin
Thomas Weidner wrote: > > > It is possible. > But your expectations are wrong. ;-) > > No comprendo, Senior ;) Thomas Weidner wrote: > > It's a regional topic. > For more informations look into unicodes database: http://unicode.org/cldr > > It a little bit off topic already :) I'm in

[fw-general] Zend Framework 1.9.6 missing Zend/Queue/Adapter/Stomp/IO.php and other files

2009-12-07 Thread Andrea Turso
I just downloaded Zend Framework 1.9.6 full package from the Zend CDN to test it under PHP 5.3.1, but when running $ phpunit tests/ the following error appears: Warning: require_once(Zend/Queue/Adapter/Stomp/IO.php): failed to open stream: No such file or directory in ~/Downloads/ZendFramework-1

[fw-general] can't set/get ACLs on existing Zend_Service_Amazon_S3 objects or buckets

2009-12-07 Thread Joe Czhlobatnik
There appears to be no means to change the ACL for an existing object or bucket, and no way to specify an ACL at the time of creating a new bucket (like there is at the time of creating a new object.) I'm thinking, at the least, there should be setAcl() and getAcl() methods, and probably also c

Re: [fw-general] Zend_Date first day of the week

2009-12-07 Thread Thomas Weidner
- Original Message - From: "takeshin" To: Sent: Monday, December 07, 2009 10:31 PM Subject: Re: [fw-general] Zend_Date first day of the week A.J. Brown-3 wrote: I think his question is: "How do I determine (automagically) what the first day of the week is, for a given LOCALE?

Re: [fw-general] Zend_Date first day of the week

2009-12-07 Thread takeshin
A.J. Brown-3 wrote: > > I think his question is: > > "How do I determine (automagically) what the first day of the week is, > for a given LOCALE?" > > I think he wants something like this: > > Zend_Locale::setLocale( ); > Zend_Date::getFirstWeekday(); // returns 0 for Americas, 1 for German

Re: [fw-general] Zend_Date first day of the week

2009-12-07 Thread A.J. Brown
I think his question is: "How do I determine (automagically) what the first day of the week is, for a given LOCALE?" I think he wants something like this: Zend_Locale::setLocale( ); Zend_Date::getFirstWeekday(); // returns 0 for Americas, 1 for Germany On Mon, Dec 7, 2009 at 11:07 AM, Thomas

RE: [fw-general] ZF Open Source Project: Example of Best Practices?

2009-12-07 Thread Wil Sinclair
>From what Forrest has told me, he follows Zend's recommendations for best practices to the letter. I'm CC'ing Forrest in so he can say for sure, but he's currently working on getting the code and infrastructure ready for public consumption. ,Wil -Original Message- From: swilhelm [mailto

Re: [fw-general] Random utility functions, where would they go?

2009-12-07 Thread Diego Potapczuk
A good place to put utilities that helps in the view is the Zend_View_Helper, so you can easy use it in the view. If it is not a view utility, you can see if it fits in Zend_Filter or Zend_Controller_Action_Helper, it will depends where it best fits. If it is a really general use utility you can ma

[fw-general] Random utility functions, where would they go?

2009-12-07 Thread Mark Steudel
Over the years I've accumulated various functions that do little utilities here and there, I'd still like to use them in my ZF project, but I'm curious where would be the appropriate place to put them and include them so they are available to my different controllers ... MS

Re: [fw-general] Zend_Date first day of the week

2009-12-07 Thread Thomas Weidner
- Original Message - From: "takeshin" To: Sent: Monday, December 07, 2009 3:25 PM Subject: Re: [fw-general] Zend_Date first day of the week $date->getWeekday(0); Note that NOT EVERY COUNTRY defines 0 to be sunday... it depends on the country if 0 is a sunday or another day. Th

Re: [fw-general] Zend_Date first day of the week

2009-12-07 Thread takeshin
W dniu 2009-12-07 10:33, Thomas Weidner [via Zend Framework Community] pisze: > $date->getWeekday(0); > > Note that NOT EVERY COUNTRY defines 0 to be sunday... it depends on the > country if 0 is a sunday or another day. > Thank you. That's all in the manual. But, simply put: How to determi

Re: [fw-general] preDispach Plugin | URL Issues

2009-12-07 Thread Matthew Weier O'Phinney
-- Shaun Farrell wrote (on Monday, 07 December 2009, 06:31 AM -0500): > Ok so here is what I am doing.  Before dispatch if the user is logged in and > they have to reset their password then it will set the action and the > controller to the correct controller/action. > This code below works fine. 

Re: [fw-general] preDispach Plugin | URL Issues

2009-12-07 Thread Shaun Farrell
Yeah, I am not sure I want do a header redirect all the time. Anyone know if it is wise to instantiate the Action Helper Redirector in the plugin? $redirector = new Zend_Controller_Action_Helper_Redirector(); $redirector->gotoRoute($urlOptions, '', true); Shaun J. Farrell Washington, DC (202)

Re: [fw-general] preDispach Plugin | URL Issues

2009-12-07 Thread Jurian Sluiman
The redirector is an action helper which you can't use inside front controller plugins. You have access though to the response object. You could inject the redirect header directly into the response object. Regards, Jurian -- Jurian Sluiman CTO Soflomo V.O.F. http://soflomo.com On Monday 07 De

Re: [fw-general] Working with dates (filter, view helper)

2009-12-07 Thread Саша Стаменковић
Sorry, copy-paste error, mysql format is -MM-DD . *Can you please tall what is the problem with my view helper, and why there are no date view helper and date filter in zf already?* * * *Can you give an example on how to achieve this, date f

Re: [fw-general] Working with dates (filter, view helper)

2009-12-07 Thread Thomas Weidner
- Original Message - From: "umpirsky" To: Sent: Monday, December 07, 2009 11:19 AM Subject: [fw-general] Working with dates (filter, view helper) Hi. I'm working with dates, date format in my database is standard mysql date type (YYY-MM-DD). I want view helper to format my dates a

[fw-general] preDispach Plugin | URL Issues

2009-12-07 Thread Shaun Farrell
Ok so here is what I am doing. Before dispatch if the user is logged in and they have to reset their password then it will set the action and the controller to the correct controller/action. This code below works fine. However, the url in the browser doesn't change. So if I come into the system

Re: [fw-general] Failed commit on Zend_Translate

2009-12-07 Thread Nicolas GREVET
Hmm, well, I'm not part of the project, I'm just using the trunk in my project. I highly doubt I can anonymously commit on the ZF repository, or am I wrong? -- Nicolas Grevet Bart McLeod a écrit : Nicolas GREVET schreef: Hi everyone, I guess something went wrong during the last commit of '

Re: [fw-general] Failed commit on Zend_Translate

2009-12-07 Thread Bart McLeod
Nicolas GREVET schreef: Hi everyone, I guess something went wrong during the last commit of 'Thomas' (number 19457) on Zend_Translate. The Zend/Translate/Adapter/Xliff was commited with a var_dump($this->_data) on line 92. Could someone tell him? Regards, -- Nicolas Grevet Can you not just

[fw-general] Working with dates (filter, view helper)

2009-12-07 Thread umpirsky
Hi. I'm working with dates, date format in my database is standard mysql date type (YYY-MM-DD). I want view helper to format my dates according to my locale settings, which are registered in registry under Zend_Locale key. Is this the right way to go http://pastie.org/731564 ? I also want a fi

[fw-general] Failed commit on Zend_Translate

2009-12-07 Thread Nicolas GREVET
Hi everyone, I guess something went wrong during the last commit of 'Thomas' (number 19457) on Zend_Translate. The Zend/Translate/Adapter/Xliff was commited with a var_dump($this->_data) on line 92. Could someone tell him? Regards, -- Nicolas Grevet

Re: [fw-general] Zend_Date first day of the week

2009-12-07 Thread Thomas Weidner
$date->getWeekday(0); Note that NOT EVERY COUNTRY defines 0 to be sunday... it depends on the country if 0 is a sunday or another day. Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: "takeshin" To: Sent: Monday, De

Re: [fw-general] Zend_Date first day of the week

2009-12-07 Thread takeshin
Sorry, but this is not what's I'm asking for. The question is how to get first day of the week for the specified timezone, which returns *always* 0 (Sunday) for America and *always* 1 (Monday) for Poland. -- regards takeshin -- View this message in context: http://n4.nabble.com/Zend-Date-firs

Re: [fw-general] Zend_Date first day of the week

2009-12-07 Thread takeshin
vince. wrote: > > Try: > > date_default_timezone_set('Europe/Berlin'); > $date = new Zend_Date(); > > // Output of the current timestamp > print $date; > print ""; > print $date->get(Zend_Date::WEEKDAY); > Thanks. I Always forget to set correct timezo