08-19-2008, 05:25 AM
[eluser]vinod_ci[/eluser]
Hello guys
i want to write view in a file.
The view contains all data
<summary><![CDATA[<?=strip_tags(word_limiter($entry->body, 100));?>]]></summary>
$data=$this->load->view('ss/rss',$data,true);
if ( ! write_file('file.php', $data)
{
echo 'Unable to write the file';
}
else
{
echo 'File written!';
}
The file.php contain "Array" text.
My questions is how to write view in a file.
Hello guys
i want to write view in a file.
The view contains all data
<summary><![CDATA[<?=strip_tags(word_limiter($entry->body, 100));?>]]></summary>
$data=$this->load->view('ss/rss',$data,true);
if ( ! write_file('file.php', $data)

{
echo 'Unable to write the file';
}
else
{
echo 'File written!';
}
The file.php contain "Array" text.
My questions is how to write view in a file.