[eluser]soyut[/eluser]
Hello,
I was calling a method/function in a another method.
But when it runs the function it doesn't continue the code. it just stops there.
How can I sort this out.
Code:
public function rep(){
if ($this->input->post('submit'))
{
if($this->input->post('date1')){
if($this->input->post('date2')){
$data['reports'] = $this->blog_model2->reporting();
$reports =array();
$this->topdf();
//topdf function is printing out the search results in pdf format.
$this->load->view('header_view');
$this->load->view('nav_view');
$this->load->view('nav2_view');
$this->load->view('report_view', $data);
$this->load->view('footer_view');
}
else{
echo "Please enter a valid end date!";
}
}
else{
echo "Please enter a valid start date!";
}
} //submit
else {
$this->load->view('header_view');
$this->load->view('nav_view');
$this->load->view('nav2_view');
$this->load->view('report_view');
$this->load->view('footer_view');
}
}