public function getPages($role_id)
 {
     $this->_role_permissions = UserRole::find($role_id);
     if (!empty($this->_role_permissions)) {
         $pages = Page::orderBy('order', 'asc')->get();
         $this->_child_pages = array();
         foreach ($pages as $page) {
             if (!isset($this->_child_pages[$page->parent])) {
                 $this->_child_pages[$page->parent] = array();
             }
             array_push($this->_child_pages[$page->parent], $page);
         }
         $this->layoutData['content'] = View::make('coaster::pages.roles.pages', array('pages' => $this->_print_pages(0), 'role' => $this->_role_permissions->name));
     }
 }