Welcome Guest, Not a member yet? Register   Sign In
problem with calling a method in a method.
#1

[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');
        
        }
    }


Messages In This Thread
problem with calling a method in a method. - by El Forum - 01-03-2013, 06:41 PM
problem with calling a method in a method. - by El Forum - 01-03-2013, 07:22 PM
problem with calling a method in a method. - by El Forum - 01-04-2013, 03:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB