Re: [fw-general] Zend_Translate DB support

2008-06-05 Thread Simon R Jones
Thanks Thomas, I might be thinking of something more related to Zend_Db than Zend_Translate, where you can access translated strings in your database model seamlessly. Symphony has a nice model which creates a _i18n table with all text strings by language code. http://www.symfony-project.

Re: [fw-general] Best practice for validation

2008-06-05 Thread Ralf Eggert
Hi Simon, thanks for your thoughts. I really like the idea of defining the validators for each column in my model class and passing the model to the form object. In each form I could define which columns should be available in the form and which are mandatory. Then the form object could pick the v

Re: [fw-general] Zend_Translate DB support

2008-06-05 Thread Thomas Weidner
So you know how I18N works in ZF better than me ? You know how the ZF SQL adapter is designed ? Why did you then ask ? Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: "Simon R Jones" <[EMAIL PROTECTED]> To: Sent: Thur

RE: [fw-general] About the css issue

2008-06-05 Thread Vincent de Lau
> Using "/" implies that you are looking for a resource off the root of > your domain. If your site lives in a subdirectory of your doc root, > you'll run into some problems. > In order to ensure cross site/installation compatibility, you may want > to look into using a simple View Helper to get th

Re: [fw-general] Zend_Translate DB support

2008-06-05 Thread Simon R Jones
Thomas, not at all - please don't take any offence! I haven't used Zend_Translate a whole lot yet. I'm just asking a general question to see if there is any work on support for managing translated strings within a database (for a model rather than just messages) because I am tackling that

Re: [fw-general] Locale in all URLs

2008-06-05 Thread Ben Scholzen 'DASPRiD'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I suggest to extend the rewrite router, or maybe the routes, so they automatically take the language from the current active route. Michał Minicki schrieb: > Alex <[EMAIL PROTECTED]> napisał(a): > >> I've implemented Zend_Translate but I would like t

Re: [fw-general] Locale in all URLs

2008-06-05 Thread Michał Minicki
Alex <[EMAIL PROTECTED]> napisał(a): > I've implemented Zend_Translate but I would like to have unique urls for > different locales. Currently I set locale via a cookie. > > I would like the current locale appended to all urls. (...) > What would be the best way to implement this? Just from the t

Re: [fw-general] how to implement wysiwygPro into Zend Framework

2008-06-05 Thread etopian
Ok, I've got a little further with this, so here's more details on the question. I've created a View Helper called Editor, this should create the editor when calling the helper. What I run into now is that the framework router catches the call to the editor and gives an error message: "Uncaught

[fw-general] Models and joins coexistence

2008-06-05 Thread Giorgio Sironi
Hello, I was working on the models for my applications and I found some issues. When I define a subclassing of Zend_Db_Table_Row_Abstract, I have to fetch some data from dependent tables. For instance, an article has many 'tags' associated with it and I could retrieve them with a join clause, thus

Re: [fw-general] Simple ajax - where to store my result php scripts?

2008-06-05 Thread Matthew Weier O'Phinney
-- Rishi Daryanani <[EMAIL PROTECTED]> wrote (on Wednesday, 04 June 2008, 07:50 PM -0700): > I am using the ZF mvc pattern but a complete newbie, > and using my own code style in a lot of areas of my > site. I would like to make a simple ajax-based > functionality (using Prototype JS's "AjaxUpdater

Re: [fw-general] Best practice for validation

2008-06-05 Thread Matthew Weier O'Phinney
-- Ralf Eggert <[EMAIL PROTECTED]> wrote (on Thursday, 05 June 2008, 08:08 AM +0200): > I wonder what others think of the best practice for the validation part: > > a) Keep the validation rules in the form objects and let Zend_Form >handle the validation part Let's extend this idea a bit: att

[fw-general] 1.6

2008-06-05 Thread Wil Sinclair
Hi all, we've been planning for 1.6, and I'd like to give everyone a heads up that the Zend team like to start the release process with the first release candidate in early Q3. Now would be the time to commit any changes you'd like to get in to this release. We will be working hard to get through a

Re: [fw-general] Zend_Form_Element_Hash Example

2008-06-05 Thread Jerry McG
For the record, this works fine. The problem was that my cookie_domain in the config file pointed to another one of my domains. Once I changed this, everything worked fine. Thanks! Jerry -- View this message in context: http://www.nabble.com/Zend_Form_Element_Hash-Example-tp17651035p17667033.

Re: [fw-general] StripSlashes

2008-06-05 Thread Tobias Gies
Hi Ahmed! simply create your own filter for that. See http://framework.zend.com/manual/en/zend.filter.writing_filters.html for a general how-to on creating filters. :-) Best regards Tobias 2008/6/5 Ahmed Abdel-Aliem <[EMAIL PROTECTED]>: > Hi, > > how can i strip slashes a form contents before

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

2008-06-05 Thread Fabien MARTY
Hi Of course, we can do it. But the problem is : "you can't control when APC or memcache drop valid cache records (when there is no memory available for example...)". It's not easy to find a reliable solution with APC, Xcache or memcache for this. 2008/6/4 Pieter Kokx <[EMAIL PROTECTED]>: > He

Re: [fw-general] Best practice for validation

2008-06-05 Thread Josh Team
Matthew,I googled, "Jani H Zend Framework Blog" to no avail. Do you have a link to his blog(s)? Thanks, Josh Team On Thu, Jun 5, 2008 at 5:24 AM, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: > -- Ralf Eggert <[EMAIL PROTECTED]> wrote > (on Thursday, 05 June 2008, 08:08 AM +0200): > > I won

Re: [fw-general] Best practice for validation

2008-06-05 Thread Vincent
On 6/5/08, Josh Team <[EMAIL PROTECTED]> wrote: > > Matthew,I googled, "Jani H Zend Framework Blog" to no avail. Do you have a > link to his blog(s)? > See http://codeutopia.net/blog/2008/06/02/autogenerating-forms-from-doctrine-models/and http://codeutopia.net/blog/2008/06/04/zend_forms-from-doct

[fw-general] [Zend_Form] Custom aggregate element

2008-06-05 Thread Jean-Marc Fontaine
Hello, I am trying to create a custom form element that aggregates several simple elements. Has anyone already tried to do such an element ? Regards, Jean-Marc -- View this message in context: http://www.nabble.com/-Zend_Form--Custom-aggregate-element-tp17670079p17670079.html Sent from the

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

2008-06-05 Thread Marcus Bointon
On 5 Jun 2008, at 13:40, Fabien MARTY wrote: "you can't control when APC or memcache drop valid cache records (when there is no memory available for example...)". Well, I don't think that really matters. In that case any individual key that was expired/evicted from the cache would simply fa

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

2008-06-05 Thread Pieter Kokx
Hi, I think that it does matter actually. Because it is quitte impossible to 'retrieve' the tags array after it has been deleted. And if you are using tags, you will rely on that feature, I think. And that means that if there isn't a tags array, the tags that should be deleted aren't deleted

Re: [fw-general] Best practice for validation

2008-06-05 Thread Josh Team
Awesome, when I get a moment today at the office I'll do some reading! On Thu, Jun 5, 2008 at 9:13 AM, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: > -- Josh Team <[EMAIL PROTECTED]> wrote > (on Thursday, 05 June 2008, 08:10 AM -0500): > > I googled, "Jani H Zend Framework Blog" to no avail

Re: [fw-general] Best practice for validation

2008-06-05 Thread Matthew Weier O'Phinney
-- Josh Team <[EMAIL PROTECTED]> wrote (on Thursday, 05 June 2008, 08:10 AM -0500): > I googled, "Jani H Zend Framework Blog" to no avail. Do you have a link to his > blog(s)? Part 2 is here: http://codeutopia.net/blog/2008/06/04/zend_forms-from-doctrine-models-part-2/ and contains a link t

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

2008-06-05 Thread Fabien MARTY
> I think that it does matter actually. Because it is quitte impossible to > 'retrieve' the tags array after it has been deleted. And if you are using > tags, you will rely on that feature, I think. And that means that if there > isn't a tags array, the tags that should be deleted aren't deleted. A

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

2008-06-05 Thread Marcus Bointon
On 5 Jun 2008, at 15:11, Pieter Kokx wrote: I think that it does matter actually. Because it is quitte impossible to 'retrieve' the tags array after it has been deleted. And if you are using tags, you will rely on that feature, I think. And that means that if there isn't a tags array, the t

Re: [fw-general] [Zend_Form] Custom aggregate element

2008-06-05 Thread Pádraic Brady
It's not the exact same thing, but similar. I recently wrote a Zend_Form_Element_Recaptcha class for adding a reCAPTCHA to a form. The reCAPTCHA has two included input fields rather than the usual one. It's not identical since reCAPTCHA is an online service and the input fields are added dynamical

Re: [fw-general] [Zend_Form] Custom aggregate element

2008-06-05 Thread Jean-Marc Fontaine
Thanks for the help Paddy. I have an idea I want to try and if it works as expected I'll let you know. Jean-Marc -- View this message in context: http://www.nabble.com/-Zend_Form--Custom-aggregate-element-tp17670079p17673829.html Sent from the Zend Framework mailing list archive at Nabble.com

Re: [fw-general] zend_form help!

2008-06-05 Thread Pádraic Brady
Hi Dave, The problem is that the Label decorator on the form uses a View Helper in the background that, by default, is escaping it's content using htmlspecialchars(). The solution is to replace that default decorator with a custom one where you pass an extra parameter to the Label decorator setti

Re: [fw-general] [Zend_Form] Custom aggregate element

2008-06-05 Thread Pádraic Brady
Please do. What I did isn't perfect but any better solution would be welcome. Paddy Jean-Marc Fontaine wrote: > > Thanks for the help Paddy. > > I have an idea I want to try and if it works as expected I'll let you > know. > > Jean-Marc > > - Pádraic Brady http://blog.astrumfutura.c

Re: [fw-general] [Zend_Form] Custom aggregate element

2008-06-05 Thread Jean-Marc Fontaine
The problem is that the Zend_Form_Element is built to handle only on value and more generally Zend_Form currently does not seem to be able to handle what I want to build. What I want is not an element that aggregates other elements but handle one single value. I want something like the display gr

Re: [fw-general] zend_form help!

2008-06-05 Thread DaveCool
Thanks Paddy! It worked like a charm! I already had the same format as you in place for resetting the decorators. All I had to do was add 'escape'=>false to the label array I already had in place. this is what I used that worked $decorators = array( array('ViewHelper'),

[fw-general] Where does View helpers pull layouts from ? (outdated Zend_Layout code)

2008-06-05 Thread sean-k
I'm sorry to post such an elementary question but I haven't been able to find an answer to my question. I use to have this code Zend_Layout::startMvc(array('layoutPath'=>'../application/default/layouts')); That would add layout.pthml to my output. I have read that Zend_Layout is in the core n

Re: [fw-general] Where does View helpers pull layouts from ? (outdated Zend_Layout code)

2008-06-05 Thread Greg Maruszeczka
On Thu, 5 Jun 2008 12:55:56 -0700 (PDT) sean-k <[EMAIL PROTECTED]> wrote: > > I'm sorry to post such an elementary question but I haven't been able > to find an answer to my question. > > I use to have this code > Zend_Layout::startMvc(array('layoutPath'=>'../application/default/layouts')); >

Re: [fw-general] Where does View helpers pull layouts from ? (outdated Zend_Layout code)

2008-06-05 Thread sean-k
Ah like this setControllerDirectory('../application/default/controllers'); $controller->throwExceptions(true); // should be turned on in development time // run! array('layoutPath' => '../application/default/layouts'); $controller->dispatch(); Sorry and thanks again. -sean -- View this

Re: [fw-general] Where does View helpers pull layouts from ? (outdated Zend_Layout code)

2008-06-05 Thread Kevin McArthur
Since layouts are not inherently modular, you might consider the path /application/layouts to be more appropriate. Kevin sean-k wrote: Ah like this ? setControllerDirectory('../application/default/controllers'); $controller->throwExceptions(true); // should be turned on in development time

Re: [fw-general] zend_form help!

2008-06-05 Thread Pádraic Brady
Happy to help ;) Paddy Pádraic Brady http://blog.astrumfutura.com http://www.patternsforphp.com OpenID Europe Foundation - Original Message From: DaveCool <[EMAIL PROTECTED]> To: fw-general@lists.zend.com Sent: Thursday, June 5, 2008 8:32:43 PM Subject: Re: [fw-general] zend_form h

Re: [fw-general] Best practice for validation

2008-06-05 Thread Ralf Eggert
Hi Matthew, Matthew Weier O'Phinney schrieb am 05.06.2008 12:24: > Let's extend this idea a bit: attach the form object to your model. Interesting idea! I definitely will have to think about this in depth. At the moment I saved the validator and filter definitions in a file that only contains a

Re: [fw-general] Zend_Translate DB support

2008-06-05 Thread Thomas Weidner
Simon, To give you some background: The sql adapter will be based on the Zend_Db classes. It will support dynamical tables. Actually most implementations I've seen are fixed to a structure like "orig" -> "translation" or can only be configured in a fixed config file. The sql adapter will be co

[fw-general] Problems with Zend_Feed_Rss

2008-06-05 Thread mysticav
The problem: Data is not in order. This is what I'm doing: $channel = new Zend_Feed_Rss('http://www.nba.com/rss/nba_rss.xml'); for($channel as $item){ $item->title; //Should be shown as ordered in the XML , but it shows the records in a random way. } What is happening ? -- View this me