Welcome Guest, Not a member yet? Register   Sign In
how to protect a controller function accessing by URL
#1

[eluser]Tracker[/eluser]
I don't want to access "deleteItems" function directly like this.
http://localhost/Shop/deleteItems/3

it should only accessible if i will call
http://localhost/Shop/deleteShop/3

Your help will be appreciated...

Code:
class Shop extends Controller {

    function deleteShop()
    {
        $this-> deleteItems($shopId);
        //….

    }

    function deleteItems($shopId)
    {
        //….

    }
}


Messages In This Thread
how to protect a controller function accessing by URL - by El Forum - 08-19-2010, 12:00 PM
how to protect a controller function accessing by URL - by El Forum - 08-19-2010, 12:07 PM
how to protect a controller function accessing by URL - by El Forum - 08-19-2010, 12:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB