2008年10月31日星期五

[fw-mvc] namefile.json from Zend_Dojo_Data

hi
what is the best way to create a new file in the server using dojo_data?

Example:
$data = new Zend_Dojo_Data();
$data->setIdentifier('name');
$data->setLabel('label');
$data->addItems(array(
array('name'=> 'name01', 'label'=>'label01'),
array('name'=> 'name02', 'label'=>'label02'),
array('name'=> 'name03', 'label'=>'label03'),
));

I'd like to create a new file ics.json within $data in the path
of the server /public/user/ics.json.

Thanks
--
View this message in context: http://www.nabble.com/namefile.json-from-Zend_Dojo_Data-tp20266827p20266827.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: