Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My_controller #8

Open
saboortanha opened this issue Apr 27, 2020 · 0 comments
Open

My_controller #8

saboortanha opened this issue Apr 27, 2020 · 0 comments

Comments

@saboortanha
Copy link

Hello,
Can someone help me understand this in MY_Controller
$this->load->view($page, $data);
Like I understand that it loads view but not sure what type of data is stored in those to variables
$page
$data

Here is complete function code
public function render_template($page = null, $data = array())
{

	//$this->load->view('admin/include/header',$data);
	$this->load->view('templates/header');
	//$this->load->view('templates/header_menu',$data);
	//$this->load->view('templates/side_menubar',$data);
	$this->load->view($page, $data);
	//$this->load->view('templates/footer',$data);
}

Thank you,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant