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

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -