Welcome Guest, Not a member yet? Register   Sign In
CI ecommerce
#19

[eluser]tomcode[/eluser]
The _remap() function in a controller catches all incoming requests, all other methodes are ignored, so what You can do :

Code:
// put this method in Your Controllers
    function _remap()
    {
        // catch the requested method
        $cur_page = $this->uri->segment(2, 'index');
        
        // the public methods You wish to expose
        $methods = array('index');
        
        if(! in_array($cur_page, $methods))
        {
            show_404();
        }
        
        // call the method
        $this->$cur_page();
    }


Messages In This Thread
CI ecommerce - by El Forum - 02-03-2010, 03:35 PM
CI ecommerce - by El Forum - 02-03-2010, 03:56 PM
CI ecommerce - by El Forum - 02-03-2010, 04:55 PM
CI ecommerce - by El Forum - 02-04-2010, 12:26 AM
CI ecommerce - by El Forum - 02-04-2010, 01:04 AM
CI ecommerce - by El Forum - 02-04-2010, 02:38 AM
CI ecommerce - by El Forum - 02-04-2010, 03:58 AM
CI ecommerce - by El Forum - 02-04-2010, 12:06 PM
CI ecommerce - by El Forum - 02-18-2010, 09:39 AM
CI ecommerce - by El Forum - 02-22-2010, 01:40 PM
CI ecommerce - by El Forum - 03-15-2010, 07:10 AM
CI ecommerce - by El Forum - 03-15-2010, 07:47 AM
CI ecommerce - by El Forum - 03-16-2010, 05:37 AM
CI ecommerce - by El Forum - 03-16-2010, 05:42 AM
CI ecommerce - by El Forum - 03-16-2010, 05:48 AM
CI ecommerce - by El Forum - 03-16-2010, 05:57 AM
CI ecommerce - by El Forum - 03-16-2010, 06:50 AM
CI ecommerce - by El Forum - 03-16-2010, 07:09 AM
CI ecommerce - by El Forum - 03-16-2010, 07:27 AM
CI ecommerce - by El Forum - 03-16-2010, 05:16 PM
CI ecommerce - by El Forum - 03-16-2010, 05:19 PM



Theme © iAndrew 2016 - Forum software by © MyBB