Re: [fw-general] A Zend_Db Adapter for ext/mysql (mysql_*)

2009-06-14 Thread Kendall Bennett
I would be interested in this, as it would solve the problem I described in my other email where the prepared statements bypass the query cache ... Regards, Kendall Bennett, CEO A Main Hobbies 424 Otterson Drive, Suite 160 Chico, CA 95928 1-800-705-2215 (Toll-Free) 1-530-894-0797 (Int'l & Local)

Re: [fw-general] A Zend_Db Adapter for ext/mysql (mysql_*)

2009-06-14 Thread Kendall Bennett
Hmm, Well, I guess I am stuck at directly calling exec() right now, and bypassing the query() function. After changing to either the Mysqli adapter (or hacking the PDO adapter to call exec when the are no parameters), I get a segfault when I run phpunit using the code I am developing. Not entir

Re: [fw-general] A Zend_Db Adapter for ext/mysql (mysql_*)

2009-06-14 Thread Kendall Bennett
This actually brings up an issue I just ran into today. The first problem I found appears to be a bug in the PDO::MySQL adapter, in that certain queries passed to it with parameter binding characters (?) will fail even if you are not binding parameters to the statement. It fails saying that the

[fw-general] Get Zend_Form_Element validators as array

2009-06-14 Thread admirau
Is there any smart way to retrieve element validators as an array (like in .ini)? I'd like to return validator options as an JSON object to the JavaScript. Most of the properties of Zend_Validate are protected… -- regards takeshin -- View this message in context: http://www.nabble.com/Get-Zen

Re: [fw-general] A Zend_Db Adapter for ext/mysql (mysql_*)

2009-06-14 Thread till
Don't want to hijack this thread -- but we recently developed an ext/mysqli-based adapter which doesn't use prepared statements. Does anyone have any interest in the code -- I'd look into opensourcing it then. Till On Sun, Jun 14, 2009 at 5:52 PM, Matthew Ratzloff wrote: > Sure.  I never said it

Re: [fw-general] A Zend_Db Adapter for ext/mysql (mysql_*)

2009-06-14 Thread Matthew Ratzloff
Sure. I never said it should be Zend namespaced, you know. ;-) -Matt On Sat, Jun 13, 2009 at 4:02 PM, Tobias Gies wrote: > Hi, > > Matthew, I don't think this should be included in the Zend namespace. > Ben, you have done some excellent work on this adapter, I think it's > great, but in my opin

Re: [fw-general] How to escape forward slash in paginator?

2009-06-14 Thread Matthew Ratzloff
I assume you mean you're using Form's Filter integration. Look into using Zend_Filter_Callback or writing your own. It's about the same level of effort either way. These pages should help: http://framework.zend.com/manual/en/zend.form.elements.html#zend.form.elements.filters http://framework.zen

[fw-general] Lucene - search with AND

2009-06-14 Thread Simeon Goranov
Hello, My question is related with Lucene search. I'm trying to search all of the document fields for a given needle (which is user defined) and I want at the same time to search only part of the documents, which belongs to one of the clients. Bellow is my code, which I use to search $this->search

[fw-general] Re: [fw-auth] Re: [fw-general] Problem with Zend_Acl

2009-06-14 Thread Abraham Block
I wrote a workaround on my blog http://www.aviblock.com/blog/2009/03/19/acl-in-zend-framework/#comments On Sun, Jun 14, 2009 at 5:54 AM, Mon Zafra wrote: > Ooops, read the date incorrectly. It's actually 23 months old :p > >-- Mon > > > > On Sun, Jun 14, 2009 at 5:52 PM, Mon Zafra wrote: >

[fw-general] Re[fw-general] sources with out Namespaces

2009-06-14 Thread iceangel89
can i have resources without namespaces? like i may not want my Models to have namespaces so i can refer to it by $model1->findParentModel2() rather than $model1->findParentApp_Model_Model2() i am not sure if the syntax is right, but u get what i mean -- View this message in context: http:

Re: [fw-general] How to escape forward slash in paginator?

2009-06-14 Thread Deepak
On Sat, Jun 13, 2009 at 10:47 PM, Matthew Ratzloff wrote: > This is an Apache issue (or perhaps "feature", as it is intended > behavior). It is possible to disable this, but you should consider > simply filtering out the forward slash character from searches or > passing the search in the query st

Re: [fw-general] Problem with Zend_Acl

2009-06-14 Thread Mon Zafra
Ooops, read the date incorrectly. It's actually 23 months old :p -- Mon On Sun, Jun 14, 2009 at 5:52 PM, Mon Zafra wrote: > That's how I expected assertions to work as well. Transforming the roles > and resources into normal Zend_Acl_Role/Resource really limits the > usefulness of assertion

Re: [fw-general] Problem with Zend_Acl

2009-06-14 Thread Mon Zafra
That's how I expected assertions to work as well. Transforming the roles and resources into normal Zend_Acl_Role/Resource really limits the usefulness of assertions. This issue is exactly two years old now. There are some workarounds in http://framework.zend.com/issues/browse/ZF-1721 and related is

Re: [fw-general] Internal Server Error using Zend_Feed

2009-06-14 Thread admirau
Customize wrote: > > I have found a tutorial on this http://www.alexatnet.com/node/11 and > moved my logic in the controller accordingly instead of view. Now I am > getting absolutely nothing. Looking at view source gives me > > Transitional//EN"> > > > Howev

[fw-general] Problem with Zend_Acl

2009-06-14 Thread Stefan Gehrig
Dear all, I just started to use Zend_Acl for authorization in one of our projects but either I do have some real problem understanding the use of assertions or there is some flaw in the assertion design. I don't know if some other developers stumbled upon this issue - perhaps it's just that I don

Re: [fw-general] A Zend_Db Adapter for ext/mysql (mysql_*)

2009-06-14 Thread Benjamin Eberlei
This is my opinion also. Its useful for legacy reasons, but shouldn't be included in ZF standard library, because of ext/mysql being outdated. greetings, Benjamin On Sunday 14 June 2009 01:02:26 am you wrote: > Hi, > > Matthew, I don't think this should be included in the Zend namespace. > Ben,