title: how to include a view file and the variables in another view in codeigniter
body: <p>I create a view file called "Mainbar" and i want to display some other view files in that, like: slideshow products and ... .
  if i add <code>$this-&gt;load-&gt;view('slideshow');</code> in Mainbar page the variabales I used in slideshow function wont work. what is the best way to display view files into other view and pass the variables of them too</p>