-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Clicked "create new menu" button, entered name, clicked "save", the following error occurs:
HTTP 404 – Not Found – yii\web\NotFoundHttpException
Template not found: admin/craftnavigation/edit/3
1. in /var/www/vhosts/dakbath.epicosity.com/httpdocs/vendor/craftcms/cms/src/controllers/TemplatesController.php at line 70
61626364656667686970717273747576777879
* @param string $template
* @param array $variables
* @return Response
* @throws NotFoundHttpException if the requested template cannot be found
*/
public function actionRender(string $template, array $variables = []): Response
{
// Does that template exist?
if (!$this->getView()->doesTemplateExist($template)) {
throw new NotFoundHttpException('Template not found: ' . $template);
}
// Merge any additional route params
$routeParams = Craft::$app->getUrlManager()->getRouteParams();
unset($routeParams['template'], $routeParams['template']);
$variables = array_merge($variables, $routeParams);
return $this->renderTemplate($template, $variables);
}
Metadata
Metadata
Assignees
Labels
No labels