[eluser]Unknown[/eluser]
i have a template view with stand-alone page.
i wanna display variable from controller from input form variable.
then that variable as parameter to modification from database
my blog project code, like this:
Code:
blog_controller.php
function index() {
$something = $this->input->post('some_data');
$this->db->where('blog_title',0);
$this->db->order_by('blog_title','ASC');
$data= $this->db->get('blog')->result_array();
$blog_title = $data['blog_title'];
$blog_news = $data['blog_content'];
$output = $this->load->view('blog_view',$data,true);
pdf_create($output,'lap_ruangan_rusak'.$blog_news,TRUE,'landscape');
}
Code:
blog_view.php
<div id="main">
<?php
echo $data['blog_title'];
echo $blog_news;
?>
</div>
how to show echo in blog_view.php?