title: Codeigniter: Logic in Nested Views
body: <p>I have a template.php that includes a header, footer and main content.</p>
  
  <p>However, in my template.php, I would like to add a shopping cart widget that utilises the shopping cart class, the form class and obviously the session class.</p>
  
  <p>I want the widget to intially be a form before the cart which gathers simple data from the user (name, email, some dropdown boxes and checkbox information) and sends these parameters to a session (stored in the database using CI_SESSIONS) which will be used by the application (related products) (show products based on checkbox selections) and the cart.</p>
  
  <p>I want the logic to process through the widget without having to reload the entire page (AJAX/JS?) and then use the session to store the cart data as the user browses through the application.</p>
  
  <p>Can anyone recommend any reading materials or libraries to put me in the right direction to an answer?</p>
  
  <p>Regards,</p>