I have created a controller "Businesses" and action method call "show_details"
function show_details($id = null,$title = null){
$this->set('Business', $this->Businesses->findById($id));
$this->render('Business');
}
and the current url will be the http://127.0.0.1:8080/caketest/businesses/show_details/1/Hattion_National_Bank_Plc.
But I need to show the Url as http://127.0.0.1:8080/caketest/Hattion_National_Bank_Plc
How could I do this? What will be the URL routing rule in routes.php.
I am new to cakePHP so I tried to do this but I failed. your help is highly appreciated.