ADD API - category 0

This commit is contained in:
Krivchikov Dmitry 2016-04-08 18:21:12 +03:00
parent 5a31e1202c
commit ed1897dd87
1 changed files with 7 additions and 0 deletions

View File

@ -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,
)); ));