[fw-general] Re: ResultSet#toArray() doesn't return the data array

2013-04-03 Thread automatix
I've took a look into the method code (https://github.com/zendframework/zf2/blob/master/library/Zend/Db/ResultSet/AbstractResultSet.php#L254). Now I've implemented the method toArray() in my mapper class, (which the resultset prototype is based on) and it works. But I'm still not getting, where th

[fw-general] ResultSet#toArray() doesn't return the data array

2013-04-03 Thread automatix
Hello! When I try to get the selected data from the Zend\Db\ResultSet\ResultSet as array, an exception is thrown: When I iterate through the ResultSet or call ResultSet#current(), I can access the retrieved data. How to make Zend\Db\ResultSet\ResultSet#toArray() work as expected? -- View th

[fw-general] Zend form isValid returns false and empty array is returned.

2013-04-03 Thread jamiemc25
Hi, I'm just wondering if someone can help me. I have a registration form like so which doesn't seem to wnt to work: setAttribute('method', 'post'); $this->add(array( 'type' => 'text', 'name' => 'title', 'options' => array(

Re: [fw-general] Problem with validator factory

2013-04-03 Thread Matthew Weier O'Phinney
On Sun, Mar 31, 2013 at 10:42 PM, rodrigo_00 wrote: > Hi :) i have this in my module.config.php: > > 'validators' => array( > 'factories' => array( > 'Application\Validator\SecretCode' => function($sm) { > $validator = new \Application\Validator\SecretCode; > >

Re: [fw-general] First optional routing segment acts as mandatory one for child routes

2013-04-03 Thread Ben Scholzen 'DASPRiD'
As soon as you are assembling child routes, all optional parts of a parent route become mandatory. On 02.04.2013 11:02, Ilya wrote: > Hi all! > > I have the following routing definition > > 'admin_default' => array( > 'type'=> 'segment', > 'options' => array( > 'route'=>

[fw-general] Zend_Feed_Reader Extension Won't Load For Some Reason

2013-04-03 Thread i_banks
Hello community. I need to load a Zend_Feed_Reader extension to read an rss xml feed with specific namespaced elements. i.e. ''. I believe I've followed the manual step by step in order to do so. my extension class is as follows: class Sports_FeedReader_Extension_SportsFeed_Entry extends Zen