を使用していますが、公開したくないので、 、zfcUser
などのデフォルト ルートを無効にできるかどうか疑問に思っていました。zfcUser/login
zfcUser/register
私は見ましたzfcuser.global.php
が、そのようなオプションはないようですか?
ありがとう
を使用していますが、公開したくないので、 、zfcUser
などのデフォルト ルートを無効にできるかどうか疑問に思っていました。zfcUser/login
zfcUser/register
私は見ましたzfcuser.global.php
が、そのようなオプションはないようですか?
ありがとう
null コントローラーまたは一致しないルーティング構成を設定することで、構成をオーバーライドすることができます。
zfcuser
解決策 1:呼び出し可能なコントローラーをオーバーライドします。
// YourApp\Module#getConfig() or config/autoload/zfcuser.override.global.php
return array(
'controllers' => array(
'invokables' => array(
'zfcuser' => null,
),
),
);
解決策 2: 独自のルート構成を使用してルーティング構成をオーバーライドする (ハッキー、非推奨):
// YourApp\Module#getConfig() or config/autoload/zfcuser.override.global.php
return array(
'router' => array(
'routes' => array(
'zfcuser' => array(
// changing to hostname route - using an unreachable hostname
'type' => 'Hostname',
// minimum possible priority - all other routes come first.
'priority' => ~PHP_INT_MAX,
'options' => array(
// foo.bar does not exist - never matched
'route' => 'foo.bar',
'defaults' => array(
'controller' => null,
'action' => 'index',
),
),
// optional - just if you want to override single child routes:
'child_routes' => array(
'login' => array(
'options' => array(
'defaults' => array(
'controller' => null,
),
),
),
'authenticate' => array(
'options' => array(
'defaults' => array(
'controller' => null,
),
),
),
'logout' => array(
'options' => array(
'defaults' => array(
'controller' => null,
),
),
),
'register' => array(
'options' => array(
'defaults' => array(
'controller' => null,
),
),
),
'changepassword' => array(
'options' => array(
'defaults' => array(
'controller' => null,
),
),
),
'changeemail' => array(
'options' => array(
'defaults' => array(
'controller' => null,
),
),
),
),
),
),
),
);