Re: [fw-general] handle any exception with errorController

2008-11-04 Thread Waigani
throw exceptions is not on and I've also tested the dispatchLoopStartup in the plugins broker. It is not catching the exception. Waigani wrote: The code throw new Zend_Exception('test'); in the predispatch hook of a plugin returns Fatal error: Uncaught exception 'Zend_Exception'

Re: [fw-general] JSON format for ComboBox / FilteringSelect

2008-11-04 Thread Cameron
Thanks for that, I've managed to get it working now with the rewritten autoCompleteDojo at http://www.makina-corpus.org/2008/10/26/autocomplete-ajax-search-with-dojo-and-zend-framework/, and I've got dropdown dependencies working with a bit of javascript, but now I have one last little problem!

Re: [fw-general] Zend_Pdf and special character problems

2008-11-04 Thread Martijn Korse
Have a look at the paragraph 35.5.4: Text Drawing http://framework.zend.com/manual/en/zend.pdf.drawing.html It takes an optional argument for the character encoding which defaults to the current locale. I think that is what is causing your problem Jani Hartikainen wrote: Hey all I've

Re: [fw-general] handle any exception with errorController

2008-11-04 Thread Waigani
When I throw an exception from dispatchLoopStartup I get the following output: ___ Application Error this is index view This is error view The following error occurred: exception 'Zend_Exception' with message 'test' ___ So its catching the exception but both the index action from the index

[fw-general] Filter Digits on Zend_Form

2008-11-04 Thread Bagus Nugroho
Hi All, I'm trying using 'Digits' filter on Zend_Form like this : == class My_Form_Project_Test extends Zend_Form{ public function __construct($options = null){ parent::__construct($options); $update = new Zend_Form_Element_Text('test'); $update-setLabel('Test')

Re: [fw-general] APC and ZF tutorial

2008-11-04 Thread davideFashionPeople
Sorry for off topic: But AnyBody Could you help in my thead layout.phtml calling action -- View this message in context: http://www.nabble.com/APC-and-ZF-tutorial-tp20319957p20324493.html Sent from the Zend Framework mailing list archive at Nabble.com.

Re: [fw-general] Zend_Dojo Email validation, checkbox and Submit dojo form question- please?

2008-11-04 Thread drj201
I confirm this does not work using capture... I have the same problem. Thanks gerardroche wrote: vladimirn wrote: Alert you suggested me to make wont work as well :( phtml: ? $this-dojo()-javascriptCaptureStart() ? function validateForm() { var form = dijit.byId(signup);

Re: [fw-general] Filter Digits on Zend_Form

2008-11-04 Thread Matthew Weier O'Phinney
-- Bagus Nugroho [EMAIL PROTECTED] wrote (on Tuesday, 04 November 2008, 10:18 PM +0700): I'm trying using 'Digits' filter on Zend_Form like this : == class My_Form_Project_Test extends Zend_Form{ public function __construct($options = null){ parent::__construct($options);

Re: [fw-general] Zend_Capcha

2008-11-04 Thread dele454
http://www.nabble.com/file/p20325789/1.gif The captcha gets created but i noticed besides the fact that i cant get the text on the captcha validated with entered text. On my folder two captcha images are created on hiting the page. I have tried to figure out what might be causing this but to

RE: [fw-general] Zend_Capcha

2008-11-04 Thread Terre Porter
I found this example code in one of the bug reports ... (http://framework.zend.com/issues/browse/ZF-4045) Works good enough to get an idea of how to put the captcha to use. (as there is limited documentation examples) I didn't see one of these Zend_Form_Element_Captcha in your code, maybe it is

[fw-general] Zend_Translate and 1.7.0PR issue/question

2008-11-04 Thread Robert Castley
Hi, I thought I would take the Preview Release for a spin. But I immediately hit an issue with Zend_Translate. My error message is: Notice: No translation for the language 'en_GB' available. in /Users/rwc/Sites/ZendFramework-SVN/library/Zend/Translate/Adapter.php on line 301 I have a

Re: [fw-general] handle any exception with errorController

2008-11-04 Thread Matthew Weier O'Phinney
-- Jason Webster [EMAIL PROTECTED] wrote (on Tuesday, 04 November 2008, 08:26 AM -0800): Huh? I really don't understand. Matthew, could you please elaborate? The preDispatch method of the Plugin Broker has a try/catch block that should grab anything, and send it to the request object? no?

Re: [fw-general] Framework speed shotout -- question

2008-11-04 Thread Matthew Ratzloff
In the framework/db/ dir I can't see any file with multiple classes. e.g., http://yii.googlecode.com/svn/trunk/framework/db/ar/CActiveRecord.php http://yii.googlecode.com/svn/trunk/framework/db/ar/CActiveFinder.php -Matt On Mon, Nov 3, 2008 at 10:54 PM, ekerazha [EMAIL PROTECTED] wrote:

Re: [fw-general] handle any exception with errorController

2008-11-04 Thread Matthew Weier O'Phinney
-- Waigani [EMAIL PROTECTED] wrote (on Monday, 03 November 2008, 09:59 PM -0800): Is it possible? I want to throw an exception in the preDispatch of a plugin if you are not allowed to view the page. I then want to handle that exception via the errorController. I can wrap the $front-dispatch()

Re: [fw-general] handle any exception with errorController

2008-11-04 Thread Waigani
correction, it is catching the exception when thrown from dispatchLoopStartup from my plugin, but not whe it is thrown from preDispatch. Is this the expected behaviour? Waigani wrote: throw exceptions is not on and I've also tested the dispatchLoopStartup in the plugins broker. It is not

Re: [fw-general] APC and ZF tutorial

2008-11-04 Thread Tobias Gies
Hey davideFashionPeople, First off, sorry for sounding like a teacher now, but begging for answers in other threads is gonna get you some instant *plonk*s. You know that, right? Second, most people on this list use their real names to post, and I personally like it that way :-). About your

Re: [fw-general] handle any exception with errorController

2008-11-04 Thread Waigani
Yeah, I'm trying that: $this-getResponse()-setException(new Zend_Exception(test)); It does get handled in dispatchLoopStartup by the error controller, but orginal action also gets called as well as the error action (and you get two views rendered - orginal and error). When I throw an exception

Re: [fw-general] handle any exception with errorController

2008-11-04 Thread Jason Webster
You can manually clear the response body. $response-clearBody() I think I'll file a ticket and start work on improving the Exception handling with regards to plugins. Waigani wrote: Yeah, I'm trying that: $this-getResponse()-setException(new Zend_Exception(test)); It does get handled in

[fw-general] APC and ZF tutorial

2008-11-04 Thread Robert Castley
Hi I see APC mentioned a lot on this list and I was wondering if anyone has a tutorial for configuring APC for use with ZF? I have a default PHP and Apache install on Windows XP/Ubuntu/Mac and would like to what I have to do to my ZF app to get it using APC. Cheers, - Robert

Re: [fw-general] Controller Speed

2008-11-04 Thread monk.e.boy
Matthew Weier O'Phinney-3 wrote: -- Matthew Ratzloff [EMAIL PROTECTED] wrote I'm going to have to agree here. The rule of thumb I use -- based back on my CGI::Application days -- is that an action/page controller should only have around 7 actions, maximum; more than that, and it should

Re: [fw-general] ImageSize Validator

2008-11-04 Thread Matthew Lurz
Thank you and sorry for wasting your time Thomas. While I feel badly for not catching this, one of the reasons I love working with the ZF is when something doesn't work I can almost always count on the issue being related to some stage of deterioration in my mind instead of a limitation of or

Re: [fw-general] Framework speed shotout -- question

2008-11-04 Thread ekerazha
That's only the Active Record implementation (I did miss that 2 files though). We are at 4 files found now - excluding yiilite.php obviously -. However, I think these few situations do make a good use of multiple classes inside a file (PHP doesn't allow nested classes but at least it allows

Re: [fw-general] Tags for the memcached and APC backends for Zend_Cache - new approach

2008-11-04 Thread Jan Pieper
Oh sorry, my fault. I used Memcached as slow backend :-) Fabien MARTY wrote: Hi, Jan Pieper a écrit : Can you please show us an example how to realize tagged-memcache-caching with this new two-level backend? something like that (not tested) : ?php $slowBackend = 'File';

Re: [fw-general] handle any exception with errorController

2008-11-04 Thread keith Pope
Would adding an exception to the Response work though? 2008/11/4 Matthew Weier O'Phinney [EMAIL PROTECTED]: -- Waigani [EMAIL PROTECTED] wrote (on Monday, 03 November 2008, 09:59 PM -0800): Is it possible? I want to throw an exception in the preDispatch of a plugin if you are not allowed to

[fw-general] Atlassian feature requests for PHP developers. . .

2008-11-04 Thread Wil Sinclair
Hey all, Atlassian has expressed interest in support PHP development, so I'd like to help them by providing feature requests from actual PHP developers. To this end, I've set up this wiki page: http://framework.zend.com/wiki/display/ZFDEV/Feature+Requests+for+Atassi an+Toolset. I'd like to focus

Re: [fw-general] Controller Speed

2008-11-04 Thread till
On Tue, Nov 4, 2008 at 10:47 AM, monk.e.boy [EMAIL PROTECTED] wrote: Matthew Weier O'Phinney-3 wrote: -- Matthew Ratzloff [EMAIL PROTECTED] wrote I'm going to have to agree here. The rule of thumb I use -- based back on my CGI::Application days -- is that an action/page controller should

Re: [fw-general] APC and ZF tutorial

2008-11-04 Thread Tobias Gies
indeed :-) 2008/11/4 Jan Pieper [EMAIL PROTECTED] I think you mean extension=php_apc.dll and not extension=php_apc.so on Windows systems :-) -- *Von:* Tobias Gies [mailto:[EMAIL PROTECTED] *Gesendet:* Dienstag, 4. November 2008 12:18 *An:* Robert Castley

Re: [fw-general] Zend_Capcha

2008-11-04 Thread dele454
Any one out there with help? Please!! dele454 wrote: hi, i am trying to verify the text submitted to match that of the captcha. If valid(same) echo 'validated'. class JoinController extends Zend_Controller_Action { public function indexAction(){

RE: [fw-general] Zend_Capcha

2008-11-04 Thread dele454
Thanks for the code. Am not using Zend_Form for my forms. Am using plain html. I just didnt find it flexible enough for views such as floating three drop downs side by side and etc. It was taking too much of my time trying to make my view display as intended. Thanks for the code anyway.

Re: [fw-general] Zend_File_Transfer

2008-11-04 Thread Tim Nagel
Thomas, Thanks for the response. While going through the Zend_File_Transfer_Adapter_Abstract looking for the appropriate function, I noticed that setDestination() is depreciated in favour of using a filter. How do I set the destination path for the adapter if the method is depreciated? Or, has

[fw-general] Call for Resumes!

2008-11-04 Thread Wil Sinclair
Hi all, sorry for being a bit OT here, but Zend currently has some very high-impact positions that require strong ZF expertise. Here is the job board as it currently stands: http://www.zend.com/en/company/jobs-at-zend/. We need people to do training, support, and- a very special position that our

Re: [fw-general] Dijit Editor

2008-11-04 Thread Matthew Lurz
I've been unable to get this working and so thought I would post some code to see if anyone might see something out of place. Here's the form class: http://www.paste2.org/p/97000 I found this post, http://www.nabble.com/two-column-site-to19665005.html#a19670193, but changing the location where

[fw-general] Zend Framework SVN Commit Proposal

2008-11-04 Thread Ralph Schindler
Hello all, I am proposing we introduce a pre-commit hook on the framework subversion repository that will help ensure that commit messages are properly formatted before the commit goes through. The driving factor behind this proposal is simply integration. Ideally, we would like to see all svn

[fw-general] Re: [zf-contributors] Zend Framework SVN Commit Proposal

2008-11-04 Thread Matthew Ratzloff
Might want to make the ticket expression /ZF\-\d+/ just to make maintenance of the hook easier. You'll also want to prevent commits to tickets that are closed. The way that I've worked in the past with hooks like these is to use open tickets for common tasks so that all Spanish documentation

Re: [fw-general] Zend_File_Transfer

2008-11-04 Thread Thomas Weidner
Use it... In future it will be reworked so that it uses the rename filter but I have not finished my thoughts and it will not be reworked for 1.7 anyway. If you don't set it, it will use the systems temp path, so there is nothing which you can do wrong. Greetings Thomas Weidner, I18N Team