Hmm,
Let me play around with it and see if I can write a RegexRename filter. I
imagine it won't be too difficult :)
On Fri, Feb 6, 2009 at 12:11 AM, Eric Haskins wrote:
> AJ,
>
> $upload = new Zend_File_Transfer_Adapter_Http();
>
> $upload->addValidator('Size', false, 20, 'file1');
>
> $up
On Thu, Feb 5, 2009 at 10:08 PM, A.J. Brown wrote:
>
>
> On Wed, Feb 4, 2009 at 9:44 PM, Deepak Shrestha wrote:
>>
>> Thanks. How about assigning specific error message to each validator?
>>
>
> Use the options array (3rd parameter). The key should be 'messages' and the
> value is another array
AJ,
$upload = new Zend_File_Transfer_Adapter_Http();
$upload->addValidator('Size', false, 20, 'file1');
$upload->setDestination('/home/uglymen/public_html/tmp/');
$files = $upload->getFileInfo();
$i=0;
foreach ($files as $file => $info) {
if($u
Thanks for all the help everyone, I'm rather curious as to why this is
necessary, but I'll split that out
into its own thread.
paul
On Wed, Feb 4, 2009 at 11:54 PM, Matthew Weier O'Phinney
wrote:
> -- HenryG wrote
> (on Wednesday, 04 February 2009, 04:05 AM -0800):
> > I'm just starting out with Zend and Dojo and I have a quick question
> which I
> > hope you can answer.
> >
> > I have built a tabbed dojo interface and some o
'Twas brillig, and Marko Korhonen at 05/02/09 18:31 did gyre and gimble:
Hello,
I have a hard nut to crack.
I'll try to explain my situtation:
My Default_IndexController::indexAction is my frontpage.
I use action helper to call another controller/action:
Somemodule_ListController::latestActio
I'm sorry, I should have included in my previous post that I tried that while
playing around with it, but if I take the "^" out of the expression it
returns 'true' as soon as it hits an applicable character that matches the
expression, so if I input a string such as "Gravit8" it will return true (
If you create view helpers you can call them from anywhere in the levels
with "this->helper()". I feel that having DB queries and php logic isn't
right for a view script, but acceptable in a view helper (well, actually
not DB queries, but model instantiation inside the view helpers...)
- Ramo
Add the description decorator. Something like this... seems te be working...
$this->addElement('file', 'der', array('label' => 'Image File',
'description' => 'Your resulting image. PNG please',
'required' => true,
'validators' => array(
array('validator' => 'Count', 'options' => 1),
I do not know if it's the best way, but could you not prepare all the
arrays and variables and pass those to the first partialLoop, which
passes certain levels to the next nested one and so on?
-Bart
bytte schreef:
I use a partialLoop() to loop through query results in the view. So far so
good
-- benxmy wrote
(on Thursday, 05 February 2009, 12:20 PM -0800):
>
> So I figured it out to an extent, but I think I'm still one step off and I
> haven't been able to track down the exact syntax for using regex in this
> context. I changed the $_validators array to:
>
>
> protected $
I use a partialLoop() to loop through query results in the view. So far so
good.
But for every item returned in the loop, I need to do another database query
that returns another set of results that require a new partialLoop(). In the
end I have a partialLoop() inside a partialLoop() inside a part
So I figured it out to an extent, but I think I'm still one step off and I
haven't been able to track down the exact syntax for using regex in this
context. I changed the $_validators array to:
protected $_validators =
'lname' => array(array('Regex','/[^a-z\'-]/i'))
Hello,
I have a hard nut to crack.
I'll try to explain my situtation:
My Default_IndexController::indexAction is my frontpage.
I use action helper to call another controller/action:
Somemodule_ListController::latestAction
There I have Zend_Paginator working nicely.
This results my list to be
I've been beating around the amf bush a while, and now it's time to start
the developing. I am reaching out to the community to ask for guidance and
learnings from their experience, so if any of you have anything to share I
would love to hear it. Below are a few things I've been toying with and I a
You can either store the referrer in the session when you're displaying the
form, or add it as a hidden field.
Hidden field will yeild the best results, Incase the user has two windows
open
On Thu, Feb 5, 2009 at 8:47 AM, fluxusps wrote:
>
> Hi All,
> In my controller I have an action that will
Hi prado,
Which encoding are you using for your project ?
You may force encoding in firefox (display > encoding) to be sure of
it.
Then you can use this in your .htaccess file (replace UTF-8 by whatever
encoding you use) :
AddDefaultCharset UTF-8
Baptiste.
prado a écrit :
My message bel
Hi All,
In my controller I have an action that will check if $_POST has been
submitted. If so, proceed with the db input/update. In not, display the
form.
I can arrive at this insert/update page from a few different places.
Using the $_SERVER['HTTP_REFERER'] won't work because upon submission
Hey Thomas & Eric,
I've actually come accross this same issue last night, except I was trying
to use the PregReplace filter. My goal was to strip all characters from the
name, except those that I allow (which is alphanumerics plus underscore and
period).
Here's my code. Note line 41 (and yes, I
Are you sure that setDescription on a file-element doesn't exists? I did a
quick test and it seems to work (with Description set in the decorator).
I'll do a good test tonight...
thomasW wrote:
>
> Well, he could try to add the Description decorator and see if this works.
> Still, the thing is
I just realized I replied directly, so I figured I'd push the result back to
the list for archiving.
-- Forwarded message --
From: Paweł Chuchmała
Date: 2009/2/5
Subject: Re: [fw-general] Zend_Form_Element_Checkbox and Firefox.
To: "A.J. Brown"
Hm, html yes, but I jus saw in fi
Well, he could try to add the Description decorator and see if this works.
Still, the thing is, that elements like file, image or submit do not provide
description out of the box.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
- Original Message ---
A file element does not have a value in HTML, so there is no content which
can be displayed.
You have to add a text element of something related to have a description
displayed.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
- Original Message -
Hi.
As everbody know checkbox element has hidden element for submit value
when uchecked.
In current version Firefox (3.0.6) it dosen't work. If checkbox is
checked, in _POST i have '0'.
It's Firefox bug?
When I set form method to 'GET' I see, that hidden field is last
parameter in url.
What shou
Hi,
im trying to get the open-Form Tag with the Zend_Dojo_View_Helper_Form,
but it is always returning the closing form tag too.
I guess the lines 73 - 75 should be deleted:
if (false === $content) {
$content = '';
}
so that the $content var will be directly given to the
Are you using the default decorators? When I use my own decorators it's
showing the description. When I use de default it never shows the
description. So I don't know 'description' is default 'on'... But strange
thing in your case is that the description is shown with regular
text-fields.
Paul R
26 matches
Mail list logo