dreamjob/lib/Cake/Test/test_app/View/Posts/xml/index.ctp

7 lines
196 B
Plaintext
Raw Normal View History

2015-03-31 14:49:03 +02:00
<?php
$data = array('users' => array('user' => array()));
foreach ($users as $user) {
$data['users']['user'][] = array('@' => $user['User']['username']);
}
echo Xml::fromArray($data)->saveXml();