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

7 lines
196 B
Plaintext
Raw Normal View History

2014-02-18 12:10:29 +01:00
<?php
$data = array('users' => array('user' => array()));
foreach ($users as $user) {
$data['users']['user'][] = array('@' => $user['User']['username']);
}
echo Xml::fromArray($data)->saveXml();