ADD API - category 0
This commit is contained in:
parent
5a31e1202c
commit
ed1897dd87
|
|
@ -104,6 +104,13 @@ class JsonController extends Controller
|
||||||
{
|
{
|
||||||
$categories = Category::model()->getAll(array('order' => 'ord ASC', 'asArray' => true, 'noKeys' => true));
|
$categories = Category::model()->getAll(array('order' => 'ord ASC', 'asArray' => true, 'noKeys' => true));
|
||||||
|
|
||||||
|
$categories[] = array(
|
||||||
|
"id" => "0",
|
||||||
|
"name" => "Все точки",
|
||||||
|
"icon" => "/ico/all.png",
|
||||||
|
"ord" => "0"
|
||||||
|
);
|
||||||
|
|
||||||
self::renderPartial('json.php', array(
|
self::renderPartial('json.php', array(
|
||||||
'data' => $categories,
|
'data' => $categories,
|
||||||
));
|
));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue