title: checkbox permission[access] validation not working Codeigniter
body: <p>I am setting up some checkboxs and the name on check box is <code>name="permission[access][]"</code></p>
  
  <p>I cannot get codeigniter validation to work with that will not display the validation error message</p>
  
  <p><strong>How can I get it to work with the name</strong> <code>name="permission[access][]"</code></p>
  
  <p>Controller:</p>
  
  <pre><code>&lt;?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  
  class Post_test extends MX_Controller {
  
  public function index() {
  
      $data['action'] = site_url('post_test');
  
      $ignore = array(
          'common/dashboard',
          'common/footer',
          'common/header'
      );
  
      $data['permissions'] = array();
  
      $files = glob(APPPATH . 'controllers/*/*.php');
  
      foreach ($files as $file) {
          $part = explode('/', dirname($file));
  
          $permission = end($part) . '/' . basename($file, '.php');
  
          if (!in_array($permission, $ignore)) {
              $data['permissions'][] = $permission;
          }
      }
  
      if ($this-&gt;input-&gt;post('permission[access]') !== FALSE) {
          $data['access'] = $this-&gt;input-&gt;post('permission[access]');
      } else {
          $data['access'] = array();
      }
  
      $this-&gt;load-&gt;library('form_validation');
  
      $this-&gt;form_validation-&gt;set_rules('permission[access]', 'Permission Access', 'required');
  
      if ($this-&gt;form_validation-&gt;run() == false) {
  
      $this-&gt;load-&gt;view('post_test.tpl', $data);
  
      } else {
  
          var_dump($_POST);
  
      }
  }
  
  }
  </code></pre>
  
  <p>View:</p>
  
  <pre><code>&lt;?php echo validation_errors('&lt;div class="alert alert-danger"&gt;', '&lt;/div&gt;'); ?&gt;
  &lt;form action="&lt;?php echo $action;?&gt;" method="post" enctype="multipart/form-data" class="form-horizontal"&gt;
  &lt;fieldset&gt;
  &lt;div class="form-group"&gt;
  &lt;label class="col-sm-2 control-label"&gt;&lt;/label&gt;
  &lt;div class="col-sm-10"&gt;
  &lt;div class="well well-sm" style="height: 150px; overflow: auto;"&gt;
  &lt;?php foreach ($permissions as $permission) { ?&gt;
  &lt;div class="checkbox"&gt;
  &lt;label&gt;
  &lt;?php if (in_array($permission, $access)) { ?&gt;
  &lt;input type="checkbox" name="permission[access][]" value="&lt;?php echo $permission; ?&gt;" checked="checked" /&gt;
  &lt;?php echo $permission; ?&gt;
  &lt;?php } else { ?&gt;
  &lt;input type="checkbox" name="permission[access][]" value="&lt;?php echo $permission; ?&gt;" /&gt;
  &lt;?php echo $permission; ?&gt;
  &lt;?php } ?&gt;
  &lt;/label&gt;
  &lt;/div&gt;
  &lt;?php } ?&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/fieldset&gt;
  &lt;div class="buttons clearfix"&gt;
  &lt;div class="pull-left"&gt;&lt;/div&gt;
  &lt;div class="pull-right"&gt;
  &lt;br/&gt;
  &lt;button type="submit" class="btn btn-primary"&gt;Submit&lt;/button&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>