public function __construct(Container $container = null) { parent::__construct($container); // Set up a default model name if none is provided if (empty($this->modelName)) { $this->modelName = Inflector::pluralize($this->view); } // Set up a default view name if none is provided if (empty($this->viewName)) { $this->viewName = Inflector::pluralize($this->view); } }