cancel
Showing results for 
Search instead for 
Did you mean: 

Custom module 404 not found

SOLVED

Custom module 404 not found

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..

5 REPLIES

Re: Custom module 404 not found

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.

If Issue Solved, Click Kudos/Accept As solutions.

Re: Custom module 404 not found

Thanks for response!

Yes It is inside app/code

But When I execute localhost/myshop/excellence/custom/index I have 404 not found..

 

Re: Custom module 404 not found

You need to run command,

php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
If Issue Solved, Click Kudos/Accept As solutions.

Re: Custom module 404 not found

Thank you..

I did But now I have an empty page

<html><head></head><body></body></html>

I should have

Custom Module is ready !

 

Re: Custom module 404 not found

You need to remove folder var and generated from root. Clear browser cache and check again.

If Issue Solved, Click Kudos/Accept As solutions.