Im attempting to create a primary web page via a module like right here
I’ve created a landing_page.data.yml
title: Touchdown Web page kind: module description: 'Touchdown Web page' core_version_requirement: ^8.7.7 || ^9
In Drupal Developer similar folder landing_page.routing.yml
landing_page.touchdown: path: '/landing_page' defaults: _controller: 'Drupallanding_pageControllerlandingpageController::placeholder' _title: 'A touchdown web page' necessities: _permission: 'entry content material'
Then at src/Controller/landingpage.php
<?php namespace Drupallanding_pageController; use DrupalCoreControllerControllerBase; class landingpage extends ControllerBase { public operate placeholder() { return [ '#markup' => 'placeholder landing page', ]; } }
It really works on my localhost however after I add to my server I get
ReflectionException: Class Drupallanding_pageControllerlandingpageController doesn't exist in ReflectionMethod->__construct() (line 128 of Drupal/Core/Entity/EntityResolverManager.php).
Ive checked all over the place right here, right here, plus extra. Have tried re-writing for final 2 hours however nonetheless get similar error. Works on localhost, provides error on server. Thanks