php - Codeigniter not loading view -


i have code grabs webpage , saves ci application/views folder. plan make changes dynamically , redisplay page. when try load page blank page. can see 'newpage.php' created expected in views folder. here's code:

$returned_content = get_data('http://www.yahoo.com');   // uses curl file_put_contents(apppath."views/newpage.php", $returned_content); $this->load->view('newpage'); 

what doing wrong?

addendum: in case povilas correct preloading of views added view named 'html_template' code

<?php echo $htmlstring; ?> 

i changed code

$returned_content = get_data('http://www.yahoo.com');   // uses curl $data=array('htmlstring'=>$returned_content); $this->load->view('html_template', $data); 

thanks help

it might codeigniter "preloads" views in beginning, cannot create on fly?

another theory - loading view executed earlier file creation operation finishes?

couldn't create view start , pass $returned_content view?


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -