Welcome Guest, Not a member yet? Register   Sign In
Deleting the Home.php in Controller and Welcome_message
#6

@shewolf255,
> There should be a way to get rid of the welcome_message.php in the view folder. So that you can start working on you home.php file and etc and I don't have a welcome message in the routes.php files.
>
> I have also try and set the Pages.php as the default controller.

From the supplied image I noticed that Home was replaced with Pages. Did you replace the other Home::index reference further below?

Code:
/**
* --------------------------------------------------------------------
* Router Setup
* --------------------------------------------------------------------
*/
$routes->setDefaultNamespace('App\Controllers');
$routes->setDefaultController('Home');
$routes->setDefaultMethod('index');
$routes->setTranslateURIDashes(false);
$routes->set404Override();
$routes->setAutoRoute(true);

/**
* --------------------------------------------------------------------
* Route Definitions
* --------------------------------------------------------------------
*/

// We get a performance increase by specifying the default
// route since we don't have to scan directories.
$routes->get('/', 'Home::index');
Reply


Messages In This Thread
RE: Deleting the Home.php in Controller and Welcome_message - by John_Betong - 04-22-2020, 07:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB