Good morning,
I want to create a simple custom module for my magento 2.1
I followed this article
http://javascriptsolution.com/create-custom-module-in-magento-2-1/
But When I want to run my module I have 404 not found..
Perhaps I have to see that I have a theme in my app/code..
Then my project as
/app/code/Excellence (my module)
/app/code/Plaza (my theme)
Thanks in advance..
Solved! Go to Solution.
You need to remove folder var and generated from root. Clear browser cache and check again.
You need to put your module inside app/code folder. For app/design folder there are theme/template file exist. So when you create any module you need to define your code inside app/code folder.
Thanks for response!
Yes It is inside app/code
But When I execute localhost/myshop/excellence/custom/index I have 404 not found..
You need to run command,
php bin/magento setup:upgrade php bin/magento setup:static-content:deploy -f
Thank you..
I did But now I have an empty page
<html><head></head><body></body></html>
I should have
Custom Module is ready !
You need to remove folder var and generated from root. Clear browser cache and check again.