Question

I would like to know what this code does in the joomla file

components/com_users/views/login/tmpl/default_login.php

<?php foreach ($this->form->getFieldset('credentials') as $field): ?>
<?php if (!$field->hidden): ?>

Also, how do I add the "remember me" option that is given with the login module? Thanks.

Was it helpful?

Solution

<?php foreach ($this->form->getFieldset('credentials') as $field): ?>

This section will get the all the fields from the "credentials" fieldset stored in:

components/com_users/models/forms/login.xml


<?php if (!$field->hidden): ?>

If the field being processed on the loop is not hidden .... then... it will be displayed I guess.


Regarding the "remember me" option, you can find a solution in the joomla forum:

http://forum.joomla.org/viewtopic.php?f=615&t=695612

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top