i want to create new customer section example sampleorder
url like : customer/account/sampleorders/
i tried below method that is working but it is wrong way to modify core magento files, what i tried is below, but i want to do it vai module
1: created a file Sampleorders.php
vendor/magento/module-customer/Controller/Account/Sampleorders.php
< ?php
namespace MagentoCustomerControllerAccount;
class Sampleorders extends MagentoCustomerControllerAbstractAccount
{
/**
* Index Action*
* @return void
*/
public function execute()
{
echo "hellow";
exit();
}
}