[fw-general] Zend_Http_Client and utf-8

2009-09-22 Thread Саша Стаменковић
Hi. I'm crawling this site http://www.mojauto.rs using Zend_Http_Client. Strange thing is that I get messed Serbian characters (č.ć,ž...), probably encoding problem. I tried to explicitly set utf-8 with $client-setHeaders('Content-type: text/html; charset=utf-8'); but same problem occurs. Any

Re: [fw-general] Anyone having troubles with random empty captchas??

2009-09-22 Thread alayn
Nobody is using Debian and Captchas?? Just to know if you are not having the same issue... El dom, 20-09-2009 a las 07:18 -0700, Alayn Gortazar escribió: Hi everybody, I'm using a captcha element and I'm having some curious behaviour, as it randomly shows empty captchas (image is created,

Re: [fw-general] getOption('options') in Bootstrap stopped working in 1.9.2

2009-09-22 Thread Ivan Krechetov
I guess there's no need, as far as my code works just fine with ZF 1.9.3. So, 1.9.1 - works 1.9.2 - doesn't work 1.9.3 - works again Matthew Weier O'Phinney-3 wrote: Can you post a succinct example of code that doesn't work? It should work fine, but if it isn't, I'd like to investigate

[fw-general] Zend_Http_Client and utf-8

2009-09-22 Thread umpirsky
Hi. I'm crawling this site http://www.mojauto.rs using Zend_Http_Client. Strange thing is that I get messed Serbian characters (č.ć,ž...), probably encoding problem. I tried to explicitly set utf-8 with $client-setHeaders('Content-type: text/html; charset=utf-8'); but same problem occurs. Any

[fw-general] PDO_MYSQL vs. Pdo_Mysql ZF 1.9.3

2009-09-22 Thread Jonathan Maron
This modification is important to note in ZF 1.9.3: http://framework.zend.com/issues/browse/ZF-5606 The change will probably break some (older) applications. Correct: $db = Zend_Db::factory('Pdo_Mysql', $params); Incorrect (as of ZF 1.9.3) $db = Zend_Db::factory('PDO_MYSQL', $params); There

[fw-general] Re: [fw-db] Modeling MySQL enum

2009-09-22 Thread Benjamin Eberlei
You shouldnt use Mysql ENUMS, they have some ugly properties. Any change in the list of allowed fields requires a complete rebuild of the table, which can take ages. Using a Char and filtering in the application is much better! greets, Benjamin On Tue, 22 Sep 2009 02:27:02 -0700 (PDT),

Re: [fw-general] Re: [fw-db] Modeling MySQL enum

2009-09-22 Thread Саша Стаменковић
Idea is to find the way how to use them in PHP. Running away from the problem is not the solution ;) Regards, Saša Stamenković On Tue, Sep 22, 2009 at 11:59 AM, Benjamin Eberlei kont...@beberlei.dewrote: You shouldnt use Mysql ENUMS, they have some ugly properties. Any change in the list

Re: [fw-general] Re: [fw-db] Modeling MySQL enum

2009-09-22 Thread till
On Tue, Sep 22, 2009 at 12:07 PM, Саша Стаменковић umpir...@gmail.com wrote: Idea is to find the way how to use them in PHP. Running away from the problem is not the solution ;) Regards, Saša Stamenković What Benjamin meant to say is that changing an ENUM is a very expensive operation on the

Re: [fw-general] Re: [fw-db] Modeling MySQL enum

2009-09-22 Thread Саша Стаменковић
You mean dynamic modeling (DESCRIBE TABLE and load in PHP), no need, I think I'll just have class with constants and one method to return them as array (using reflection) and thats it. Not really an enum, but will do the job. Regards, Saša Stamenković On Tue, Sep 22, 2009 at 12:50 PM, till

Re: [fw-general] Re: [fw-db] Modeling MySQL enum

2009-09-22 Thread till
On Tue, Sep 22, 2009 at 12:56 PM, Саша Стаменковић umpir...@gmail.com wrote: You mean dynamic modeling (DESCRIBE TABLE and load in PHP), no need, I think I'll just have class with constants and one method to return them as array (using reflection) and thats it. Not really an enum, but will do

Re: [fw-general] Re: [fw-db] Modeling MySQL enum

2009-09-22 Thread Саша Стаменковић
Didn't know that really. I'm working on pretty large project and there are enums all over tables, works fine. Will check ;) Regards, Saša Stamenković On Tue, Sep 22, 2009 at 1:04 PM, till klimp...@gmail.com wrote: On Tue, Sep 22, 2009 at 12:56 PM, Саша Стаменковић umpir...@gmail.com wrote:

Re: [fw-general] Zend_Http_Client and utf-8

2009-09-22 Thread Саша Стаменковић
I monitored firefox headers with live HTTP headers when visiting this site, and it sends Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 when I do the same, I still get wrong chars :( Regards, Saša Stamenković On Tue, Sep 22, 2009 at 10:49 AM, umpirsky umpir...@gmail.com wrote: Hi. I'm

Re: [fw-general] Stylistic question - controller actions vs. context switches?

2009-09-22 Thread Matthew Weier O'Phinney
-- Cameron themsel...@gmail.com wrote (on Tuesday, 22 September 2009, 12:10 PM +0800): Hi everyone, I just wanted to see if anyone else had had a good long think about this sort of thing before I decided one way or the other. Basically I have been playing with the context switch action

Re: [fw-general] Zend_Http_Client and utf-8

2009-09-22 Thread Саша Стаменковић
Hehum, in Zend_Dom_Query #177 $domDoc = new DOMDocument; it should be $domDoc = new DOMDocument('1.0', 'utf-8'); or sth like that. Am I right?!?!? Noticed that characters are messed after I do Zend_Dom_Query::query() on response body, so, problem is probably in Zend_Dom_Query. Anyway, fixing

[fw-general] DataGrid

2009-09-22 Thread Kyle Spraggs
I was curious what everyone is using for DataGrids. I am aware of http://petala-azul.com/blog/ as well as http://code.google.com/p/zend-framework-datagrid/ and there is also the possibility of Dojo Grids. Any input would be appreciated. -- Kyle Spraggs (SpiffyJr) http://www.spiffyjr.me

[fw-general] mod_rewrite and Zend Framework

2009-09-22 Thread howard chen
Hello, I have a zend framework which has the following path: http://www.example.com/foo/echo But in the apache mod_rewrite, I want to rewrite something like http://www.example.com/bar/echo RewriteRule ^/bar/echo /foo/echo ... other ZFW rewrite rule ... ZFW keep saying bar is not a valid

Re: [fw-general] Zend_Http_Client and utf-8

2009-09-22 Thread Саша Стаменковић
There is already issue http://framework.zend.com/issues/browse/ZF-3938... Regards, Saša Stamenković On Tue, Sep 22, 2009 at 3:08 PM, Саша Стаменковић umpir...@gmail.comwrote: Hehum, in Zend_Dom_Query #177 $domDoc = new DOMDocument; it should be $domDoc = new DOMDocument('1.0', 'utf-8'); or

Re: [fw-general] DataGrid

2009-09-22 Thread Matthew Weier O'Phinney
-- Kyle Spraggs the...@spiffyjr.me wrote (on Tuesday, 22 September 2009, 08:10 AM -0500): I was curious what everyone is using for DataGrids. I am aware of http://petala-azul.com/blog/ as well as http://code.google.com/p/zend-framework-datagrid/ and there is also the possibility of Dojo

Re: [fw-general] Split controller actions into multiple classes

2009-09-22 Thread Ryan Chan
Hello, On Mon, Sep 21, 2009 at 9:55 PM, Matthew Weier O'Phinney matt...@zend.com wrote: If it is repetitive presentation logic you could sub-class the Zend_Controller_Action or create action helpers if the repeating logic are cross cutting concerns. Keep in mind the saying is fat model thin

Re: [fw-general] Zend_Http_Client and utf-8

2009-09-22 Thread till
On Tue, Sep 22, 2009 at 3:18 PM, Саша Стаменковић umpir...@gmail.com wrote: There is already issue http://framework.zend.com/issues/browse/ZF-3938... Regards, Saša Stamenković Maybe you can write a patch and attach it to the issue. That generally helps getting it fixed ASAP. Till

Re: [fw-general] Zend_Http_Client and utf-8

2009-09-22 Thread Саша Стаменковић
I'm trying... :P Regards, Saša Stamenković On Tue, Sep 22, 2009 at 3:40 PM, till klimp...@gmail.com wrote: On Tue, Sep 22, 2009 at 3:18 PM, Саша Стаменковић umpir...@gmail.com wrote: There is already issue http://framework.zend.com/issues/browse/ZF-3938. .. Regards, Saša Stamenković

Re: [fw-general] PDO_MYSQL vs. Pdo_Mysql ZF 1.9.3

2009-09-22 Thread Ralph Schindler
This is correct. In future releases of Zend_Db we'll be moving away from the confined naming schemed required by Zend_Db::factory(). The problem is (as noted by many developers in the issue tracker), that they do not want the factory to assume they have named their classes with the

Re: [fw-general] configure zf.sh, error message can't find zf.php, Mac, Leopard

2009-09-22 Thread Ralph Schindler
Hmm, it sounds like you cannot find the php binary. Are you sure its on your system? I have leopard, but have forgone the apple provided one b/c they have not configured it with all the proper amenities that I like to have inside my php stack. Typically, PHP can be found in /usr/bin/php.

Re: [fw-general] Zend_Tool with PHP 5.3

2009-09-22 Thread Ralph Schindler
I have not seen this issue. It is hard to diagnose why it would be attempting to load those files. I'll have to do more 5.3 testing with symbolic links to see what might be going wrong. This week I'll be doing a massive amount of work on Zend_Tool, and will likely have an answer for you by

[fw-general] Zend Framework 1.9.3 Released

2009-09-22 Thread Matthew Weier O'Phinney
The Zend Framework team is pleased to announce the immediate availability of the 1.9.3 release. This release is the third maintenance release in the 1.9 series. Almost 100(!) issues have been resolved for this release, covering more than 40(!) different components. You may download it from the

RE: [fw-general] mod_rewrite and Zend Framework

2009-09-22 Thread Vincent de Lau
If it was using the rewritten URI, it would use be using index.php. I think you should add a custom route or use: RewriteRule ^/bar/echo /foo/echo [N] I'm not sure it would work though, you should try for yourself. http://httpd.apache.org/docs/2.2/en/mod/mod_rewrite.html#rewriterule Vincent

Re: [fw-general] Zend_Tool with PHP 5.3

2009-09-22 Thread Jonathan Maron
Hello Ralph Thanks for your response. If I cd into /usr/share/ZendFramework-1.9.2/bin and then run zf.sh, I get exactly the same results. I would therefore say that the issue is not related to symbolic links. The behavior is the same with ZF 1.9.3. Jonathan On Tue, Sep 22, 2009 at 4:42

Re: [fw-general] PDO_MYSQL vs. Pdo_Mysql ZF 1.9.3

2009-09-22 Thread till
On Tue, Sep 22, 2009 at 11:39 AM, Jonathan Maron jonathan.a.ma...@gmail.com wrote: This modification is important to note in ZF 1.9.3: http://framework.zend.com/issues/browse/ZF-5606 The change will probably break some (older) applications. Correct: $db = Zend_Db::factory('Pdo_Mysql',

[fw-general] Issues with Zend_Db_Statement::_stripQuoted

2009-09-22 Thread Vincent de Lau
Hi all, Last week I ran into a couple of issues with Zend_Db_Statement::_stripQuoted(). I've created an issue in the tracker: http://framework.zend.com/issues/browse/ZF-7911 and mailed the problem to the database list, but got no response yet. The issues to address: - a segfault within

Re: [fw-general] Re: [fw-db] Modeling MySQL enum

2009-09-22 Thread Hector Virgen
I can't agree with the expensive process reasoning. Generally, the values of the enums will not change unless a new feature is rolled out that needs a new enum value or if the table gets restructured completely. In most tables, neither of the above scenarios take place very often (if at all).

Re: [fw-general] PDO_MYSQL vs. Pdo_Mysql ZF 1.9.3

2009-09-22 Thread Matthew Weier O'Phinney
-- till klimp...@gmail.com wrote (on Tuesday, 22 September 2009, 05:09 PM +0200): On Tue, Sep 22, 2009 at 11:39 AM, Jonathan Maron jonathan.a.ma...@gmail.com wrote: This modification is important to note in ZF 1.9.3: http://framework.zend.com/issues/browse/ZF-5606 The change will

Re: [fw-general] PDO_MYSQL vs. Pdo_Mysql ZF 1.9.3

2009-09-22 Thread till
On Tue, Sep 22, 2009 at 5:46 PM, Matthew Weier O'Phinney matt...@zend.com wrote: -- till klimp...@gmail.com wrote (on Tuesday, 22 September 2009, 05:09 PM +0200): On Tue, Sep 22, 2009 at 11:39 AM, Jonathan Maron jonathan.a.ma...@gmail.com wrote: This modification is important to note in ZF

Re: [fw-general] PDO_MYSQL vs. Pdo_Mysql ZF 1 .9.3

2009-09-22 Thread Benjamin Eberlei
sorry but that i dont understand. The factory makes certain assumptions about what is possible and what not in creating an adapter. Changing the assumptions is a B/C break. Of course its a bug that ZendX Firebird cannot be loaded from the previous assumptions but that is not a valid cause to

[fw-general] ZF 1.9.3 and phpunit 3.4.0 zf_tool problem

2009-09-22 Thread Ladislav Prskavec
If run zf tool: zf version Fatal error: Cannot redeclare class phpunit_framework_testsuite_dataprovider in /usr/local/zend/share/pear/PEAR/PHPUnit/Framework/TestSuite/DataProvider.php on line 64 Using Ubuntu 9.04 with Zend Server CE 4.0.5 (php 5.2.10, tested zf 1.9.2 and 1.9.3 )

Re: [fw-general] PDO_MYSQL vs. Pdo_Mysql ZF 1 .9.3

2009-09-22 Thread Benjamin Eberlei
a BC change for this bug is simple, just exclude adapterNamespace from the word-wise ucwords reasoning and append it to the canonical database adapter name AFTER the changes: http://framework.zend.com/svn/framework/standard/trunk/library/Zend/Db.php One should just take the adapter namespace

Re: [fw-general] ZF 1.9.3 and phpunit 3.4.0 zf_tool prob lem

2009-09-22 Thread Benjamin Eberlei
do you have phpunit on your include path twice? On Tue, 22 Sep 2009 18:06:15 +0200, Ladislav Prskavec ladis...@prskavec.net wrote: If run zf tool: zf version Fatal error: Cannot redeclare class phpunit_framework_testsuite_dataprovider in

Re: [fw-general] PDO_MYSQL vs. Pdo_Mysql ZF 1.9.3

2009-09-22 Thread Matthew Weier O'Phinney
-- Benjamin Eberlei kont...@beberlei.de wrote (on Tuesday, 22 September 2009, 06:02 PM +0200): sorry but that i dont understand. The factory makes certain assumptions about what is possible and what not in creating an adapter. Changing the assumptions is a B/C break. Of course its a bug

Re: [fw-general] How to bootstrap application in testing environment

2009-09-22 Thread Sudheer Satyanarayana
Again, this is a wild stab in the dark, but I have: Zend_Session::$_unitTestEnabled = true; in my TestHelper.php (run at the start of testing), which magically fixes a lot of sessions related test problems. That fixed the problem. Thanks. -- With warm regards, Sudheer. S Business:

Re: [fw-general] PDO_MYSQL vs. Pdo_Mysql ZF 1.9.3

2009-09-22 Thread till
On Tue, Sep 22, 2009 at 6:28 PM, Matthew Weier O'Phinney matt...@zend.com wrote: -- Benjamin Eberlei kont...@beberlei.de wrote (on Tuesday, 22 September 2009, 06:02 PM +0200): sorry but that i dont understand. The factory makes certain assumptions about what is possible and what not in

Re: [fw-general] ZF 1.9.3 and phpunit 3.4.0 zf_tool problem

2009-09-22 Thread Raphael Stolt
Hi Benjamin, Can you provide some tips on how to catch if PHPUnit 3.4.0 is twice in the include_path and on how to remove it it this is the case? As I had the same problem and after reverting to one release before PHPUnit 3.4.0 the problem was gone. Cheers, Raphael 2009/9/22 Benjamin Eberlei

Re: [fw-general] Issues with Zend_Db_Statement::_stripQuoted

2009-09-22 Thread Ralph Schindler
Vincent de Lau wrote: Hi all, Last week I ran into a couple of issues with Zend_Db_Statement::_stripQuoted(). I've created an issue in the tracker: http://framework.zend.com/issues/browse/ZF-7911 and mailed the problem to the database list, but got no response yet. The issues to address: - a

Re: [fw-general] DataGrid

2009-09-22 Thread Matthew Ratzloff
Ext JS (primarily Ext.grid.GridPanel). We have some pretty stringent needs for data grid functionality, and--with plugins--this meets our needs. I've written quite a bit of code for facilitating communication with the back end which perhaps I'll release at some point in early 2010. -Matt On

[fw-general] grade zend framework and compared to Symfony and ASP.NET MVC

2009-09-22 Thread aoohralex
Sry for my English – it isn't my national language. I have started learn ZF because I wanted to learn something new. If we have range 0 – 10. My knowledge ZF is 1 – I can make basic things in ZF – connect to database, queries insert/update/delete, basic zend forms, authorization, use jquery and

Re: [fw-general] grade zend framework and compared to Symfony and ASP.NET MVC

2009-09-22 Thread Jurian Sluiman
Uuhm, you don't have to use the framework. There are many choices besides ZF you're not using either. So why don't you leave the ZF where it is and stop using it? You're not buying a car you don't like, are you? Please stop spamming the list with your nonsense. -- Jurian Sluiman Soflomo.com Op

Re: [fw-general] grade zend framework and compared to Symfony and ASP.NET MVC

2009-09-22 Thread Alexander Steshenko
Zend Framework provides flexibility. That's the point. You're probably not good enough to understand that. So I think it's one of the moments when you need to go somewhere else and learn something new. On Tue, Sep 22, 2009 at 10:30 PM, aoohralex aoohra...@gmail.com wrote: Sry for my English –

Re: [fw-general] grade zend framework and compared to Symfony and ASP.NET MVC

2009-09-22 Thread Diego Potapczuk
You made some good points, i agree on some, but, isnt Symfony a PHP Framework? ::: Diego Potapczuk »» NEAD - Núcleo de Educação a Distância »» SENAI-BA »» Tel: (71) 3287-8343 / (71) 9144-3062 »» http://www.diegoliveira.com.br On Tue, Sep 22, 2009 at 3:30 PM, aoohralex aoohra...@gmail.com

Re: [fw-general] grade zend framework and compared to Symfony and ASP.NET MVC

2009-09-22 Thread Daniel Latter
*I can make basic things in ZF – connect to database, queries insert/update/delete, basic zend forms, authorization, use jquery and layout in zend, controllers, views.* Sounds good if you can do all that and you say you are only at grade 1, says something about ZF to me. Thanks Daniel Latter

Re: [fw-general] grade zend framework and compared to Symfony and ASP.NET MVC

2009-09-22 Thread Pádraic Brady
a) ZF is a framework - though it may have been deceiving me all these years... b) Zend_Db is not Doctrine, it's not even an ORM. c) You can use Doctrine with ZF. I kid you not. d) Nothing you said indicated that PHP is behind. Take a peek at how Rails+merb are evolving. Flexibility is key. e) PHP

Re: [fw-general] Zend Tool errors on Windows after upgrading to 1.9

2009-09-22 Thread Artsemis
admirau wrote: forgot to mention, that the project is created, and the profile exists. -- regards takeshin I know this is a little late but hopefully someone else will find this useful: http://bit.ly/dd0na -- View this message in context:

Re: [fw-general] [Zend_Applicaton] I can't make module

2009-09-22 Thread Artsemis
sayusi wrote: Hi all! I need some help because I can' t figure out what could be the problem. I decided I see what is this Zend_Application and its looks like it will be part of my life if I want to work with ZF in further time. I'm using Windows XP with wampserver (php-5.2.6).

[fw-general] spaces in url with Zend_http

2009-09-22 Thread Derk
Hello, Is it true that Zend_Http can't deal with spaces in the uri? I got some exceptions with the message ... is not a valid HTTP path. I know spaces in urls are not valid, but a site serves some redirects with spaces in the location. Firefox and IE don't have a problem with it, they do maybe

Re: [fw-general] spaces in url with Zend_http

2009-09-22 Thread Jurian Sluiman
Hi, Spaces are indeed not a valid uri so an exception is thrown. If you encode your spaces to %20, it will probably work (so if a site does a redirect to an uri with spaces, follow the uri with the spaces encoded). Regards, Jurian -- Jurian Sluiman Soflomo.com Op Tuesday 22 September 2009

Re: [fw-general] spaces in url with Zend_http

2009-09-22 Thread Benjamin Eberlei
On Tuesday 22 September 2009 09:38:37 pm Derk wrote: Hello, Is it true that Zend_Http can't deal with spaces in the uri? I got some exceptions with the message ... is not a valid HTTP path. I know spaces in urls are not valid, but a site serves some redirects with spaces in the location.

Re: [fw-general] grade zend framework and compared to Symfony and ASP.NET MVC

2009-09-22 Thread David Mintz
Yeah but ZF has the most incredibly patient, tolerant, indulgent, forgiving community of users -- perhaps too much so! Why do I keep reading these threads? Because I am looking for a good flamewar, but it's so hard to bait these equanimous ZFers that none is forthcoming. It's getting really

[fw-general] Zend Framework 1.9.3PL1 Released

2009-09-22 Thread Matthew Weier O'Phinney
The Zend Framework team is pleased to announce the immediate availability of the 1.9.3PL1 release. This release corrects a BC break found in the 1.9.3 release, and should be used in its place. You may download it from the Zend Framework site: http://framework.zend.com/download/latest For a

Re: [fw-general] grade zend framework and compared to Symfony and ASP.NET MVC

2009-09-22 Thread Cameron
You seem to be overlooking the entire concept behind Zend. Many frameworks are designed for people who want their hands held through the application building process, Zend is designed for professional developers who know what they are doing and all they want are a few reliable and standardized

Re: [fw-general] DataGrid

2009-09-22 Thread Cameron
Dojo grids. I've actually just moved a lot of my functionality over to Dojo JsonRestStore so I can do in-grid editing, it's not completed yet, but so far it is coming together really smoothly. On Tue, Sep 22, 2009 at 9:10 PM, Kyle Spraggs the...@spiffyjr.me wrote: I was curious what everyone is

Re: [fw-general] grade zend framework and compared to Symfony and ASP.NET MVC

2009-09-22 Thread neobeacon
I'm a student and I'm really new for Zend Framework.Yes,PHP and Zend is little bit behind than some other languages and Frameworks.But they are always easy to learn and have appropriate power they want and especially clean.Zend also open source,If you have any idea how would be this in future,I

[fw-general] Zend_Db_Profiler should be working but isn't...

2009-09-22 Thread Cameron
How can I test this one further? It *used* to work just fine, but since I reworked to Zend_Application formats, it seems to have stopped, and the regular methods of turning it on don't seem to result in any output. I've tried turning it on both in application.ini and in the Bootstrap. In

Re: [fw-general] Split controller actions into multiple classes

2009-09-22 Thread Ralph Schindler
I would first consider creating some protected methods within that controller to isolate some of your more repeated code. On first glance, a method creating $params, might make sense. In general, I dont think your controller is out of the ordinary, nor would I say it is especially long. I

Re: [fw-general] Re: [fw-db] Modeling MySQL enum

2009-09-22 Thread Саша Стаменковић
Good one Hector, thanks. Regards, Saša Stamenković On Tue, Sep 22, 2009 at 5:12 PM, Hector Virgen djvir...@gmail.com wrote: I can't agree with the expensive process reasoning. Generally, the values of the enums will not change unless a new feature is rolled out that needs a new enum value