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

[eluser]GeorgiosK[/eluser]
OK then the following is correct and it is supposed to return a string.

Code:
$string = $this->load->view('blogview',$data,true);

$this->load->view('blogview',$string);


Code:
<html>
<head>
<title></title>
</head>
<body>
<ul>
<li>&lt;?php echo $string;?&gt;</li>
</ul>
&lt;/body&gt;
&lt;/html&gt;

But I am getting the following error:

Quote:
A PHP Error was encountered

Severity: Notice

Message: Undefined variable: string

Filename: views/blogview.php

Line Number: 36

Where I am wrong?


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



Theme © iAndrew 2016 - Forum software by © MyBB