/
home
/
desid573
/
book.familycab.com.au
/
pdd
/
lib
/
Cake
/
Test
/
test_app
/
View
/
Posts
/
json
/
/home/desid573/book.familycab.com.au/pdd/lib/Cake/Test/test_app/View/Posts/json
mkdir
upload
Name
Size
Mode
Actions
index.ctp
311
0644
edit
dl
rm
Edit:
/home/desid573/book.familycab.com.au/pdd/lib/Cake/Test/test_app/View/Posts/json/index.ctp
(311B)
<?php $paging = isset($this->Paginator->options['url']) ? $this->Paginator->options['url'] : null; $formatted = array( 'user' => $user['User']['username'], 'list' => array(), 'paging' => $paging, ); foreach ($user['Item'] as $item) { $formatted['list'][] = $item['name']; } echo json_encode($formatted);
Save
cmd:
run