gzamboni wrote
> yes i do but the problem is :
> i solved that but my problem now is to pass data from index.phtml to the
> indexaction controller.
> is that possible?
> can you show me it with a simple example?
> thz again.

You're getting an empty array because your albums var passed to the view is
a ResultSet object. You would need to extract from it an array of Album
Models first.
Try something like that:
       foreach ($this->getAlbumTable()->fetchAll() as $album) {
            $albums[] = $album;
        }

        $result = new JsonModel(array(
                    'albums' => $albums,
                    'success'=>true,
            ));
            return $result;




-----
Cheers,
--
Luke Mierzwa
--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/ZF2-JqGrid-integration-tp4656925p4656951.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to