mirror of
https://github.com/brmlab/brmbiolab_sklad.git
synced 2025-12-17 05:04:01 +01:00
Initial commit
This commit is contained in:
commit
3b93da31de
1004 changed files with 265840 additions and 0 deletions
14
lib/Cake/Test/test_app/View/Posts/json/index.ctp
Normal file
14
lib/Cake/Test/test_app/View/Posts/json/index.ctp
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue