私はcakephp 2.xで作業しています。今は私のuserscontrollerに登録という関数があります。私の地元のサイトの後にURLが来る。私のURLの「/Controller :: UsersCountroller」という名前で削除する方法。URLからCakephpのコントローラ名を削除するには
http://localhost/ashok_sample_site/users/registration/Controller:UsersController。
CakePHPの
私はcakephp 2.xで作業しています。今は私のuserscontrollerに登録という関数があります。私の地元のサイトの後にURLが来る。私のURLの「/Controller :: UsersCountroller」という名前で削除する方法。URLからCakephpのコントローラ名を削除するには
http://localhost/ashok_sample_site/users/registration/Controller:UsersController。
CakePHPの
Router::connect('http://localhost/ashok_sample_site/users/registration', array('controller' => 'Users', 'action' => 'registration '));
する必要がありますあなたの設定あなたの場合は/ routes.phpの
Router::connect('/Your-Customize-URL/*', array('controller' => 'controller', 'action' => 'action'));
でこれをやってみて動作する必要があります。
Router::connect('/users/registration',
array('controller' => 'users', 'action' => 'registration')
);
使用しているルータ::接続コードを提供できますか?それはapp/Config/routes.phpにあります。 – Progredi