Re: [fw-general] Form decorators not formatting

2009-12-21 Thread keith Pope
2009/12/18 Mike A : > Apologies - my previous post did not format correctly, so I repeat. > > When constructing a form element I use this... > >        $this->addElement('hidden', 'productId', array( >            'decorators' => array(array('ViewHelper'), >                                        ar

[fw-general] URL issue with multiple customers sharing the same application

2009-12-21 Thread Guillaume ORIOL
Working on an application that is the same for multiple customers, I had to face a design option. I wanted to avoid installing the application as many times as we had customers (for maintenance reasons). Therefore I chose to have a unique code installation but several databases. Each customer wo

Re: [fw-general] Why does Zend_Json_Server check namespaces against a regex?

2009-12-21 Thread Matthew Weier O'Phinney
-- Steven Brown wrote (on Monday, 21 December 2009, 02:42 PM +1000): > I'm implemented a JSON-RPC server, but I've been snagged. > > The namespace I want to use starts with a number. > > This namespace does not pass the regular expressions that validate the > namespaces in Zend_Json_Server_Smd_S

[fw-general] Zend_Date::now() and fluent interface

2009-12-21 Thread Thomas D.
Hi, is is correct, that "Zend_Date::now($locales)->set('00:00:00', Zend_Date::TIMES)" will return a string instead of an Zend_Date object? -- Regards, Thomas

[fw-general] Buttons and isChecked method

2009-12-21 Thread umpirsky
Hi. For me, isChecked method works only after I set my buttons (type="submit") have same value for label and value attribs. Also, it returns opposite value then expected, false when button is clicked! Lets take a look at buton/submit isChecked method: /** * Has this submit button been selected

[fw-general] zend dojo form, generated zendDijits variable

2009-12-21 Thread estebanpv
Hi, I have a large form (c. 200 fields) being displayed via Zend_Dojo_Form. Each field has its own dijit parameters, usually placed by ZF in a javascript variable named zendDijits. The problem is that zendDijits is not being printed. Probably this happens because form is too large. When I work w

Re: [fw-general] URL issue with multiple customers sharing the same application

2009-12-21 Thread Daniel Latter
Hi, I have a situation very similar to yours, although I am not sure about the answer to your question, I have a quesiton for you: when you say you have several databases, what do you mean? do you mean one per customer/application? Thanks Dan 2009/12/21 Guillaume ORIOL > Working on an appl

Re: [fw-general] URL issue with multiple customers sharing the same application

2009-12-21 Thread Guillaume ORIOL
Yes, I have exactly one database per customer and one more for supervision purpose (where access to customer databases are defined). Le 21/12/09 16:08, Daniel Latter a écrit : Hi, I have a situation very similar to yours, although I am not sure about the answer to your question, I have a qu

Re: [fw-general] URL issue with multiple customers sharing the same application

2009-12-21 Thread Daniel Latter
Thanks for the reply, What was your main reason for using separate databases instead of one single database? Dan 2009/12/21 Guillaume ORIOL > Yes, I have exactly one database per customer and one more for supervision > purpose (where access to customer databases are defined). > > Le 21/12/

Re: [fw-general] URL issue with multiple customers sharing the same application

2009-12-21 Thread Guillaume ORIOL
I had two reasons in mind: - security (the db user has rights only on its database) - simplicity (no need to prefix table names or to add a customer column in every table PK) -- Guillaume Le 21/12/09 16:40, Daniel Latter a écrit : Thanks for the reply, What was your main reason for using sep

Re: [fw-general] URL issue with multiple customers sharing the same application

2009-12-21 Thread Daniel Latter
OK thanks for the replies, I understand your reasons but this too seems unmanageable, say if you have 50 customers, thats 50 databases!!? or am I missing somthing? Thanks again. Dan 2009/12/21 Guillaume ORIOL > I had two reasons in mind: > - security (the db user has rights only on its da

Re: [fw-general] URL issue with multiple customers sharing the same application

2009-12-21 Thread Jake McGraw
On Mon, Dec 21, 2009 at 11:10 AM, Daniel Latter wrote: > OK thanks for the replies, I understand your reasons but this too seems > unmanageable, say if you have 50 customers, thats 50 databases!!? or am I > missing somthing? > This isn't so terrible, sandboxing accounts to their own databases mak

Re: [fw-general] URL issue with multiple customers sharing the same application

2009-12-21 Thread Guillaume ORIOL
I do agree with Jake. It is not a big deal to manage 50 database if you have a good back-office to do it. On Mon, Dec 21, 2009 at 11:10 AM, Daniel Latter > wrote: OK thanks for the replies, I understand your reasons but this too seems unmanageable, say if

Re: [fw-general] Buttons and isChecked method

2009-12-21 Thread Hector Virgen
That's because you can have two buttons with the same name but have different values. Only if the value matches will it be considered clicked. Also, with inputs (type=submit), the value and the label are the same thing. To make your button say "OK", its value should be "OK". When the button is cli

Re: [fw-general] Route Rewrite Problem

2009-12-21 Thread kusum
Thanks Mon, Yes that was my mistake of giving duplicate names... and changing them resolved my problem... And all rules work good now =) Regards Kusum Mon Zafra wrote: > > A few things: > > * Make sure your route names are unique. I see two each of the 'articles' > and 'articlenew' ro

Re: [fw-general] URL issue with multiple customers sharing the same application

2009-12-21 Thread Daniel Latter
Thanks for the replies Jake and Guillaume, they have made me think as I am currently adding somthing of the same to an app Im Implementing, I was thinking of having a one database as I didn't want to optimise prematurley but the benefits mentioned here especialy in terms of scalability and

Re: [fw-general] Route Rewrite Problem

2009-12-21 Thread kusum
Hi I never mentioned the default values in my rules... and it works fine for me... May be its different in different versions But i am not sure.. Regards Kusum umpirsky wrote: > > Can you please explain on this example > > resources.router.routes.articlename.type = "Zend_Controller_Ro

[fw-general] Renaming a file after it has been validated

2009-12-21 Thread Diego Potapczuk
Hi, I need to rename a file with the id of a record that i'm saving in the same form, so in the controller i already checked if it is a post, if the data is valid, already saved my record in the database, and now i have the id. So i need to check if the file was submitted and rename it. I tried it

Re: [fw-general] Renaming a file after it has been validated

2009-12-21 Thread Daniel Latter
I think the order is important:? // http://www.zfforums.com/zend-framework-components-13/core-infrastructure-19/zend-form-element-file-rename-working-but-question-1940.html * Check if the file was uploaded * Check if the file is valid * Add the filter * Receive the file Dan 2009/12/21 Diego

Re: [fw-general] Renaming a file after it has been validated

2009-12-21 Thread Diego Potapczuk
I already fixed it, the problem wasn´t the order, the problem was that when you do $values = $form->getValues(); It automatically receive the files. So you have to set this in the form element ->setValueDisabled(true) So you have to call the $file->receive(); after you configure the new name.

Re: [fw-general] Renaming a file after it has been validated

2009-12-21 Thread Daniel Latter
Good stuff, thanks for letting us know about that one. Dan 2009/12/21 Diego Potapczuk > I already fixed it, the problem wasn´t the order, the problem was that when > you do > > $values = $form->getValues(); > > It automatically receive the files. > > So you have to set this in the form elemen

[fw-general] ZF 1.10.0alpha1 released

2009-12-21 Thread Matthew Weier O'Phinney
Greetings, all! For those of you monitoring SVN the last few weeks, you will likely have noticed a huge surge of activity as contributors have scrambled to complete code in time for the 1.10.0 release. The release is getting close, and I'm happy to announce an *ALPHA* release of 1.10.0. http:

[fw-general] Zend_Feed_Writer docs

2009-12-21 Thread takeshin
Where can I find documentation for new Zend_Feed_Writer? Is there any pre-built documentation for 1.10 alpha? -- regards takeshin -- View this message in context: http://n4.nabble.com/Zend-Feed-Writer-docs-tp976585p976585.html Sent from the Zend Framework mailing list archive at Nabble.com.

Re: [fw-general] Zend_Feed_Writer docs

2009-12-21 Thread Pádraic Brady
Hi takeshin, It's a separate download on the download page for the alpha version. The ZFW docs are not entirely complete but there's an intro and getting started section that covers all the basics and some detailed API descriptions for the feed level API. Paddy Pádraic Brady http://blog.ast

Re: [fw-general] Zend_Feed_Writer docs

2009-12-21 Thread Cristian Bichis
Btw, The Zend_Feed_Reader documentation needs some upgrades also. I saw the Zend_Feed_Reader::findFeedLinks is working now for multiple feed links, but i can't figure out how to actually get the feeds... -- Best regards, Cristian Bichis www.zftutorials.com | www.zfforums.com | www.zftalk.com

Re: [fw-general] Zend_Feed_Writer docs

2009-12-21 Thread takeshin
Pádraic Brady wrote: > > Hi takeshin, > > It's a separate download on the download page for the alpha version. The > ZFW docs are not entirely complete but there's an intro and getting > started section that covers all the basics and some detailed API > descriptions for the feed level API. >

[fw-general] Route chain with wildcard not matching some URLs

2009-12-21 Thread Babant
Hi. I'm having trouble with a route chain when trying to use '*' wildcard. For several hours, I've been trying to find a solution but with no luck. I have a Hostname route and a simple route (which both work just fine on their own). $adminHostnameRoute = new Zend_Controller_Router_Route_Host

Re: [fw-general] Zend_Feed_Writer docs

2009-12-21 Thread mikaelkael
Hi, An HTML online version of Zend Framework 1.10 documentation is available here: http://www.mikaelkael.fr/doczf/1.10/en A CHM version is available here: http://www.mikaelkael.fr/Zend-Framework-1-10-x.html Mickael takeshin a écrit : Pádraic Brady wrote: Hi takeshin, It's a separate do

Re: [fw-general] zend dojo form, generated zendDijits variable

2009-12-21 Thread estebanpv
I found a temporary solution. There must be a better way to solve the problem, but the following works: 1. Edit Zend/Dojo/View/Helper/Dojo/Container.php. In that file find function registerDijitLoader(), where the zendDijits js code is generated and add these lines by the end of the function. $

[fw-general] Base Controller Classes

2009-12-21 Thread Taha Bayrak
Hi , I have a quick question: What is the best practice for placing the base controller classes? a. Placing them in the same directory as the other controllers - the ones that extends from the base class -? If so, is there a easy way to prevent the base class getting into the dispatch loop? b.

Re: [fw-general] Buttons and isChecked method

2009-12-21 Thread umpirsky
О.К. I'm using buttons (type="submit"). Does for you this method returns opposite value then expected? Regards, Saša Stamenković On Mon, Dec 21, 2009 at 6:04 PM, Hector Virgen [via Zend Framework Community] > wrote: > That's because you can have two buttons with the same name but have > dif