php - How to remove controller name in CakePHP Form -
my code:
echo $this->form->create('usps', array( 'inputdefaults' => array( 'label' => false, 'div' => false ), 'id' => 'form-validate', 'class' => 'form-horizontal', 'novalidate' => 'novalidate', 'url' => array('controller'=>'frondends','action' => 'tariffplan') ));
this produces www.example.com/frontends/tariffplan
i want see : www.example.com/tariffplan changed url follows:
'url' => array('action' => 'tariffplan')
but produces : www.example.com/usps/tariffplan
i searched google no luck. appreciated
try this:
'url' => array('controller' => '/', 'action' => 'tariffplan')
Comments
Post a Comment