Re: [fw-general] Zend_Form Logo upload

2009-03-12 Thread Thomas Weidner
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

[fw-general] Zend Form Element Layout

2009-03-12 Thread GirishK
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

[fw-general] Zend_Form Logo upload

2009-03-12 Thread Bob O
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

RE: [fw-general] Zend_Controller_Router_Route & Zend_Translate?

2009-03-12 Thread fire-eyed-boy
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.

Re: [fw-general] Zend_Controller_Router_Route & Zend_Translate?

2009-03-12 Thread Ben Scholzen 'DASPRiD'
-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 ... : ___ _ ___ ___ ___ _ ___: : | \ /_\ / __| _ \ _ (_) \ :

RE: [fw-general] Zend_Controller_Router_Route & Zend_Translate?

2009-03-12 Thread fire-eyed-boy
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

Re: [fw-general] setValue for zend_form button

2009-03-12 Thread Matthew Weier O'Phinney
-- 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

Re: [fw-general] setValue for zend_form button

2009-03-12 Thread Bernd Matzner
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

Re: [fw-general] setValue for zend_form button

2009-03-12 Thread Ian Young
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

[fw-general] setValue for zend_form button

2009-03-12 Thread Bernd Matzner
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

Re: [fw-general] AJAX enabling of Zend + Dojo forms, and populating Select dependencies in an MVC environment, e.g. Country / State selects

2009-03-12 Thread alexroma
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

Re: [fw-general] Zend_Controller_Router_Route & Zend_Translate?

2009-03-12 Thread Ben Scholzen 'DASPRiD'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I see, you got so far yet. Well then, what's the actual problem? ... : ___ _ ___ ___ ___ _ ___: : | \ /_\ / __| _ \ _ (_) \ : : | |) / _ \\__ \ _/ / | |) | : : |___/_/:\_\___/_| |_|_\_|___/ : :..

Re: [fw-general] Zend_Controller_Router_Route & Zend_Translate?

2009-03-12 Thread Ben Scholzen 'DASPRiD'
-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

Re: [fw-general] Re: Handling timezones?

2009-03-12 Thread Thomas Weidner
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

Re: [fw-general] Re: Handling timezones?

2009-03-12 Thread Alex
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

Re: [fw-general] Re: Handling timezones?

2009-03-12 Thread Thomas Weidner
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

Re: [fw-general] Re: Handling timezones?

2009-03-12 Thread A.J. Brown
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

Re: [fw-general] HTML Tags and Zend Form

2009-03-12 Thread Matthew Weier O'Phinney
-- 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()

[fw-general] Navigation view helper

2009-03-12 Thread J DeBord
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

[fw-general] Re: Handling timezones?

2009-03-12 Thread Alex
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

[fw-general] HTML Tags and Zend Form

2009-03-12 Thread J DeBord
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:

Re: [fw-general] CrudController vs. Action helpers

2009-03-12 Thread Matthew Weier O'Phinney
-- 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

RE: [fw-general] Zend_Controller_Router_Route & Zend_Translate?

2009-03-12 Thread fire-eyed-boy
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

[fw-general] headScript helper problem

2009-03-12 Thread Jacky Chen
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 -

RE: [fw-general] Zend_Controller_Router_Route & Zend_Translate?

2009-03-12 Thread fire-eyed-boy
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