torsdag den 12. september 2013

Yii-user mishamx, disable the registration link on login page

The only solution I found was to edit the view file and comment out the section.

in \protected\modules\user\views\user\login.php

find the section and comment it out.


<!-- div>
  <p class="hint">
    <?php echo CHtml::link(UserModule::t("Register"),Yii::app()->getModule('user')->registrationUrl); ?> |   <?php echo CHtml::link(UserModule::t("Lost Password?"),Yii::app()->getModule('user')->recoveryUrl); ?>
  </p>
</div -->

and add an "<?php exit; ?>" on the start of the page

in \protected\modules\user\views\user\registration.php

Ingen kommentarer:

Send en kommentar