Welcome Guest, Not a member yet? Register   Sign In
[Solved] Loading view as $string not working
#7

[eluser]CroNiX[/eluser]
Code:
public function index() {
  $data['header'] = $this->load->view('template/common/header', array(), true);
  $data['footer'] =  $this->load->view('template/common/footer', array(), true);

  $this->load->view('template/common/login', $data);
}

In the login view,
Code:
echo $header;
echo $footer;
where you want them to show up


Messages In This Thread
[Solved] Loading view as $string not working - by El Forum - 05-01-2014, 08:43 AM
[Solved] Loading view as $string not working - by El Forum - 05-01-2014, 08:56 AM
[Solved] Loading view as $string not working - by El Forum - 05-01-2014, 09:00 AM
[Solved] Loading view as $string not working - by El Forum - 05-01-2014, 09:01 AM
[Solved] Loading view as $string not working - by El Forum - 05-01-2014, 09:05 AM
[Solved] Loading view as $string not working - by El Forum - 05-01-2014, 09:06 AM
[Solved] Loading view as $string not working - by El Forum - 05-01-2014, 09:07 AM
[Solved] Loading view as $string not working - by El Forum - 05-01-2014, 09:10 AM
[Solved] Loading view as $string not working - by El Forum - 05-01-2014, 09:14 AM
[Solved] Loading view as $string not working - by El Forum - 05-01-2014, 03:57 PM
[Solved] Loading view as $string not working - by El Forum - 05-01-2014, 06:08 PM
[Solved] Loading view as $string not working - by El Forum - 05-01-2014, 08:15 PM
[Solved] Loading view as $string not working - by El Forum - 05-01-2014, 10:42 PM
[Solved] Loading view as $string not working - by El Forum - 05-02-2014, 03:00 AM
[Solved] Loading view as $string not working - by El Forum - 05-02-2014, 03:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB