Actually you missed to set a destination directory.
Without a given directory, all files are uploaded to the default temp path
of PHP.
When receive does not return false, then the upload has succeeded and the
file is on your server.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
Hi all,
I have to design a form in Zend. The form layout should be similar to this
Login Details
username
password
confirm password
country state < STATE COMBO BOX>
ciy
So as you can see, first 3 elements are 'one element per row', next 2
elements are '2 elements per row' and then again 'on
I have been really struggling with this one. i have read and searched but
still am unable to get it to work correctly.
Im able to get the name of the image into the db..but I havent been
successfull at getting the image itself to upload to my usr/logos dir..
Please help..
This is my controller
Ben,
You're the man! The LIFO suggestion did the trick. The I wasn't ware of the
LIFO evaluation. I had the default routes removed already by the way. Thanks a
lot! Very sleek Route object.
Cheers.
> Date: Fri, 13 Mar 2009 01:21:44 +0100
> From: m...@dasprids.de
> To: fw-general@lists.zend.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ah yeah, you should add them in the reverse direction. They are always
evaluated LIFO. Also, you should remove the default routes.
Regards,
Ben
...
: ___ _ ___ ___ ___ _ ___:
: | \ /_\ / __| _ \ _ (_) \ :
Ben,
You are absolutely right about SEO and administration of course. But it was
just to try a prove of concept. Cause I can see myself using this in the
current project or some project in the near future. Thing is... I can't get it
to work. I must be doing somethin wrong. I have my controller
-- Bernd Matzner wrote
(on Thursday, 12 March 2009, 03:13 PM -0700):
>
> Hello,
>
> I'm trying desperately to set a value for a button to generate the following
> HTML:
>
> My Label
>
> so that the value is submitted rather than the label.
>
> Using $element->setValue('myValue'); however has
Hi Ian,
thanks for the speedy response.
In fact, it does matter to me - I was trying to figure a way to add multiple
submit buttons to do different things in one form. Obviously the only non-JS
way to work with IE6 is to use two forms. What a mess.
Thanks for that helpful blog post.
Bernd
Ia
Perhaps this doesn't matter to you, but you should be aware that IE
screws up elements in a big, big way, including submitting the
label as the value of the element[1]. My guess would be that this is why
Zend is setting your value and your label to the same thing - if you're
counting on regula
Hello,
I'm trying desperately to set a value for a button to generate the following
HTML:
My Label
so that the value is submitted rather than the label.
Using $element->setValue('myValue'); however has no effect.
Any hints on how to achieve that?
Thanks,
Bernd
--
View this message in conte
You will find some usefull answer here:
http://www.nabble.com/How-to-set-up-dependant-dropdowns-in-form-td20907379.html
Themselves wrote:
>
> Phew. Big title.
>
> I'm currently building a large scale application in Zend + Dojo, and with
> it
> being so new, I'm assuming I'm one of the first t
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I see, you got so far yet. Well then, what's the actual problem?
...
: ___ _ ___ ___ ___ _ ___:
: | \ /_\ / __| _ \ _ (_) \ :
: | |) / _ \\__ \ _/ / | |) | :
: |___/_/:\_\___/_| |_|_\_|___/ :
:..
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Pretty simple, you would make your route look like this:
:@controller/:@action or :@module/:@controller/:@action
But really copying the module-route by this is not possible. I suggest
you to create one route per action as usual. And personally, I wou
Read A.J. comment, to which I replied.
There is nothing more to say as it's correct.
And read the manual... timezone handling is described.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
- Original Message -
From: "Alex"
To:
Sent: Thursday, M
Hi Thomas,
>
> Right, I understand UTC dates are UTC.
>
> My question is how to convert to the user's timezone application wide. How
> does Zend Date know the date I'm giving it for creation is UTC and that the
> date I want output is in the user's timezone?
>
> - Alex
>
>
>
> On Thu, Mar 12, 2009
You can't display UTC dates with local time.
UTC is per definition without any timezone.
Local dates/times are per definition with a timezone.
This is why the time does also change when you set another timezone.
f.e. 10:00 UTC == 12:00 GMT+2
Greetings
Thomas Weidner, I18N Team Leader, Zend Fram
First, you'll want to make sure MySQL and your applications are using the
same timezone. MySQL doesn't store the timezone, so it doesn't care in
regards to dates being passed in, but you'll run into consitency problems if
you use MySQL date functions in combination.
The documentation is unclear o
-- J DeBord wrote
(on Thursday, 12 March 2009, 04:58 PM +0100):
> When using Zend_Form, is there a way to get rid of the default decorators all
> together?
Three ways:
* Call clearDecorators(), and then define your decorators
* Call setDecorators(), which implicitly calls clearDecorators()
I would like to add a navigation view helper to my layout.phtml
Something along the lines of:
layout()->nav; ?> which would work like layout()->content ?>, except common navigation would be displayed.
I would then make two files, defaultNav.phtml and adminNav.phtml. I would
like to show the defa
Anyone?
- Alex
On Wed, Mar 11, 2009 at 12:50 PM, Alex wrote:
> Hello,
>
> What's the recommended strategy for handling timezones with Zend_Date? I
> use the datetime in mysql to store dates.
>
> What's the right combination of date_default_timezone_set and Zend_date so
> that everything is alw
When using Zend_Form, is there a way to get rid of the default decorators
all together?
I read this article, but still do not understand how to change the html tags
used to generate the form.
http://devzone.zend.com/article/3450-Decorators-with-Zend_Form
I would like the following HTML format:
-- Marko Korhonen wrote
(on Wednesday, 11 March 2009, 10:27 PM -0700):
> Earlier I converted all my "Base" controllers to action helpers (thanks,
> Matthew), except for one.
> I still have CrudController which basicly has create/read/update/delete
> actions and lot's of event methods.
>
> I also
Ugh, maybe I should have given an example of what I have done so far, no? ;-)
Here goes:
// bootstrap
// ROUTES SETUP - Setup routes
$router = $frontController->getRouter();
$router->removeDefaultRoutes();
$defaultRoute = new nl_indetail_Controller_Router_Route_Translatable(
':@module/:@contro
Hi guys,
i enable zend_layout in my application, there are four template files,
layout.phtml, header.phtml, index.phtml, footer.phtml ,to render.
layout.phtml is the layout template,and header.phtml and footer.phtml
rendered in layout.phtml,the code as following:
layout.phtml
-
Ben,
I am implementing your Zend_Controller_Router_Route_Translatable right now. It
works very nice. One thing I have a hard time figuring out though, is the
following:
How would I be able to mimic the default ZF route including optional modules,
for instance such that:
/nieuwsbrief/aanmeld
25 matches
Mail list logo