Re: [fw-general] Route chains not matching URLs with all optional variables

2009-10-24 Thread Peter Warnock
A chain is a single route made up of multiple routes. To achieve what you want, add both the route and the chain to the router and test the route method. - pw On Thu, Oct 22, 2009 at 10:55 AM, Tim Fountain wrote: > I've having some trouble with route chains when the last route in the chain > con

Re: [fw-general] Zend_Form and arrays

2009-10-24 Thread Peter Warnock
2009/10/22 Krzysztof Szatanik > > As you can see even if i get form values in request as i wanted, they > aren't recognized by Zend_Form. Output of $form->getValues() is different > from expected, and even fields aren't recognized, so i can use Zend_Form > only to generate HTML form but not to fil

[fw-general] Zend_Mail - sending from a cron task

2009-10-24 Thread debussy007
Hi! When a mail is sent from the webserver of my website, using the Gmail SMTP server, I can see the mail that has been sent in Gmail (in Sent mails) However, when a mail is sent from a php script in background triggered by a CRON task, the sent mail doesn't appear appear in Gmail's Sent mails.

Re: [fw-general] Log only insert, update or delete queries

2009-10-24 Thread David Zapata
Thanks a lot. I guess I'll try to overwrite the Zend_Db class and rewrite the query() method. Thanks to all of you. If there are more recomendations, I'll be waiting all of them until something works. =) -- View this message in context: http://www.nabble.com/Log-only-insert%2C-update-or-delete

Re: [fw-general] Zend_Form and arrays

2009-10-24 Thread Shaun Farrell
Your Zend_Form is a POST method. You can also do it this way in your controller. $form = new Default_Form_FormName(); // instantiate the form $this->view->form = $form; // form for the view //after submitting the form if($this->getRequest()->isPost()) { // if the form is a post $formData =

[fw-general] Incorrect dispatch in testing environment due to baseUrl being set.

2009-10-24 Thread dmitrybelyakov
Hi, I observe some nasty differences between these two objects behavior Zend_Controller_Request_Http Zend_Controller_Request_HttpTestCase If we navigate to a URI like this: '/modulename/123/456/' and printout this two objects in _routeStartup() hook we see: for regular request object: [_req

[fw-general] Subforms and subforms

2009-10-24 Thread Jurian Sluiman
Hi all, I have separate subforms, but also subforms inside subforms. I'm trying to get this subform structure: is a form, is a subform and is a sub-subform. Now inside there is an input element base-name ánd inside there is an input elem

Re: [fw-general] Zend_View adapters

2009-10-24 Thread Ladislav Prskavec
umpirsky wrote: Hi. I saw Twig adapter for Zend_View recently http://svn.twig-project.org/branches/zend_adapter/. So I wonder, are there any plans for implementing some adapterts for smarty, savant...? Or will twig adapter get it's place in zf some day? If yes, will they have all features whic

Re: [fw-general] Finding "next" date for an event

2009-10-24 Thread Exception e
Brenton Alker-3 wrote: > > solve. > > 1. How would I persist this information? > The start date is easy, it's just a date. > The interval I'm not sure about. A number of seconds (or days if it's > only accurate to date) could work for basic things like every week. But > what about irregular th

[fw-general] Dynamic orWhere Clause | Zend_Db_Select

2009-10-24 Thread Shaun Farrell
Are you able to do this? $teamTags = an array or strings $select = $this->getTable()->select(); foreach($teamTags as $tags) { $select->orWhere('Text like ?', '%' . $tags['Tag'] . '%'); } $select->where('(Create_Dt < ?', '2009-10-24 23:59:59') ->wh

[fw-general] Zend_Feed_Reader Categories

2009-10-24 Thread Bradley Holt
Are there any plans to add support for categories in Zend_Feed_Reader? A getCategories method on Zend_Feed_Reader_FeedInterface and Zend_Feed_Reader_EntryInterface would be very useful. A cursory glance shows that both Atom and RSS support categories. Thanks, Bradley -- Bradley Holt bradley.h...

[fw-general] Zend_Db_Table sequence problem...

2009-10-24 Thread scs
Hi, Is the model class code below enough to use sequence for this model/table? Is there something extra that I shall do for getting the primary key from sequence? class Default_Model_DbTable_Test extends Zend_Db_Table_Abstract { protected $_name = 'table_name';

Re: [fw-general] Dynamic orWhere Clause | Zend_Db_Select

2009-10-24 Thread Hector Virgen
What is the error? If you can echo the SQL but not query it, it's probably a syntax error. -- Hector On Sat, Oct 24, 2009 at 1:26 PM, Shaun Farrell wrote: > Are you able to do this? > > $teamTags = an array or strings > > $select = $this->getTable()->select(); > > foreach($teamTags as

Re: [fw-general] Dynamic orWhere Clause | Zend_Db_Select

2009-10-24 Thread Shaun Farrell
Actually I have narrowed it down to the ajax i think. I can call the method in the model and it works fine. However when I call the action via ajax it leaves out the orWhere loop. Seems odd to me. On Sat, Oct 24, 2009 at 6:33 PM, Hector Virgen wrote: > What is the error? If you can echo the S

Re: [fw-general] Zend_Feed_Reader Categories

2009-10-24 Thread Pádraic Brady
Hi Bradley, Sure - it just didn't quite make the timeline for 1.9, and with 1.10 not yet scheduled it was left by the wayside while I fixed up some other areas (like the support for relative URLs in Atom). Since you asked though, I'll get it added to trunk during the week. You can file an impro

Re: [fw-general] Zend_Mail - sending from a cron task

2009-10-24 Thread Pádraic Brady
Are you sure both are using the same configuration for SMTP? You may have lost something in the translation from ZF to CLI script - check for any statically set default adapters. I think there's at least one of those somewhere you may have missed on the CLI side. Paddy Pádraic Brady http://b

Re: [fw-general] Zend_View adapters

2009-10-24 Thread Pádraic Brady
There are no plans that I'm aware of since there are something like a billion template engines, well, maybe less than that ;). I'm not sure if anyone has actually tried a formal proposal under the ZendX namespace however. Might be worth a short - maybe ask around on the #zftalk.dev channel on Fr

Re: [fw-general] Zend_Feed_Reader Categories

2009-10-24 Thread Bradley Holt
Pádraic, Thanks! Added as ZF-8144: http://framework.zend.com/issues/browse/ZF-8144 By the way, Zend_Feed_Reader has been very useful! Thanks, Bradley On Sat, Oct 24, 2009 at 9:22 PM, Pádraic Brady wrote: > Hi Bradley, > > Sure - it just didn't quite make the timeline for 1.9, and with 1.10 no

Re: [fw-general] What is the point of Zend_Form::filterName()?

2009-10-24 Thread Matthew Weier O'Phinney
-- Ralf Eggert wrote (on Thursday, 22 October 2009, 09:49 PM +0200): > > Actually, better: extend Zend_Form and override filterName() in your > > extending class. > > That is no problem at all. But since Zend_Form_Element has the identical > filterName() method I would need to extend Zend_Form_El

Re: [fw-general] Zend_View adapters

2009-10-24 Thread Matthew Weier O'Phinney
-- Pádraic Brady wrote (on Saturday, 24 October 2009, 06:27 PM -0700): > There are no plans that I'm aware of since there are something like a billion > template engines, well, maybe less than that ;). I'm not sure if anyone has > actually tried a formal proposal under the ZendX namespace however.