Re: [fw-general] PHP bug with chaining function calls that generate exceptions on x86_64
Colin Guthrie wrote: Hi, Just wanted to share this bug with you guys as I discovered it while using Zend Framework code. http://bugs.php.net/bug.php?id=46568 It only affects x86_64, but it's fairly easy to trigger this in Zend Framework as it makes quite extensive use of exceptions, often in a chained function call scenario. HTH's some people from scratching the old noodle too much. Col I've just update by comment the bug on php. Seems to affect you I've not found a new opensuse 11.1 which should have also a 4.3.2 gcc version. On other system it isn't reproductible. -- Bruno Friedmann
Re: [fw-general] ZF 1.7 and getParam charset problem
-- Kononov Ruslan [EMAIL PROTECTED] wrote (on Saturday, 15 November 2008, 12:34 PM -0800): Matthew Weier O'Phinney-3 wrote: We do no filtering on the parameters received by default. Check the encoding your server is expecting and the encoding the client is sending. I spent a lot of time and found the problem. Zend_Controller_Router_Route_Module-match() used urldecode() to decode any %## and convert to UTF-8!!! $_GET parameters decoded in the light of encryption on the server, so with no problems. Need replace urldecode() on html_entity_decode() with needed charset. Can you create an issue in the tracker for this? I had another report while at php|works this week of a location where htmlentities() is called without the encoding argument, and these all need to be fixed. -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend Framework | http://framework.zend.com/
[fw-general] How do I ...
Hi, Is there a way of detecting/knowing using an Action Helper what controller+action the user click before getting to another page. In order words the controller+action that brought the user to the current page? Thanks will be looking forward to any response concerning this :) - dee -- View this message in context: http://www.nabble.com/How-do-I-...-tp20529701p20529701.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] How do I ...
Thanks Tobias. I currently have an implementation of the FlashMessenger for sending error messages to view. Will have a look at it shortly on how i can implement your suggestion. Thanks once again. Will let you know how it turns out :) Tobias Gies wrote: hey dee, you could use the flashMessenger action helper for that, or your can create your own action helper/plugin that saves this data to a session namespace w/ expirationHops set to 1. Best regards, Tobias 2008/11/16 dele454 [EMAIL PROTECTED] Hi, Is there a way of detecting/knowing using an Action Helper what controller+action the user click before getting to another page. In order words the controller+action that brought the user to the current page? Thanks will be looking forward to any response concerning this :) - dee -- View this message in context: http://www.nabble.com/How-do-I-...-tp20529701p20529701.html Sent from the Zend Framework mailing list archive at Nabble.com. - dee -- View this message in context: http://www.nabble.com/How-do-I-...-tp20529701p20529880.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] ActionStack and _forward()
You could store something in Zend_Registry, or Zend_Cache (and then wrap the init logic in an if statement)? T On Sun, Nov 16, 2008 at 09:43, drj201 [EMAIL PROTECTED] wrote: Goran Juric wrote: drj201 wrote: Hi all, Ive been following the method outlined here to add Controller specific navigation menus to my layout view: http://teethgrinder.co.uk/perm.php?a=Zend-Framework-Menus-Navigation Firstly, what is your view on this approach? Adding an actionStack call to every controller seems long winded especially if the majority use a standard menu i.e. defaultmenuAction in the NavController. Also using this method I am encountering a problem with the use of _forward() in my actions. When calling a _forward from one action to another within the same controller the menu action is added to the actionStack twice (once for initial init() and then for each forward). How would you propose I stop this easily? Is there a way of detecting if the actionStack currently has the call to the action in the NavController and thus doesnt add it again? Back to my original question... is there a better way entirely? Thanks for your help. David Why don't you use a view helper for this task? You can define and pass controller specific actions in the init() method of the controller and display them in a view. Regards, Goran Juric http://gogs.info/ Thanks for your reply. Im not sure I follow your suggestion? What are you proposing with the use of a view helper? Im trying to follow the example from the Zend_Layout documentation that states: As an example, let's say your code first hits FooController::indexAction(), which renders some content to the default response segment, and then forwards to NavController::menuAction(), which renders content to the 'nav' response segment. Finally, you forward to CommentController::fetchAction() and fetch some comments, but render those to the default response segment as well (which appends content to that segment). Your view script could then render each separately: body !-- renders /nav/menu -- div id=nav?= $this-layout()-nav ?/div !-- renders /foo/index + /comment/fetch -- div id=content?= $this-layout()-content ?/div /body This feature is particularly useful when used in conjunction with the ActionStack action helper and plugin, which you can use to setup a stack of actions through which to loop, and thus create widgetized pages. I have this working based on an example here: http://teethgrinder.co.uk/perm.php?a=Zend-Framework-Menus-Navigation The problem is that when using a _forward() to another action within the same controller the init() gets called every forward thus resulting in the $this-_helper-actionStack('menu', 'navigation') getting called every time. This means the navigation menuAction gets rendered a number of times when obviously it only wants to render once... So ultimately how can I detect if the current controller init() has been called as the result of a _forward() and thus then not add the menuAction to the stack...? Also if there is a better simplified way of doing this i'd be enlightened to know! Thanks, David -- View this message in context: http://www.nabble.com/ActionStack-and-_forward%28%29-tp20469986p20520241.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Dijit Editor
In case anyone else has this problem, since I've struggled with it for weeks now, the issue seems to be that findParentForm should return elementNode.domNode instead of just elementNode. Now if only I could get the silly colorpicker working without having to become a widget developer. Matthew Lurz wrote: I've been unable to get the Dijit.Editor element to work using trunk or the the 1.7 preview release. When using Dojo 1.2, from either the official Dojo 1.2 release or CDN, I receive this error: RichText should not be used with the TEXTAREA tag. See dijit._editor.RichText docs.. When using Dojo from trunk or the 1.7 preview release I receive the same error as well as the errors due to the following missing files. dijit/form/nls/en/Textarea.js dijit/_editor/nls/en/commands.js -- View this message in context: http://www.nabble.com/Dijit-Editor-tp20141019p20533729.html Sent from the Zend Framework mailing list archive at Nabble.com.