Re: [fw-general] Zend_db_tab relationship

2009-04-21 Thread PHPScriptor
http://framework.zend.com/manual/en/zend.db.table.relationships.html http://framework.zend.com/manual/en/zend.db.table.relationships.html Try something like this in your model: public function consultaCadastro() { $select = parent::select(); $select->setIntegrityCheck(false); $select->fro

[fw-general] Zend Form Validators and their options

2009-04-21 Thread J DeBord
In the code below I have added the EmailAddress validator. In the case of this validator and the others, where can I find out what options I am able to pass to them? For example 'validators' => array(array('EmailAddress', false, array('WHAT OPTIONS CAN I PUT HERE?))), $this->addElement('text', 'e

RE: [fw-general] [SOLVED] Zend_Search_Lucene_Search_Query_Wildcard working with zf 1.7.0 but not with 1.7.7+

2009-04-21 Thread Sergio Rinaudo
Finally solved, thank you MSchraeder for your great advices. I've changed the field type of 'categories_url' from 'keyword' to 'text', then I stored its data without hyphens. I've also removed commas, all terms are separated by a space. And it is working! Thank you Sergio Rinaudo Date: Tue, 21

Re: [fw-general] Zend_View_Helper_Translate Usage

2009-04-21 Thread Alesso
I've passed the Zend_translate object to the front controller's registry with $front->setParam('Zend_Translate', $translate); I don't want to pass this $translate object to another registry, wich is necessary to use the object in the Zend_View_Helper_Translate class. To make everything work i

Re: [fw-general] Zend_View_Helper_Translate Usage

2009-04-21 Thread keith Pope
So you are passing translate as an invoke argument on the Front Controller? You already have the translate object instantiated so adding a reference has no real overhead. I dont believe there is an easy way to achieve what the registry achieves with translate. 2009/4/21 Alesso : > > Can no one he

Re: [fw-general] Zend_View_Helper_Translate Usage

2009-04-21 Thread Alesso
Can no one help me? What does the typical usage of Zend_Translate and the Front Controller look like? -- View this message in context: http://www.nabble.com/Zend_View_Helper_Translate-Usage-tp23111363p23164912.html Sent from the Zend Framework mailing list archive at Nabble.com.

Re: [fw-general] Issues with Zend_Locale and Language Selection.

2009-04-21 Thread Thomas Weidner
The reason for this behaviour can be found in the manual for Zend_Currency which causes the problem as you already noted: http://framework.zend.com/manual/en/zend.currency.usage.html... "Note that Zend_Currency only accepts locales which include a region. This means that all locales that only i

Re: [fw-general] PEAR Channel Server

2009-04-21 Thread Brett Bieber
On Tue, Apr 21, 2009 at 11:29 AM, Ralph Schindler wrote: > >> the latest features in PHP, allow registries to be moved/distributed, > > Whats that mean? Currently, a PEAR registry, (the installed packages, list of what is installed, related data files etc), is closely tied to the filesystem where

[fw-general] Issues with Zend_Locale and Language Selection.

2009-04-21 Thread Mr. Eric Eugene Naujock
I am finding that for some reason I am getting error messages in my logs that read as such. No region found within the locale 'en' When I decided to take a look I set my browser the use a locale first of 'en' then 'en_US'. When I do so I get errors in my logs that would read like above. I

Re: [fw-general] PEAR Channel Server

2009-04-21 Thread Ralph Schindler
the latest features in PHP, allow registries to be moved/distributed, Whats that mean? -ralph

[fw-general] Re: $this->addElement Validators with optional params ?

2009-04-21 Thread J DeBord
Google helped me figure it out. Would someone mind commenting on what I should have been looking for in the ZF source code in order to figure this out myself? $this->addElement('text', 'l_title', array( 'decorators' => $this->_defaultDecorators, 'required' => true,

RE: [fw-general] Zend_Search_Lucene_Search_Query_Wildcard working with zf 1.7.0 but not with 1.7.7+

2009-04-21 Thread Sergio Rinaudo
Luke is really an awesome tool! After I selected my search index I've got everything as expected. Also the 'categories_url' field is I-S, Indexed and Stored hopefully like I've specified in My_Search_Lucene_Document class: $this->addField(Zend_Search_Lucene_Field::Keyword( 'categories_

[fw-general] $this->addElement Validators with optional params ?

2009-04-21 Thread J DeBord
How would I set the optional value for the validator Alnum to true using the addElement syntax below? $this->addElement('text', 'l_description', array( 'decorators' => $this->_defaultDecorators, 'label'=> 'Link Description', 'required'=> false,

Re: [fw-general] Question on RewriteRule

2009-04-21 Thread Martin Martinov
2009/4/21 Jalil F. : > > > Thanks. I see the new rules: > > RewriteEngine On > RewriteCond %{REQUEST_FILENAME} -s [OR] > RewriteCond %{REQUEST_FILENAME} -l [OR] > RewriteCond %{REQUEST_FILENAME} -d > RewriteRule ^.*$ - [NC,L] > RewriteRule ^.*$ /index.php [NC,L] Change the above to RewriteRule ^.*

Re: [fw-general] Question on RewriteRule

2009-04-21 Thread Phil Shean
RewriteBase /Stage On Tue, Apr 21, 2009 at 4:24 PM, Jalil F. wrote: > > > Thanks. I see the new rules: > > RewriteEngine On > RewriteCond %{REQUEST_FILENAME} -s [OR] > RewriteCond %{REQUEST_FILENAME} -l [OR] > RewriteCond %{REQUEST_FILENAME} -d > RewriteRule ^.*$ - [NC,L] > RewriteRule ^.*$ /in

Re: [fw-general] Question on RewriteRule

2009-04-21 Thread Jalil F.
Thanks. I see the new rules: RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ /index.php [NC,L] However, I still have the same question. Could you help? Thanks, -Jali

Re: [fw-general] PEAR Channel Server

2009-04-21 Thread Brett Bieber
On Fri, Apr 17, 2009 at 1:16 PM, Christoph Dorn wrote: >> There's a lot of interesting things going on with Pyrus (the next >> version of the PEAR installer) and Helgi and I will be coordinating a >> Pyrus hacking session at |Tek. We'd be happy to answer any questions >> in person, and welcome any

Re: FW: [fw-general] Zend_Search_Lucene_Search_Query_Wildcard working with zf 1.7.0 but not with 1.7.7+

2009-04-21 Thread Matt Schraeder
Then your best bet would be to actually check what is in the index itself. There's a chance your tokenizer could be messing up because of the hyphens in your search terms. If you run Luke, the Lucene Index Toolbox, you'll be able to look at exactly what is in each field, top terms in each field, a

Re: [fw-general] Multidimensional MultiCheckbox

2009-04-21 Thread Jay M. Keith
I personally use this method a lot in my code, and recently found a great blog post from David Caylor about how to utilize SubForms to achieve this. http://davidcaylor.com/php/building-table-based-forms-in-zend_form He also is talking about the use of tables for form layout, but I found the creat

Re: [fw-general] Zend_Application Bootstrapping

2009-04-21 Thread Matthew Weier O'Phinney
-- Justin Barnes wrote (on Monday, 20 April 2009, 04:43 PM -0500): > I've begun playing with Zend_Application. I really like the Idea. However I am > struggling with how to organize the bootstrap and associated files within my > project. This is my current setup ... > > index.php > > > > appli

Re: [fw-general] size limit raised on javascriptCaptureStart()

2009-04-21 Thread Matthew Weier O'Phinney
-- Guillaume Oriol wrote (on Monday, 20 April 2009, 09:13 AM -0700): > Hi, I discovered an issue with the javascriptCaptureStart/javascriptCaptureEnd > function pair. When the captured text exceeds a certain limit (about 50kB in > my > case), the function returns only a semi-colon. I have the fol