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

[eluser]riwakawd[/eluser]
I read the codeigniter user guide but it said I could load view as as $string in controller.

I have done that but footer is at top. I tried adding return but nothing. Footer still at top. Need to added return but don't know where.

Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Login extends CI_Controller {

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

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


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