Controller/WikiTagController.php
changeset 94 95ccb3524522
parent 77 021131fbe2c5
child 95 5d10273e892a
equal deleted inserted replaced
93:dff31c10f751 94:95ccb3524522
    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]);
    67         $columns_array = null;
    68         $columns_array = null;
    68         if($profile_array!=null && $profile_name!=null && $profile_name!=""){
    69         if($profile_array!=null && $profile_name!=null && $profile_name!=""){
    69             $columns_array = $profile_array[$profile_name];
    70             $columns_array = $profile_array[$profile_name];
    70         }
    71         }
    71         return $this->render('WikiTagBundle:WikiTag:javascript.html.twig', array('categories' => $categories, 'tags_list' => $tags_list, 'columns' => $columns_array));
    72         return $this->render('WikiTagBundle:WikiTag:javascript.html.twig', array('categories' => $categories, 'tags_list' => $tags_list, 'columns' => $columns_array));