[fw-general] ZendX ajaxlink() passing parameters

2010-05-27 Thread raj todkari
Hi, I would like to user ajaxlink() view helper to perform some action. My question is : How do I pass the values of other relevant html elment to the specified controller-action? My code is : // This value should be passed via ajaxlink() testElement"> a

Re: [fw-general] Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-27 Thread Саша Стаменковић
Still sometimes get PDOException with message 'SQLSTATE[42000] [1203] User *** already has more than 'max_user_connections' active connections :) Regards, Saša Stamenković On Wed, May 26, 2010 at 8:18 PM, Bill Karwin wrote: > > On May 26, 2010, at 4:11 AM, Thomas D. wrote: > > In theory, P

Re: [fw-general] Zend_Paginator and normalization of pageNumber

2010-05-27 Thread Bartosz Maciaszek
Hello, Ok, to avoid extending the class I decided to put this code in my model method: $paginator = Zend_Paginator::factory(...); $paginator->setCurrentPageNumber($page); return $page > $paginator->count() ? new ArrayObject : $paginator; Of course it is needed to execute additional SQL query (SE

[fw-general] Re: Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-27 Thread Thomas D.
Hallo, СЯшЯ СтЯменковић wrote: > Still sometimes get > > PDOException with message 'SQLSTATE[42000] [1203] User *** already has > more than 'max_user_connections' active connections As I said in the beginning of this discussion (and btw, we can say that this was the reason for your problem): Wh

Re: [fw-general] Re: Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-27 Thread Bill Karwin
On May 27, 2010, at 11:09 AM, Thomas D. wrote: When you are allowed to have 15 connections to your database server, you can serve 15 requests at the same time, when every request will establish 1 connection. I completely agree with Thomas. If you are getting the error of too many conne

[fw-general] Re: Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-27 Thread Thomas D.
Hi, Bill Karwin wrote: > I wrote the following on the February thread with Ulf Wendel that you > linked to, but I think it bears repeating: > > [...] > > Peter seems to say that the "overhead" of using prepared statements is > that they are 14.5% *faster* than using a non-prepared query >

Re: [fw-general] Re: Re: Saving many Zend_Db_Table_Rows in for loop

2010-05-27 Thread Саша Стаменковић
Sure, I'll monitor this, dont happen too often. Thanks. Regards, Saša Stamenković On Thu, May 27, 2010 at 8:27 PM, Thomas D. wrote: > Hi, > > Bill Karwin wrote: > > I wrote the following on the February thread with Ulf Wendel that you > > linked to, but I think it bears repeating: > > > > [...

[fw-general] Problem with form translation - strangle logs

2010-05-27 Thread Саша Стаменковић
Hi. i have in bootstrap protected function _initTranslate() { $translate = new Zend_Translate( Zend_Translate::AN_ARRAY, realpath(APPLICATION_PATH . '/../data/languages'), null, array( 'scan' => Zend_Translate::LOCALE_DIRECTORY, 'log' => $this->getResource('log'), 'logUntranslated' => true )

[fw-general] Re: Problem with form translation - strangle logs

2010-05-27 Thread Саша Стаменковић
Also, I noticed the labels that are not translated at all (not found in sr or en version of Zend_Form.php) are logged twice, ex: 2010-05-27T21:30:26+02:00 NOTICE (5): Untranslated message within 'en': Gorivo: 2010-05-27T21:30:26+02:00 NOTICE (5): Untranslated message within 'en': Gorivo: 2010-05-2

Re: Fwd: [fw-general] Re: Zend_Feed findFeeds don't find all feeds on a page

2010-05-27 Thread Pádraic Brady
Have you tried using Zend_Feed_Reader? If it has the same problem, create an issue for it and I'll look into it before the weekend. Paddy Pádraic Brady http://blog.astrumfutura.com http://www.survivethedeepend.com OpenID Europe Foundation Irish Representative _

Re: [fw-general] Re: Problem with form translation - strangle logs

2010-05-27 Thread James Carr
Саша Стаменковић wrote: Also, I noticed the labels that are not translated at all (not found in sr or en version of Zend_Form.php) are logged twice, ex: 2010-05-27T21:30:26+02:00 NOTICE (5): Untranslated message within 'en': Gorivo: 2010-05-27T21:30:26+02:00 NOTICE (5): Untranslated message wi

[fw-general] Re: Problem using HTTP Client Socket Adapter with SSL

2010-05-27 Thread Don Dwiggins
In case anyone should come to the previous message with a similar problem: I've given up on the Socket adapter, and have gone to the Curl adapter; it gives reasonable diagnostic messages, and I can use the curl command line tool for further debugging. I'm using a ZF-based web server that commu

Re: [fw-general] Re: Problem with form translation - strangle logs

2010-05-27 Thread Саша Стаменковић
Thanks, when it will be included into release? Regards, Saša Stamenković On Thu, May 27, 2010 at 10:52 PM, James Carr wrote: > Саша Стаменковић wrote: > >> Also, I noticed the labels that are not translated at all (not found in sr >> or en version of Zend_Form.php) are logged twice, ex: >> >>

[fw-general] Feeds

2010-05-27 Thread Daniel Latter
Hi all, I'm processing feeds with Zend_Feed and I am wondering how to get instant feed updates like Google reader? For example, I consume a feed from bbc.co.uk and get a pubDate for each item, but if I look in Google reader at same feed I can see that it has been/gets updated almost insta

Re: [fw-general] Re: Zend_Feed findFeeds don't find all feeds on a page

2010-05-27 Thread Daniel Latter
Hi, I did the test for Stefan, I will look and get back. On another note, when I am processing rss feeds the return value for the element will be a string value, but for the odd feed the return value is an array and i have ro use nodeValue, to get description value, Is this intended behav

Re: [fw-general] Re: Zend_Feed findFeeds don't find all feeds on a page

2010-05-27 Thread Daniel Latter
I've realised my question is moot because it's simplexml that's processing the XML, no zf. Soz. Dan On 27 May 2010, at 21:06, Pádraic Brady wrote: Have you tried using Zend_Feed_Reader? If it has the same problem, create an issue for it and I'll look into it before the weekend. Paddy

Re: [fw-general] Feeds

2010-05-27 Thread Bradley Holt
On Thu, May 27, 2010 at 7:42 PM, Daniel Latter wrote: > Hi all, > > I'm processing feeds with Zend_Feed and I am wondering how to get instant > feed updates like Google reader? > > For example, I consume a feed from bbc.co.uk and get a pubDate for each > item, but if I look in Google reader at sa

[fw-general] Zend Form - Radio

2010-05-27 Thread Meroe Kush
I'm embarrassed to have to post this question, but I'm pulling my hair out trying to figure out how to set the stored value of a Zend form radio option. It works just fine for drop downs and fields, but the radio option is defaulting to the zend form default (last option in the array). Anyo