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')
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
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
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
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
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,
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
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
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:* _
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
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
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
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
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
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'.
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
16 matches
Mail list logo