2016-07-29 15 views
-1

私はcakephp 2.xで作業しています。今は私のuserscontrollerに登録という関数があります。私の地元のサイトの後にURLが来る。私のURLの「/Controller :: UsersCountroller」という名前で削除する方法。URLからCakephpのコントローラ名を削除するには

http://localhost/ashok_sample_site/users/registration/Controller:UsersController

CakePHPの

+0

使用しているルータ::接続コードを提供できますか?それはapp/Config/routes.phpにあります。 – Progredi

答えて

0

Router::connect('http://localhost/ashok_sample_site/users/registration', array('controller' => 'Users', 'action' => 'registration '));

0

する必要がありますあなたの設定あなたの場合は/ routes.phpの

Router::connect('/Your-Customize-URL/*', array('controller' => 'controller', 'action' => 'action'));

でこれをやってみて動作する必要があります。

Router::connect('/users/registration', 
    array('controller' => 'users', 'action' => 'registration') 
); 
関連する問題