[fw-general] Logger produces warnings

2009-01-18 Thread Tom Printy
Hi Everyone, When using Logger I get the following in my views: Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of

Re: [fw-general] Logger produces warnings

2009-01-18 Thread till
On Sun, Jan 18, 2009 at 7:03 PM, Tom Printy wrote: > Hi Everyone, > > When using Logger I get the following in my views: > Strict Standards: date() [function.date]: It is not safe to rely on the > system's timezone settings. Please use the date.timezone setting, the TZ > environment variable or th

[fw-general] Dojo : ComboBox : POST value

2009-01-18 Thread Jeroen Keppens
Hi, I have a form with a combobox, I've set it up like this (class extends Zend_Dojo_Form) : $country = $this->createElement('ComboBox', 'country') ->setLabel('lbl_country') ->setAutoComplete(true) ->setMultiOptions($this->ge

Re: [fw-general] Dojo : ComboBox : POST value

2009-01-18 Thread Jeroen Keppens
Ok, just found this after re-reading the docs: "ComboBoxes return the label values ComboBoxes return the label values, and not the option values, which can lead to a disconnect in expectations. For this reason, ComboBoxes do not auto-register an InArray validator (though FilteringSelects do)." P

Re: [fw-general] 301 Redirect

2009-01-18 Thread bits.abhinav
Thanks a lot! Its working now. Simone Carletti wrote: > > Toggle the order of the rules. The www redirect should be placed before > the Zend Framework rewrite rule. In fact, it should appear first before > any functional rewrite rule. > > > bits.abhinav wrote: >> >> But will this work with

[fw-general] Re[fw-general] member Me and Zend_Session with Zend_Auth/Zend_Acl?

2009-01-18 Thread drj201
Hello, I am a newbie with the Zend Framework so please bare with me... My application has a default module and an admin module. The application implements Zend_Auth and Zend_Acl to determine the roles and users of the application and which modules they may gain access. In my application their a

Re: [fw-general] Logger produces warnings

2009-01-18 Thread Tom Printy
Thanks. This cleared it all up. I appreciate the response. -Tom On Sun, 2009-01-18 at 19:24 +0100, till wrote: > On Sun, Jan 18, 2009 at 7:03 PM, Tom Printy > wrote: > > Hi Everyone, > > > > When using Logger I get the following in my views: > > Strict Standards: date() [function.date]: It is

[fw-general] Possible bug in Zend_Test_PHPUnit??

2009-01-18 Thread fab2008
I'm writing some test for an app, I have a controller named Message accessible only to logged users, with three actions: compose, preview, send. One cannot access preview if he has not accessed composeAction succesfully before. I made this check using a session variable and if this variable is not

[fw-general] Implementing generic views that apply to all your controllers. Action Helpers?

2009-01-18 Thread Cameron
Hi guys, I have an application that is growing piece by piece, table by table, and as it grows, as do the number of view scripts the application needs. In order to ease maintenance on these, I've managed to make the vast majority of the views indentical across controllers, by just passing the rele

[fw-general] Zend_Form custom validation: $value IS filtered, but $context IS NOT!

2009-01-18 Thread D M
Hi! First I want to say I am grateful to the community for this great framework! I'm writing to anyone who uses custom validators with Zend_Form that make use of $context to access other form elements. As expected, when using custom validators with Zend_Form, the $value parameter supplied to the

Re: [fw-general] Implementing generic views that apply to all your controllers. Action Helpers?

2009-01-18 Thread Chris Weldon
Action Helpers are really dependent upon what you are trying to do. Something that's static I would render out using partials. However, if you're doing a bit of output processing (nothing static), I would recommend using an Action Helper. :-) -- Chris Weldon On Sun, Jan 18, 2009 at 11:17 PM, Camer

Re: [fw-general] Implementing generic views that apply to all your controllers. Action Helpers?

2009-01-18 Thread Cameron
wouldn't view partials still require the view script to exist? I was trying to avoid having the actual files there too. Infact, the perfect solution would be to override if the file does exist. On Mon, Jan 19, 2009 at 3:32 PM, Chris Weldon wrote: > Action Helpers are really dependent upon what y

[fw-general] get the action in the view

2009-01-18 Thread PHPScriptor
Hey, Is it possible to get the action (and controller) name in the view? I have a menu at the left of my site where I show some tips depending on the page where the visitors are. e.g. If the url is http://localhost/php/zend I want to show the visitor a tip like 'you can download zend free from.

Re: [fw-general] Implementing generic views that apply to all your controllers. Action Helpers?

2009-01-18 Thread Chris Weldon
Not necessarily. You can put one partial in a single location. I have the following structure for my applications: application/ layouts/ views/ scripts/ modules/ agency/ views/ scripts/ I have scripts located in both the layouts/, views/scripts, and modules/*/views/scr

Re: [fw-general] Implementing generic views that apply to all your controllers. Action Helpers?

2009-01-18 Thread Cameron
Oh, well that sounds like what I'm looking for. I'll have a look at view partials too. And Zend_Layout isn't going to work out, each view per action is quite different. Ergh. I mean... maybe I could, but there'd be so much if-then logic to accomodate the differences it'd rapidly turn in to a night