Controller/WikiTagController.php
changeset 95 5d10273e892a
parent 94 95ccb3524522
child 98 b307fcd1435a
equal deleted inserted replaced
94:95ccb3524522 95:5d10273e892a
    62         }
    62         }
    63         // ... so we create is json like {"":""},{"Créateur":"Créateur"},{"Datation":"Datation"},...
    63         // ... so we create is json like {"":""},{"Créateur":"Créateur"},{"Datation":"Datation"},...
    64         $categories = json_encode($ar);
    64         $categories = json_encode($ar);
    65         // Management of profiles for the list of displayed columns and reorder tag button
    65         // Management of profiles for the list of displayed columns and reorder tag button
    66         $profile_array = $this->container->getParameter("wiki_tag.document_list_profile");
    66         $profile_array = $this->container->getParameter("wiki_tag.document_list_profile");
    67         #var_dump($profile_array[$profile_name]);
       
    68         $columns_array = null;
    67         $columns_array = null;
    69         if($profile_array!=null && $profile_name!=null && $profile_name!=""){
    68         if($profile_array!=null && $profile_name!=null && $profile_name!=""){
    70             $columns_array = $profile_array[$profile_name];
    69             $columns_array = $profile_array[$profile_name];
    71         }
    70         }
    72         return $this->render('WikiTagBundle:WikiTag:javascript.html.twig', array('categories' => $categories, 'tags_list' => $tags_list, 'columns' => $columns_array));
    71         return $this->render('WikiTagBundle:WikiTag:javascript.html.twig', array('categories' => $categories, 'tags_list' => $tags_list, 'columns' => $columns_array));