I want to add a custom tab on account dashboard in Magento2 and I have seen many tutorials for creating new module but not one showing exact location for placing that module.
Right now I have placed my custom module on this path app/code
folder but it is not working.
I have followed this tutorial for creating a new module,
https://magecomp.com/blog/add-custom-tab-in-customer-account-section-magento-2/#comment-5094
Anyone can help to know the exact location for placing module.
Best Answer
Follow the steps listed below :
Add below files into your custom extension.
Ex:- => Namespace:- ABC => modulename : Myblog
=> Create customer_account.xml into
ABC/Myblog/view/frontend/layout
=> Create myblog_customer_index.xml into
ABC/Myblog/view/frontend/layout
=> Create Index.php into
ABC/Myblog/Controller/Customer
=> Create myblog.phtml into
ABC/Myblog/view/frontend/templates