Best practice for View accessing session
From what I've read, the View should be as simple as possible.

Is it good practice to access session variables in the view?

ie.

    // in the view
    <?php if ($this->session->userdata('is_logged_in') : ?>
      // stuff
    
    <?php endif; ?>
Best practice for View accessing session
===

From what I've read, the View should be as simple as possible.

Is it good practice to access session variables in the view?

ie.

    // in the view
    <?php if ($this->session->userdata('is_logged_in') : ?>
      // stuff
    
    <?php endif; ?>