Welcome Guest, Not a member yet? Register   Sign In
Function in Controller
#1

[eluser]reidz[/eluser]
i want to ask how to handle request to function which do not show anyting to controller

Code:
class Example extends Controller
{
    function Example()
    {
        parent::Controller();
    }
    
    function index()
    {
        $this->load->view('some_view');
    }
    
    function do_nothing()
    {
        
    }
    
}

with this Controller, when i type this localhost/index.php/example/do_nothing on my address bar, the result is just blank page, because that function do_nothing do not called any view

so all im asking is how we handle this kind situation ? cause i dont want to display any blak page


Messages In This Thread
Function in Controller - by El Forum - 11-26-2010, 07:31 AM
Function in Controller - by El Forum - 11-26-2010, 07:33 AM
Function in Controller - by El Forum - 11-26-2010, 07:36 AM
Function in Controller - by El Forum - 11-26-2010, 07:57 AM
Function in Controller - by El Forum - 11-26-2010, 08:12 AM
Function in Controller - by El Forum - 11-27-2010, 02:25 AM
Function in Controller - by El Forum - 11-27-2010, 03:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB