src/Http/Router/Route.php
private function setResourceMethods($url, $controller)
    {

        //index
        $this->setIndexResource($url, '', $controller);

        $url = ($url == '/') ? '' : $url;

        $this->setIndexResource($url, '/index', $controller);

        //show
        $this->setShowResource($url, '/show/{param}', $controller);

        //add
        $this->setAddResource($url, '/add', $controller);

        //insert
        $this->setInsertResource($url, '/insert', $controller);

        //edit
        $this->setEditResource($url, '/edit/{param}', $controller);

        //update
        $this->setUpdateResource($url, '/update', $controller);
        $this->setUpdateResource($url, '/update/{param}', $controller);

        //delete
        $this->setDeleteResource($url, '/delete/{param}', $controller);
    }
private function setResourceMethods($url, $controller)
    {

        //index
        $this->setIndexResource($url, '', $controller);

        $url = ($url == '/') ? '' : $url;

        $this->setIndexResource($url, '/index', $controller);

        //show
        $this->setShowResource($url, '/show/{param}', $controller);

        //add
        $this->setAddResource($url, '/add', $controller);

        //insert
        $this->setInsertResource($url, '/insert', $controller);

        //edit
        $this->setEditResource($url, '/edit/{param}', $controller);

        //update
        $this->setUpdateResource($url, '/update', $controller);
        $this->setUpdateResource($url, '/update/{param}', $controller);

        //delete
        $this->setDeleteResource($url, '/delete/{param}', $controller);
    }
private function setResourceMethods ( $ url , $ controller ) { //index $ this -> setIndexResource ( $ url , '' , $ controller ) ; $ url = ( $ url == '/' ) ? '' : $ url ; $ this -> setIndexResource ( $ url , '/index' , $ controller ) ; //show $ this -> setShowResource ( $ url , '/show/{param}' , $ controller ) ; //add $ this -> setAddResource ( $ url , '/add' , $ controller ) ; //insert $ this -> setInsertResource ( $ url , '/insert' , $ controller ) ; //edit $ this -> setEditResource ( $ url , '/edit/{param}' , $ controller ) ; //update $ this -> setUpdateResource ( $ url , '/update' , $ controller ) ; $ this -> setUpdateResource ( $ url , '/update/{param}' , $ controller ) ; //delete $ this -> setDeleteResource ( $ url , '/delete/{param}' , $ controller ) ; }
Set the methods resource.

@param string $url
@param string $controller

@return null
Set the methods resource .