Howdy All, fitted the typeerror with alter user root password in mysql,
Now new issue when opening new App, get 404 error : page not found ??
config.php and dataabase.php look correct, added setup.sql to app created in phpmyadmin, so not understanding why getting 404 error page. Looking for ideas, Thank you!
http://127.0.0.1/family_store/public/
open new app get 404 error : page not found
3 years ago
3 years ago
#1
3 years ago
#2
Well, we need some more info.
What does it say in the address bar when you get the error?
What does it say in the address bar when you get the error?
3 years ago
#3
when I go to http://127.0.0.1/family_store/,
I select the public folder and get the 404.php page (red)
title bar shows: http://127.0.0.1/family_store/public/
I select the public folder and get the 404.php page (red)
title bar shows: http://127.0.0.1/family_store/public/
3 years ago
#4
G'day VHJZSR,
That is normal behaviour for that URL - you need to call a valid module/ method like your default controller - the public folder is more for assets (css, js images, etc...) not pages to view
http://127.0.0.1/family_store/
is the same as
http://127.0.0.1/family_store/welcome
or
http://127.0.0.1/family_store/welcome/index
Your config file defines this for you
When you create a custom module like:
modules/test/controllers/Test.php
and the view
modules/test/views/display.php
the URL to view this would be:
http://127.0.0.1/family_store/test or http://127.0.0.1/family_store/test/index
NOTE: the above module was created with the Trongate VSCode extension which you can get from: https://marketplace.visualstudio.com/search?term=trongate&target=VSCode&category=All%20categories&sortBy=Relevance
I would suggest you read up on the basics of modules, controllers and views
https://trongate.io/docs/information/what-is-a-controller
https://trongate.io/docs/information/understanding-view-files
That is normal behaviour for that URL - you need to call a valid module/ method like your default controller - the public folder is more for assets (css, js images, etc...) not pages to view
http://127.0.0.1/family_store/
is the same as
http://127.0.0.1/family_store/welcome
or
http://127.0.0.1/family_store/welcome/index
Your config file defines this for you
When you create a custom module like:
modules/test/controllers/Test.php
and the view
modules/test/views/display.php
the URL to view this would be:
http://127.0.0.1/family_store/test or http://127.0.0.1/family_store/test/index
NOTE: the above module was created with the Trongate VSCode extension which you can get from: https://marketplace.visualstudio.com/search?term=trongate&target=VSCode&category=All%20categories&sortBy=Relevance
I would suggest you read up on the basics of modules, controllers and views
https://trongate.io/docs/information/what-is-a-controller
https://trongate.io/docs/information/understanding-view-files