Re: [fw-general] Zend_Form select element always multi?

2008-03-06 Thread mrolli
Jeffrey Sambells-2 wrote: > > The problem however is that for some reason it renders as a multi > select (with multiple="multiple"): > Same problem here: example1 $location_id = new Zend_Form_Element_Select('location_id'); $location_id->setLabel('ticket_locations')

[fw-general] Zend_Form select element always multi?

2008-03-06 Thread Jeffrey Sambells
I seem to be having a problem rendering a select box. I have this: $form->addElement( 'select', 'select', array( 'label' => 'select', 'value' => 'value', 'multiOptions' => array( 'First', 'Second', 'third' ) ) ); The

Re: [fw-general] Zend_Filter_Input 'presence'=>'required'

2008-03-06 Thread thurting
Hi Brian, You can change the relative message by setting it as an option of your Zend_Filter_Input instance. This can be done during instantiation or through the setOptions() method. You can not set different messages for different filters/validators - only one message format per instance. You

RE: [fw-general] Zend_Cache and Page caching

2008-03-06 Thread Steven Brown
Hi Simon, You could possibly tag it and use that tag to remove the cache after it has been saved, or you could create your own page caching with an option for whether or not to save it. The basic Zend_Cache usage relies on you to do the saving. Cheers, Steven -Original Message- From: Sim

Re: [fw-general] Zend_Db_Table: Problem with Relatationships

2008-03-06 Thread Jan Pieper
Yeah, this works fine :-) -- Jan Jan Pieper wrote: $article->findDependentRowset('Author'); But the result is an Exception :( Zend_Db_Table_Exception: No reference from table Author to table Article In you example, a foreign key in Article references a primary key in Author. So Author i

Re: [fw-general] Zend_Filter_Input and messages

2008-03-06 Thread Paul Fitzpatrick
I know its bad discussion etiquette, but does anyone have a possible solution to my problem below? I have tried it with 1.5 RC 1 and still have the same issue. fugazied wrote: I am having some issues with the custom messaging and Zend Input Filter. Probably something obvious I am missing,

[fw-general] Zend_Cache and Page caching

2008-03-06 Thread Simon Mundy
Hi there - I have a quick Q about caching pages using the Zend_Cache 'Page' frontend. Is there any way of telling Zend_Cache not to store the page after the hit has been tested? I.e. what I'd like to be able to do is to allow page caching as per normal for 99% of my pages, but in some con

Re: [fw-general] Zend_Db_Table: Problem with Relatationships

2008-03-06 Thread Bill Karwin
Jan Pieper wrote: > > $article->findDependentRowset('Author'); > > But the result is an Exception :( > > Zend_Db_Table_Exception: No reference from table Author to table Article > In you example, a foreign key in Article references a primary key in Author. So Author is the "parent", Article

[fw-general] Zend_Db_Table: Problem with Relatationships

2008-03-06 Thread Jan Pieper
Hi guys, i am trying to create references between my model classes based on Zend_Db_Table_Abstract but it does not function. I donĀ“t know why and so I hope someone of you guys can help me :-) _I have 2 simple tables:_ flabben.article (id, [...], author_id) flabben.author (id, [...]) *File:* _

Re: [fw-general] Zend_Locale Quality

2008-03-06 Thread Arthur M. Kang
It seems like the "default" for the locale aware classes is to simply use the first one set, regardless of the quality value. Is that correct? If so, what would be the best method for me to "rearrange" them to have the locale I want as default to be first without messing with the ZF code? A

Re: [fw-general] Critical Error with Zend_Session

2008-03-06 Thread Darby Felton
Maybe try PHP ext/session configuration (i.e., session.gc_probability, session.gc_divisor, session.gc_maxlifetime)? You can set these options with Zend_Session::setOptions(); please see the following documentation for more information: http://framework.zend.com/manual/en/zend.session.global_se

Re: [fw-general] Critical Error with Zend_Session

2008-03-06 Thread WooKasZ
So what should I do to make it work ? I have to clean this session directory. My GB function: function garbageCollection( $dir, $lifetime ) { if ( $resDirectory = opendir( $dir ) ) { while ( ( $strFile = readdir( $resDirectory ) ) !== false ) { if ( is_file( $dir

Re: [fw-general] Zend_Locale Quality

2008-03-06 Thread Arthur M. Kang
Thomas, Thanks for the reply. I did read the manual and what you stated was pretty much what I concluded. Shouldn't there be a way to manually OVERRIDE the autodetection and SET THE LOCALE that all "locale aware classes" should use? Otherwise, you have to create the locale object and use i

[fw-general] Zend_Layout with nested layout?

2008-03-06 Thread Jeffrey Sambells
Hi All, I'm just playing with Zend_Layout and have a quick question. What I'd like to do is have a three part view. I'd like my designer to design a wrapper "template" that consists of the markup surrounding the output of action views. This is exactly what Zend_Layout does so perfect! but

Re: [fw-general] Zend_Filter_Input 'presence'=>'required'

2008-03-06 Thread brian3f
I'm still having trouble with this. I can set error messages for individual validators that I use, like the documentation describes: array( 'digits', 'messages' => 'A month must consist only of digits' ) ); However, I'm unable to do this for the metacommands 'precence'.

Re: [fw-general] Zend_Filter_Input 'presence'=>'required'

2008-03-06 Thread SiCo007
Brian you need to take a look at the message system that accompanies the filter_input http://framework.zend.com/manual/en/zend.filter.input.html#zend.filter.input.metacommands.messages Then it's just a case of specifying the correct message for the correct action. Sometimes you will need to look