[fw-general] ZF2 Db\ResultSet-toArray() algoritm

2012-03-26 Thread duke
why in this function we transform data instance of RowObjectInterface to array? Not only ResultSet object? That we remove advantage of object access in View (like echo $row-id). code: /** * Cast result set to array of arrays * * @return array * @throws

Re: [fw-general] ZF vs Yii/CodeIgniter Framework

2012-03-26 Thread Artur Bodera
On Sun, Mar 25, 2012 at 11:21 AM, AmirBehzad Eslami behzad.esl...@gmail.com wrote: Dear List, I've used Zend Framework for almost 2 years in several projects. Now I'm entering a new company where the developers are asked to choose a web framework. We're 3 developers: One knows zf One

[fw-general] Re: Zend_Service_Amazon::itemSearch() not holding results

2012-03-26 Thread 2ndak
Hi Drew, I came across the same problem. Have you found the solution? Any pointers would be greatly appreciated! -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Zend-Service-Amazon-itemSearch-not-holding-results-tp3508458p4502842.html Sent from the Zend

[fw-general] Re: ZF2x Magazine -- launch date 1st May 2012

2012-03-26 Thread macest
Your registration page has a nice user friendly error message, might want to turn off the displayExceptions flag on production: A 404 error occurred Page not found. The requested controller could not be mapped to an existing controller class. Controller: Exception: Class index could not be

RE: [fw-general] ZF vs Yii/CodeIgniter Framework

2012-03-26 Thread Wilson Revehl (Go Media Inc.)
Of course any decent PHP developer can take advantage of any framework/class library. That's the point of them, to encapsulate purposes so they can be easily be reused. They help keep teams architecture on track and reduce redundancy. But that certainly doesn't mean redundancy can't crop up. I

RE: [fw-general] ZF vs Yii/CodeIgniter Framework

2012-03-26 Thread Wilson Revehl (Go Media Inc.)
I take back what I said about YII not having as large of a community as the other two. Yii does have plenty of users a ton of forum activity. It is just hard to know what the best examples are on a forum. I like how you can find a lot of ZF and CI in other channels like StackOverflow and

Re: [fw-general] ZF2 Db\ResultSet-toArray() algoritm

2012-03-26 Thread Ralph Schindler
In general, if you have a toArray() method, it is generally accepted that the return value of that method will be a PHP type array. If you are wanting to get the objects in your view, simply iterate over the ResultSet. The default return type in the default ResultSet is a RowObject which is

[fw-general] Re: ZF2 Db\ResultSet-toArray() algoritm

2012-03-26 Thread duke
I know but you suggestion: foreach ($resultSet as $row) {} as I've wrote, will emit mysql out of sync error when another module (or event) use db driver. To resolve that we must loop at resultSet and get data, but not convert all row object to array. On 26/03/12 17:12, ralphschindler [via

Re: [fw-general] Re: ZF2 Db\ResultSet-toArray() algoritm

2012-03-26 Thread Oscar
On Mon Mar 26 10:37:14 2012, duke wrote: I know but you suggestion: foreach ($resultSet as $row) {} as I've wrote, will emit mysql out of sync error when another module (or event) use db driver. To resolve that we must loop at resultSet and get data, but not convert all row object to array.

Re: [fw-general] Re: ZF2 Db\ResultSet-toArray() algoritm

2012-03-26 Thread Ralph Schindler
You should be choosing the proper mysql extension based on your needs. Mysqli is great for scripts that do alot of data-warehouse type of iterations (due to its forward-only moving cursor by default). PDO on the other hand is great for object model kind of stuff because by default, it buffers

[fw-general] Re: ZF2 Db\ResultSet-toArray() algoritm

2012-03-26 Thread duke
Thanks Ralph, It's work. Additional question: If I use PDO and do second query where will be store data at sql server memory? If so, otherwise some where it will be use memory. So which memory will be use better Sql Server or PHP? On 26/03/12 18:05, ralphschindler [via Zend Framework