Re: [fw-general] Zend_Test skipping over redirects

2009-04-01 Thread zpc
Matthew Weier O'Phinney-3 wrote: > > > Whenever you _forward() or redirect, you should return immediately. As > an example: > > if (!$form->isValid($request->getPost())) { > return $this->_forward('details'); > } > > If you don't, the action continues to process. This would de

Re: [fw-general] Zend_Form Decorators | Multiple Buttons On One Line

2009-04-01 Thread Matthew Weier O'Phinney
-- Shaun Farrell wrote (on Wednesday, 01 April 2009, 07:20 PM -0400): > I am just starting to figure out Zend_Form_Decorators and have a question on > the best way to have Multiple buttons on one line all surround in one div> > > Here is what I have and it works but I am wondering is this the be

Re: [fw-general] Re: Disable id attribute for form elements?

2009-04-01 Thread Matthew Weier O'Phinney
-- Fire Eye'd Boy wrote (on Wednesday, 01 April 2009, 10:49 PM +0200): > Matthew Weier O'Phinney schreef: > > -- fire-eyed-boy wrote > > (on Wednesday, 01 April 2009, 10:54 AM -0700): > > > Eventhough I see it's use; in my current setup, setElementsBelongTo() > > > doesn't offer me the solution I

[fw-general] Re: Modular dir structure and default templates

2009-04-01 Thread Steven Szymczak
So... can anybody help me with this? I thought I had solved it by adding "$view->setScriptPath('../application/modules/default/views/scripts/');" to an action helper that overrides preDispatch(). Oddly, it works on my development environment (Apple OS X 10.5 laptop) but not on the production

[fw-general] Zend_Form Decorators | Multiple Buttons On One Line

2009-04-01 Thread Shaun Farrell
I am just starting to figure out Zend_Form_Decorators and have a question on the best way to have Multiple buttons on one line all surround in one Here is what I have and it works but I am wondering is this the best way to do this? I have three decorators // adds the 'div', 'class' => 'element

[fw-general] Re: Zend_Form + Flash Messenger

2009-04-01 Thread Fire Eye'd Boy
Colin Guthrie schreef: 'Twas brillig, and Fire Eye'd Boy at 01/04/09 21:36 did gyre and gimble: IMHO the back button won't 'break': It simply enables the user to go back to a previous invalidaded form state. Only if the user reposts the data, and depending on the browser in question, this may

[fw-general] Re: Zend_Form + Flash Messenger

2009-04-01 Thread Colin Guthrie
'Twas brillig, and Fire Eye'd Boy at 01/04/09 21:36 did gyre and gimble: IMHO the back button won't 'break': It simply enables the user to go back to a previous invalidaded form state. Only if the user reposts the data, and depending on the browser in question, this may or may not be particula

[fw-general] Re: Disable id attribute for form elements?

2009-04-01 Thread Fire Eye'd Boy
Matthew Weier O'Phinney schreef: -- fire-eyed-boy wrote (on Wednesday, 01 April 2009, 10:54 AM -0700): Eventhough I see it's use; in my current setup, setElementsBelongTo() doesn't offer me the solution I was hoping for. But maybe I am overlooking something. Yep. You're using the ViewScript d

[fw-general] Re: Zend_Form + Flash Messenger

2009-04-01 Thread Colin Guthrie
Hi Kevin, 'Twas brillig, and Kevin McArthur at 01/04/09 20:20 did gyre and gimble: Correction from last post http://framework.zend.com/wiki/pages/viewpage.action?pageId=42130 Thanks for this. It looks like the right approach, but I'll hack something up shorter term for my own use. The

[fw-general] Re: Zend_Form + Flash Messenger

2009-04-01 Thread Fire Eye'd Boy
Colin Guthrie schreef: 'Twas brillig, and Fire Eye'd Boy at 01/04/09 20:10 did gyre and gimble: I usually only redirect if a post has been successful, otherwise I redisplay the form. Thanks for the suggestion, but I decided on a policy a while back and I'm going to try very hard to stick to i

Re: [fw-general] Invalid controller specified (favicon.ico)?

2009-04-01 Thread Eric Coleman
It's because all modern browsers look for /favicon.ico on your site... To stop the message, put a favicon.ico file into your /public directory. You may also need to adjust your rewrite rule depending on which one your using... On Wed, Apr 1, 2009 at 4:09 PM, Steven Szymczak wrote: > I'm actuall

[fw-general] Invalid controller specified (favicon.ico)?

2009-04-01 Thread Steven Szymczak
I'm actually starting to wonder if my messages are making it to the list anymore, but here goes. My site currently has 2 modules: default and photo. Everything is working fine with the default module; however, whenever I try and get to the photo module (site.com/photo) the following error sho

[fw-general] Re: Using this Mailing List as Newsgroup

2009-04-01 Thread Sebastian Hopfe
"Colin Guthrie" schrieb im Newsbeitrag news:gr0ae9$ic...@ger.gmane.org... 'Twas brillig, and Sebastian H. at 01/04/09 15:51 did gyre and gimble: is there a way to use this mailing list with a newsgroup reader? See http://gmane.org/ The group is: gmane.comp.php.zend.framework.general and th

[fw-general] Re: Zend_Form + Flash Messenger

2009-04-01 Thread Colin Guthrie
'Twas brillig, and Fire Eye'd Boy at 01/04/09 20:10 did gyre and gimble: I usually only redirect if a post has been successful, otherwise I redisplay the form. Thanks for the suggestion, but I decided on a policy a while back and I'm going to try very hard to stick to it. The reason I'm not

Re: [fw-general] Zend_Form + Flash Messenger

2009-04-01 Thread A.J. Brown
Like Fire Eye'd Boy said, It'd be easier to only redirect on sucess. If the form fails to validate, break execution and redisplay the form. $form = new Zend_Form() if( $form->isValid( $_POST ) ) { // do stuff // redirect } $this->view->form = $form ?> On Wed, Apr 1, 2009 at 1:20 PM, K

Re: [fw-general] Zend_Form + Flash Messenger

2009-04-01 Thread Kevin McArthur
Correction from last post http://framework.zend.com/wiki/pages/viewpage.action?pageId=42130 +0 on the end K Kevin McArthur wrote: Colin, The good answer is that there is no good answer. There's a multi-page form component in the proposal process, but as for PRG (post-redirect-get) form

Re: [fw-general] Zend_Form + Flash Messenger

2009-04-01 Thread Kevin McArthur
Colin, The good answer is that there is no good answer. There's a multi-page form component in the proposal process, but as for PRG (post-redirect-get) forms in Zend Framework right now? You're stuck with writing your own controllers, views and using Zend_Filter_Input and similar validations

[fw-general] Re: Zend_Form + Flash Messenger

2009-04-01 Thread Fire Eye'd Boy
Colin Guthrie schreef: Hi, Apologies if this has been covered before, but I did search quite a bit and asked on IRC before posting! As per general recommendations, in my code, I never produce any output on a posted page, but instead issue a redirect header. This prevents the back button bre

[fw-general] Zend_Form + Flash Messenger

2009-04-01 Thread Colin Guthrie
Hi, Apologies if this has been covered before, but I did search quite a bit and asked on IRC before posting! As per general recommendations, in my code, I never produce any output on a posted page, but instead issue a redirect header. This prevents the back button breaking and people acciden

Re: [fw-general] Disable id attribute for form elements?

2009-04-01 Thread Matthew Weier O'Phinney
-- fire-eyed-boy wrote (on Wednesday, 01 April 2009, 10:54 AM -0700): > Eventhough I see it's use; in my current setup, setElementsBelongTo() > doesn't offer me the solution I was hoping for. But maybe I am overlooking > something. Yep. You're using the ViewScript decorator to render your element

[fw-general] Re: Using this Mailing List as Newsgroup

2009-04-01 Thread Fire Eye'd Boy
Colin Guthrie schreef: 'Twas brillig, and Sebastian H. at 01/04/09 15:51 did gyre and gimble: is there a way to use this mailing list with a newsgroup reader? Yup. That's what I do. See http://gmane.org/ The group is: gmane.comp.php.zend.framework.general and there is even. gmane.comp.php.z

[fw-general] Re: Using this Mailing List as Newsgroup

2009-04-01 Thread Colin Guthrie
'Twas brillig, and Sebastian H. at 01/04/09 15:51 did gyre and gimble: is there a way to use this mailing list with a newsgroup reader? Yup. That's what I do. See http://gmane.org/ The group is: gmane.comp.php.zend.framework.general and there is even. gmane.comp.php.zend.framework.announce

Re: [fw-general] Disable id attribute for form elements?

2009-04-01 Thread fire-eyed-boy
Matthew, Eventhough I see it's use; in my current setup, setElementsBelongTo() doesn't offer me the solution I was hoping for. But maybe I am overlooking something. In short (for examplary purposes) this roughly is what I have: = ## a few generic forms like this one: clas

Re: [fw-general] Using this Mailing List as Newsgroup

2009-04-01 Thread Matthew Weier O'Phinney
-- Sebastian H. wrote (on Wednesday, 01 April 2009, 06:12 PM +0200): > Von: Ionut G. Stan [mailto:ionut.g.s...@gmail.com] > Betreff: Re: [fw-general] Using this Mailing List as Newsgroup > > > > Thunderbird 3 with threaded view of messages is perfect for me. > > This sounds good - thank you for

RE: [fw-general] Using this Mailing List as Newsgroup

2009-04-01 Thread Terre Porter
I think nabble has an rss feed also. You might get it to view the way you want using a rss viewer. Terre -Original Message- From: Sebastian H. [mailto:s.ho...@gmx.net] Sent: Wednesday, April 01, 2009 12:10 PM To: fw-general@lists.zend.com Subject: AW: [fw-general] Using this Mailing

AW: [fw-general] Using this Mailing List as Newsgroup

2009-04-01 Thread Sebastian H.
Von: Ionut G. Stan [mailto:ionut.g.s...@gmail.com] Betreff: Re: [fw-general] Using this Mailing List as Newsgroup > > Thunderbird 3 with threaded view of messages is perfect for me. This sounds good - thank you for this comment - i will take a look. Sebastian

AW: [fw-general] Using this Mailing List as Newsgroup

2009-04-01 Thread Sebastian H.
Von: David de Boer [mailto:boerdeda...@gmail.com] Betreff: Re: [fw-general] Using this Mailing List as Newsgroup > > Sebastian, I'm not sure how to use it with a newsgroup reader, but did you > already know you can view the mails from the list in threaded form at: > http://www.nabble.com/Zend-Fra

Re: [fw-general] Using this Mailing List as Newsgroup

2009-04-01 Thread Ionut G. Stan
Thunderbird 3 with threaded view of messages is perfect for me. On 4/1/2009 17:51, Sebastian H. wrote: Hi everyone, is there a way to use this mailing list with a newsgroup reader? I would be very happy if this is possible, because actual the mailing list is really confusing. Thanks in adv

Re: [fw-general] Using this Mailing List as Newsgroup

2009-04-01 Thread David de Boer
Sebastian, I'm not sure if you use it with a newsgroup reader, but did you already know you can view the mails in threaded form at: http://www.nabble.com/Zend-Framework-Community-f16154.html? Sebastian Hopfe wrote: > > Hi everyone, > > > > is there a way to use this mailing list with a new

[fw-general] Using this Mailing List as Newsgroup

2009-04-01 Thread Sebastian H.
Hi everyone, is there a way to use this mailing list with a newsgroup reader? I would be very happy if this is possible, because actual the mailing list is really confusing. Thanks in advance. Best regards Sebastian

Re: [fw-general] Disable id attribute for form elements?

2009-04-01 Thread Matthew Weier O'Phinney
-- fire-eyed-...@hotmail.com wrote (on Wednesday, 01 April 2009, 12:59 PM +): > I wasn't aware of the setElementsBelongTo method. I will look into that. It was created in large part for this very purpose. A common pattern in PHP is to namespace your forms using array notation, and this was bu

Re: [fw-general] Admin module and other modules

2009-04-01 Thread Andrei Iarus
Hello everyone,   The best idea for the moment seems to be this: 1. Create an admin/ folder in every module, with a typical module structure (i.e every module/ folder has a cotnrollers/ and views/ folder). 2. Create public/admin/index.php in which a variable/constant is set. 3. In bootstrap, if th

RE: [fw-general] Zend_OpenID only 2.0 Draft 11?!

2009-04-01 Thread dennis.winter
We just have to check, if we sign the Corporate CLA or if just me signs it! Help is on the way! :) wllm wrote: > > http://framework.zend.com/wiki/display/ZFPROP/Zend_OpenId > > > > And yes, if there's one thing we need, it's help. J You can find > instructions on how to become a contributo

Re: [fw-general] Zend_Application FrontController bootstrap problem

2009-04-01 Thread keith Pope
This is a bug in Zend_Db_Table, it implicitly uses Zend_Loader::loadClass(); (not autoloader aware) to load dependent rows/tables etc, there are issue in the tracker for this. You will need to use a require to get this working. 2009/4/1 Marko Korhonen : > > Thanks, > > Same thing was apparently p

RE: [fw-general] Disable id attribute for form elements?

2009-04-01 Thread fire-eyed-boy
Come to think of it, this would work too: document.forms[0][ 'the-Element' ].name So, not that big a deal I guess. From: fire-eyed-...@hotmail.com To: fw-general@lists.zend.com Date: Wed, 1 Apr 2009 12:59:38 + Subject: RE: [fw-general] Disable id attribute for form elements? Matthe

RE: [fw-general] Disable id attribute for form elements?

2009-04-01 Thread fire-eyed-boy
Matthew, I wasn't aware of the setElementsBelongTo method. I will look into that. Are you sure that it will prefix elements with "-" is stead of "_" (dash instead of underscore?). If so, I believe this is not Javascript compliant (or at least not cross platform/browser). To my knowledge some

Re: [fw-general] Zend_Application FrontController bootstrap problem

2009-04-01 Thread Marko Korhonen
Thanks, Same thing was apparently possible to do using _initFrontController() method. I finally got A LOT progress... But as always, there's the next problem. My directory structure for my ModuleX is following: application modules modulex controllers models DbTable

[fw-general] Accessing form object from element object?

2009-04-01 Thread lightflowmark
Hi, I'm adding a decorator to a form element that has been attached to a form with $form->addElement(). It's actually a decorator to handle some xhr validation, and as such, has dependencies on another decorator attached to the form (a toaster widget). I can add the form decorator manually in th

Re: [fw-general] Zend_Application FrontController bootstrap problem

2009-04-01 Thread keith Pope
You need to register the frontcontroller bootstrap class resource, see below: There is a post here about it: http://akrabat.com/ I am using this .ini file: [bootstrap] autoloadernamespaces.0 = "Zend_" autoloadernamespaces.1 = "SF_" phpsettings.display_errors = 0 phpsettings.error_reporting = 81

[fw-general] Zend_Application FrontController bootstrap problem

2009-04-01 Thread Marko Korhonen
Hi, I have following error coming from $this->bootstrap('FrontController'); calls in Bootstrap.php. Fatal error: Uncaught exception 'Zend_Application_Bootstrap_Exception' with message 'Resource matching "frontcontroller" not found' in /home/_library_unstable/Zend/Application/Bootstrap/Base.php:5

Re: [fw-general] Disable id attribute for form elements?

2009-04-01 Thread Matthew Weier O'Phinney
-- fire-eyed-...@hotmail.com wrote (on Wednesday, 01 April 2009, 10:14 AM +): > Thanks for the response again. I just read in an issue that this is made > intentional behaviour: > http://framework.zend.com/issues/browse/ZF-277 > > But I strongly disagree with this. Therefor I created a new is

Re: [fw-general] Zend_Test skipping over redirects

2009-04-01 Thread Matthew Weier O'Phinney
-- zpc wrote (on Wednesday, 01 April 2009, 12:21 AM -0700): > I'm having some problems with redirects while unit testing a controller. > I'm trying to test a simple login form, and while the code block containing > the redirect line is being executed, the program continues onward and ends > up ru

Re: [fw-general] Admin module and other modules

2009-04-01 Thread Vadim Gabriel
Hey, I am always open for new ideas, this one sounds like something similar i have done just without the several bootstrap files. I use a single bootstrap file for the entire application, I am not sure if more then one is a good practice but worth a shoot. That said, I think ZF introduces some new

Re: [fw-general] Admin module and other modules

2009-04-01 Thread Andrei Iarus
Thank you for your answer, Vadim.   I thought to this solution: create in the public/ folder an admin/ folder, with an index.php in it. This file would include an bootstrap_admin.php, instead of the bootstrap.php file. Of course, all the admin specific part would be here loaded (in bootstrap_ad

RE: [fw-general] Disable id attribute for form elements?

2009-04-01 Thread fire-eyed-boy
Hey Vince, Thanks for the response again. I just read in an issue that this is made intentional behaviour: http://framework.zend.com/issues/browse/ZF-277 But I strongly disagree with this. Therefor I created a new issue: http://framework.zend.com/issues/browse/ZF-6174 Cheers y'all. PS.: Vinc

Re: [fw-general] Zend_Test skipping over redirects

2009-04-01 Thread till
On Wed, Apr 1, 2009 at 9:21 AM, zpc wrote: > > Dear everyone, > > I'm having some problems with redirects while unit testing a controller. > I'm trying to test a simple login form, and while the code block containing > the redirect line is being executed, the program continues onward and ends > up

Re: [fw-general] Disable id attribute for form elements?

2009-04-01 Thread Vadim Gabriel
Hey, Yes, sorry i meant you CAN set null and it should unset the property. I think it's either a bug or something is wrong or is working not as the way it should. Not sure but you could raise an issue. Vince. On Wed, Apr 1, 2009 at 11:36 AM, wrote: > Hi, > > Looking at it I can see I *can* s

RE: [fw-general] Disable id attribute for form elements?

2009-04-01 Thread fire-eyed-boy
What I meant to say with "I *can* set null as the value" of course is that I can unset the attribute as per: if (null === $value) { unset($this->$name); ...and that I suspect "id" is replaced with "name" if id is unset (which is basically is the same thing as null IMO) F

RE: [fw-general] Disable id attribute for form elements?

2009-04-01 Thread fire-eyed-boy
Hi, Looking at it I can see I *can* set null as the value, as per: if (null === $value) { unset($this->$name); But I presume some decorator or other render method replaces attribute "id" with the "name" attribute value if "id" equals null I haven't been able to figure out

[fw-general] Zend_Http_Client kill apache

2009-04-01 Thread Kononov Ruslan
I wrote a page for translation via Google Translate. When the $text reaches a certain length, the Apache say: (OS 10054)An existing connection was forcibly closed by the remote host. : core_output_filter: writing data to the network Apache 2.2.11 PHP 5.2.9, 5.3rc1 Page charset : UTF-8 set_incl

Re: [fw-general] Disable id attribute for form elements?

2009-04-01 Thread Vadim Gabriel
Hi, looking at Form/Element.php at the setAttrib function you can understand how the function works. you can tell that you can't just set null as the value. /** * Set element attribute * * @param string $name * @param mixed $value * @return Zend_Form_Element *

[fw-general] Zend_Test skipping over redirects

2009-04-01 Thread zpc
Dear everyone, I'm having some problems with redirects while unit testing a controller. I'm trying to test a simple login form, and while the code block containing the redirect line is being executed, the program continues onward and ends up running the fallback redirect at the end of the action

[fw-general] Zend_Auth hook for expiration?

2009-04-01 Thread fire-eyed-boy
Hi all, Does Zend_Auth offer some kind of hook that allows me to unset additional session vars if the Zend_Auth session expires? Typically, I'ld like to let the global session live longer than Zend_Auth's session, thus keeping some insensitive session data but dispose sensitive data that requi

Re: [fw-general] Zend Progress bar and jsPull adapter.

2009-04-01 Thread Lucas Corbeaux
JsPush "send" data to browser by calling Javascript functions. Works great for really long scripts with many huge actions. JsPull only send a JSON encoded string, wich must be evaluated by Javascript. Once evaluated, you got a Javascript object with usefull property : percent, elapsed time etc

[fw-general] Disable id attribute for form elements?

2009-04-01 Thread fire-eyed-boy
Hi all, Is there a way to disable the rendering of id attributes for form elements? I'm building a CMS which displays a tree of pages that can be edited. The tree consists of multiple forms for each page. I'ld rather not create unique for all of them. I tried: Zend_Form_Element::setAttrib( 'i