Example #1
0
 public function index()
 {
     Category::loadTree();
     $response = new ActionResponse();
     $categories = array('children' => array($this->getRecursiveJson(Category::getRootNode()->toArray())));
     $response->set('categoryList', json_encode($categories));
     $response->set('allTabsCount', array(Category::ROOT_ID => $this->getTabCounts(Category::ROOT_ID)));
     $response->set('maxUploadSize', ini_get('upload_max_filesize'));
     $response->set('defaultCurrencyCode', $this->application->getDefaultCurrencyCode());
     return $response;
 }