Re: [fw-general] Problem by creating a custom router with fall back to a CMS database module

2008-09-25 Thread berthausmans
I created a controller plugin to route the request to the cms controller. Has someone suggestions to do this with a router. class My_Controller_Plugin_CmsRouter extends Zend_Controller_Plugin_Abstract { /** * Routes all (public) request to unknown modules to the standard * Cms

Re: [fw-general] Breakchain on Zend_Form_Element_File fail

2008-09-25 Thread Yann Thomas-Gérard
Thomas Weidner a écrit : Well... I think that when there is no error by validation $this-_messages is empty... So why should the chain break when there is no failure ? There are errors by validation when I upload an ascii file: * The file 'a.txt' has a false mimetype * The file

Re: [fw-general] Breakchain on Zend_Form_Element_File fail

2008-09-25 Thread Thomas Weidner
Sorry, but I still think that you are using an outdated revision. Trunk revision works. I tested it myself yesterday. Please keep in mind that this component is actually under development and things change very fast. So it could be that a failure from a week before is already solved, or I

Re: [fw-general] Smarty Poll Question

2008-09-25 Thread Karol Grecki
It's unlikely that you will see any significant speed difference between the two. You're better off making sure that everything is cached properly instead of wasting time on refactoring. Karol Tony Ford wrote: We still use smarty for basic legacy reasons. I'm interested in running some

Re: [fw-general] Breakchain on Zend_Form_Element_File fail

2008-09-25 Thread Yann Thomas-Gérard
Yes I was using an outdated version. The breakChainOnFailure works fine now. Thanks! May I point out that with 'a.txt' validation works. If I rename 'a.txt' to 'a.jpg' then validation passes. This not what I expect. FYI: $ file -i a.txt a.txt: text/plain; charset=us-ascii $ file -i a.jpg

Re: [fw-general] Breakchain on Zend_Form_Element_File fail

2008-09-25 Thread Thomas Weidner
Nice, but you can not rename the file yourself. Validation is done on the temporary file, then the file is moved and then the filter is attached. So when you rename the file, you rename it after validation and filtering. There is no processing after that point. Greetings Thomas Weidner, I18N

Re: [fw-general] encoding in HTTP headers

2008-09-25 Thread Guillaume Oriol
Thank you Matthew. This issue was my misunderstanding of what the view.encoding was for. I thougt it was the target encoding (ie related to page Content-Type). But it is used only by escape() method as the source encoding of the text. Therefore, when I was setting the view.encoding to UTF-8, I

Re: [fw-general] Breakchain on Zend_Form_Element_File fail

2008-09-25 Thread Yann Thomas-Gérard
Nice, but you can not rename the file yourself. Validation is done on the temporary file, then the file is moved and then the filter is attached. What I meant was: If I click on my navigator's browse button and select the 'a.jpg' file from my harddisk, validation passes. So when you rename

[fw-general] Cronjobs with ZF

2008-09-25 Thread José de Menezes Soares Neto
I am using Zend Framework to develop a web system. It has a function (let's call it funcA) required to run periodically. Thus, I would like to use crontab (Linux command) to run funcA every 15 m. Unfortunately, it seems that there are some configurations on the bootstrap file, I need to access

Re: [fw-general] Cronjobs with ZF

2008-09-25 Thread till
On Thu, Sep 25, 2008 at 1:02 PM, José de Menezes Soares Neto [EMAIL PROTECTED] wrote: I am using Zend Framework to develop a web system. It has a function (let's call it funcA) required to run periodically. Thus, I would like to use crontab (Linux command) to run funcA every 15 m.

Re: [fw-general] Cronjobs with ZF

2008-09-25 Thread José de Menezes Soares Neto
Hi Till, Could you explain your solution a little bit more? Regards, José 2008/9/25 till [EMAIL PROTECTED] On Thu, Sep 25, 2008 at 1:02 PM, José de Menezes Soares Neto [EMAIL PROTECTED] wrote: I am using Zend Framework to develop a web system. It has a function (let's call it funcA)

[fw-general] Action to single php

2008-09-25 Thread José de Menezes Soares Neto
Hi friends, I would like to convert an action into a single file .php I would like to keep using ZF functions, but I want to access this file .php alone, not using bootstrap. i.e. http://www.mysite.com/myfile.php It is because this resolves my problem with cronjob creations! Any help?

[fw-general] Re: Action to single php

2008-09-25 Thread Colin Guthrie
José de Menezes Soares Neto wrote: Hi friends, I would like to convert an action into a single file .php I would like to keep using ZF functions, but I want to access this file .php alone, not using bootstrap. i.e. http://www.mysite.com/myfile.php It is because this resolves my problem

Re: [fw-general] Cronjobs with ZF

2008-09-25 Thread retoreto
José de Menezes Soares Neto wrote: I am using Zend Framework to develop a web system. It has a function (let's call it funcA) required to run periodically. Thus, I would like to use crontab (Linux command) to run funcA every 15 m. I'm doing this by just creating a simplified bootstrap

Re: [fw-general] Cronjobs with ZF

2008-09-25 Thread keith Pope
ZF is by default setup for a Http environment this means that you get: Http Request Object Http Response Object So to do what you want you need to use the Cli response object, and you may need create your own Request object. Look at the request object abstract. The request object holds data to

Re: [fw-general] Cronjobs with ZF

2008-09-25 Thread Benjamin Eberlei
this blog post here offers one solution: http://webfractor.wordpress.com/2008/08/14/using-zend-framework-from-the-command-line/ On Thursday 25 September 2008 13:02:00 José de Menezes Soares Neto wrote: I am using Zend Framework to develop a web system. It has a function (let's call it funcA)

Re: [fw-general] Dojo BorderContainer Help

2008-09-25 Thread Matthew Weier O'Phinney
-- Panman [EMAIL PROTECTED] wrote (on Wednesday, 24 September 2008, 01:32 PM -0700): I have not been able to get BorderContainer to work at all. Neither with ZF nor directly coding a test page. Has anyone been successful with BorderContainer? Yep -- I use it in my pastebin demo:

Re: [fw-general] DojoComboBox and large data set.

2008-09-25 Thread Paweł Chuchmała
On Wed, Sep 24, 2008 at 15:26, Matthew Weier O'Phinney [EMAIL PROTECTED] wrote: Most likely what's happening is you're getting double-rendering of the layout due to an error further down the stack. From what I've seen, most of these errors that have been reported have been due to either: *

Re: [fw-general] Breakchain on Zend_Form_Element_File fail

2008-09-25 Thread Yann Thomas-Gérard
Yann Thomas-Gérard a écrit : Nice, but you can not rename the file yourself. Validation is done on the temporary file, then the file is moved and then the filter is attached. What I meant was: If I click on my navigator's browse button and select the 'a.jpg' file from my harddisk, validation

[fw-general] Zend_Form custom validator best practices

2008-09-25 Thread cyrilkuch
Hello All, I have a form with 2 fields and submit button. Form is created like this: $form = new Zend_Form(); $form-setMethod('post'); $form-addElement('text','field1', array( 'label' = 'User Name',

Re: [fw-general] Breakchain on Zend_Form_Element_File fail

2008-09-25 Thread Thomas Weidner
You just say what is already described in the manual. And looking at our issue list you would have mentioned that we will also add a content-type validator which checks the stored content, as the mime-type can be changed by users. As I already wrote several times, this component is not

[fw-general] Is ZF Teem planned official user plugin repository?

2008-09-25 Thread mezoni
Is ZF Teem planned official user plugin repository? -- View this message in context: http://www.nabble.com/Is-ZF-Teem-planned-official-user-plugin-repository--tp19673010p19673010.html Sent from the Zend Framework mailing list archive at Nabble.com.

Re: [fw-general] Breakchain on Zend_Form_Element_File fail

2008-09-25 Thread Yann Thomas-Gérard
Ok I just saw those issues, Thank you for your time and informations, Yann Thomas Weidner a écrit : You just say what is already described in the manual. And looking at our issue list you would have mentioned that we will also add a content-type validator which checks the stored content, as

Re: [fw-general] Is ZF Teem planned official user plugin repository?

2008-09-25 Thread Matthew Weier O'Phinney
-- mezoni [EMAIL PROTECTED] wrote (on Thursday, 25 September 2008, 09:13 AM -0700): Is ZF Teem planned official user plugin repository? Not currently; we've been kicking the idea around for a while, though. -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend

[fw-general] Zend_Form How do I use setLegend addDisplayGroup?

2008-09-25 Thread devxtech
I'm trying to set up a contact form with the proper elements so I can apply a CSS style sheet to it. Could someone provide me an example of how to properly use the setLegend and addDisplayGroup methods for interacting with Zend_Form_DisplayGroup. -- View this message in context:

Re: [fw-general] Is ZF Teem planned official user plugin repository?

2008-09-25 Thread Jason Austin
Count me in as a vote for doing this. It would be great to provide that type of resource to users. - Jason Matthew Weier O'Phinney wrote: -- mezoni [EMAIL PROTECTED] wrote (on Thursday, 25 September 2008, 09:13 AM -0700): Is ZF Teem planned official user plugin repository? Not

[fw-general] View Helpers Repository

2008-09-25 Thread Edward Haber
I'm just in the first steps of putting together a ViewHelpers repository because there is such a serious need for a resources repository for ZF. I would welcome any thoughts on this implementation -- any intelligence on the idea itself (does it already exist in a better form somewhere

Re: [fw-general] Is the Dojo Checkbox code correct ?

2008-09-25 Thread Apsy
I'm using the trunk version ! Andrew Yager a écrit : On 24/09/2008, at 10:47 PM, Apsy wrote: Your patch works with the addElement method. Because if i do it with the set value with the setters, i have 0 and 1 with for checked and unchecked value. The patch is designed to work with the

Re: [fw-general] View Helpers Repository

2008-09-25 Thread Matthew Ratzloff
Regarding your plural (s) helper... person = people -Matt On Thu, Sep 25, 2008 at 10:53 AM, Edward Haber [EMAIL PROTECTED] wrote: I'm just in the first steps of putting together a ViewHelpers repository because there is such a serious need for a resources repository for ZF. I would welcome

Re: [fw-general] View Helpers Repository

2008-09-25 Thread Ben Scholzen 'DASPRiD'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Or in other languages, there is more than one plural form, e.g. in polish. Ben Matthew Ratzloff schrieb: Regarding your plural (s) helper... person = people -Matt On Thu, Sep 25, 2008 at 10:53 AM, Edward Haber [EMAIL PROTECTED]

[fw-general] No conditional comment support for headScript?

2008-09-25 Thread Isaak Malik
How come conditional comments are not supported for headscripts? Next to CSS this method is also commonly used with JavaScript code/files, a common example is the PNG background fix. Are there any plans for this or will I have to force my lazy fingers to keep typing the extra characters? Thank

RE: [fw-general] No conditional comment support for headScript?

2008-09-25 Thread Jeremy Brown
This is an excerpt from an email on the fw-mvc list sent on 21 Aug 2008: $url = $this-_view-baseUrl() . '/css/blueprint/ie.css'; $this-_view-headLink()-appendStylesheet($url, 'screen,projection', 'IE 7'); This outputs: !--[if IE 7].!-- [endif] -- Jeremy Brown Senior Web Developer

Re: [fw-general] Using ACL asserts to validate access to specific instances of a generic resource

2008-09-25 Thread Aldemar Bernal
Colin, Hope this helps: http://devzone.zend.com/article/3509-Zend_Acl-and-MVC-Integration-Part-I-Basic-Use http://devzone.zend.com/article/3510-Zend_Acl-and-MVC-Integration-Part-II-Advanced-Use Aldemar - Original Message - From: Colin Guthrie [EMAIL PROTECTED] To: