diff --git a/controllers/JsonController.php b/controllers/JsonController.php index 81e390d..cde835a 100644 --- a/controllers/JsonController.php +++ b/controllers/JsonController.php @@ -104,6 +104,13 @@ class JsonController extends Controller { $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( 'data' => $categories, ));