title: Output variable not being set CodeIgniter
body: <p>I'm working on a <code>CodeIgniter</code> system with the <code>Grocery_CRUD</code> extension. I am trying to integrate a login system with a CRUD application. </p>
  
  <p>Currently I am getting this error when the user logs in, where the CRUD app should be displayed:</p>
  
  <p><strong>Severity: Notice
  Message: Undefined variable: output
  Filename: views/members_area.php
  Line Number: 13</strong></p>
  
  <p>This is the line the error is occuring on: <code>&lt;?php echo $output; ?&gt;</code></p>
  
  <p>I realise that <code>$output</code> is not being set but I can't see why!! Any ideas?</p>
  
  <p>This is my entire members_area.php file: View</p>
  
  <pre><code>&lt;?php
  echo '&lt;span class="italic"&gt;'.date("l, F d, Y " ,time()).'&lt;/span&gt;';
  echo '&lt;h3&gt;Welcome: '.$this-&gt;session-&gt;userdata('username').' '. anchor('logout/signout', 'logout').'&lt;/h3&gt;';
  ?&gt;
  &lt;a href='&lt;?php echo site_url('site/dishes_management')?&gt;'&gt;Dishes&lt;/a&gt; |
  &lt;a href='&lt;?php echo site_url('site/orders_management')?&gt;'&gt;Orders&lt;/a&gt; 
  &lt;?php echo $output; ?&gt;
  </code></pre>
  
  <p>This is my site.php file: Controller</p>
  
  <pre><code>&lt;?php
  class Site extends CI_Controller{
  
      function __construct(){
          parent::__construct();
          $this-&gt;is_logged_in();
          $this-&gt;load-&gt;database();
          $this-&gt;load-&gt;helper('url');
          $this-&gt;load-&gt;library('grocery_CRUD');
      }
  
      function members_area($output = null){
          $this-&gt;load-&gt;view('members_area', $output);
  
      }
  
      function is_logged_in(){
          $is_logged_in = $this-&gt;session-&gt;userdata('is_logged_in');
          if(!isset($is_logged_in) || $is_logged_in != true){
              echo 'You need to login to access this page. &lt;a href="../login"&gt;Login&lt;/a&gt;';
              die();
      }
  
      function dishes_management()
      {
          try{
              $crud = new grocery_CRUD();
              $crud-&gt;set_theme('datatables');
              $crud-&gt;set_table('dishes');
              $crud-&gt;set_subject('Dish');
              $crud-&gt;required_fields('dish_name');
              $crud-&gt;columns('dish_name','dish_desc','dish_price', 'dish_cat');
              $output = $crud-&gt;render();
              $this-&gt;members_area($output);
          }catch(Exception $e){
              show_error($e-&gt;getMessage().' --- '.$e-&gt;getTraceAsString());
          }
      }
  
      function orders_management()
      {
              $crud = new grocery_CRUD();
              $crud-&gt;set_relation('customerNumber','customers','{contactLastName} {contactFirstName}');
              $crud-&gt;display_as('customerNumber','Customer');
              $crud-&gt;set_table('orders');
              $crud-&gt;set_subject('Order');
              $crud-&gt;unset_add();
              $crud-&gt;unset_delete();
              $output = $crud-&gt;render();
              $this-&gt;members_area($output);
      }
  }
  }
  ?&gt;
  </code></pre>
  
  <p>By default I would like the <code>members_area.php</code> to have output set to display items from the dishes table. This does not seem to be working.</p>
  
  <p>Any help, as always is much appreciated!</p>