src/Controller/Component/CrudComponent.php
public function useModel($modelName)
    {
        $this->_controller->loadModel($modelName);
        list(, $this->_modelName) = pluginSplit($modelName);
    }
public function useModel($modelName)
    {
        $this->_controller->loadModel($modelName);
        list(, $this->_modelName) = pluginSplit($modelName);
    }
public function useModel ( $ modelName ) { $ this -> _controller -> loadModel ( $ modelName ) ; list ( , $ this -> _modelName ) = pluginSplit ( $ modelName ) ; }
Sets the model class to be used during the action execution.

@param string $modelName The name of the model to load.
@return void
Sets the model class to be used during the action execution .