Welcome Guest, Not a member yet? Register   Sign In
what $string = $this->load->view('myfile', '', true) exactly does?
#6

[eluser]GeorgiosK[/eluser]
Code:
$data = array();
$data['title'] = 'My Title';
$data['heading'] = 'My Heading';
$this->load->vars($data);
// now the variables will be available in the view as $title and $heading.
$this->load->view('my_view');

In the above case

$this->load->view('my_view',$data);

would work the same, right?



What confuses me is the third optional parameter. if true the whole view is passed to another variable (in this case $string).

How can the $string variable be used/proccessed/edited afterwards?
Could you show me a simple example?


Messages In This Thread
what $string = $this->load->view('myfile', '', true) exactly does? - by El Forum - 08-20-2010, 04:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB