'具体的な'認証タイプのform.phpファイルを上書きしようとしています。私は、/ application/authentication/concreteディレクトリにform.phpファイルを置いても、私のテーマのパッケージディレクトリの中からform.phpファイルを置くことはできません。パッケージ内の認証タイプのform.phpを上書きする
<?php foreach ($activeAuths as $auth): ?>
<div data-handle="<?= $auth->getAuthenticationTypeHandle(); ?>" class="authentication-type authentication-type-<?= $auth->getAuthenticationTypeHandle(); ?>">
<?php $auth->renderForm($authTypeElement ?: 'form', $authTypeParams ?: array()); ?>
</div>
<?php endforeach; ?>
(renderFormメソッドの2番目のパラメータを置き換えて)別のフォームをロードしようとすると、何も起こりません。
どのようにオーバーライドを認識しているのですか?
パッケージ内の正確なパスは何ですか? –
'$ activeAuth'とは何ですか? –
パスは/ applicationディレクトリのパスと同じです:/ packages/package_handle/authentication/concrete –