function($path)
{
if ($this->check()) {
if ($this->router->getPrepath(false) === $path) {
return 1;
}
if ($this->env->setPrepath($path) && $this->router->setPrepath($path)) {
$this->params = $this->getParams();
return 1;
}
}
throw new \Exception(
X::_("The setPrepath method cannot be used in this MVC")
);
}