Hi fellow
bakers,
I have an element
where I have the following ($layout_texts
reffers to an array of text elements, such as $layout_texts['top.menu.user'] = 'User', obtained through PEAR Translation2
package):
<?php
echo $html->formTag('/account/login'); ?>
<?php echo $layout_texts['top.menu.user']; ?>:
<?php echo $html->input('account/user', array('size' => '10')); ?>
<?php echo $layout_texts['top.menu.password']; ?>:
<?php echo $html->password('account/password', array('size' => '10')); ?>
<?php echo $html->input('account/submit', array('type' => 'image', 'class' => 'button', 'src' => $this->webroot . 'img/icons/login.jpg')); ?>
</form>
<?php echo $html->link($layout_texts['top.menu.forgot'], '/account/forgot'); ?>
<?php echo $layout_texts['top.menu.user']; ?>:
<?php echo $html->input('account/user', array('size' => '10')); ?>
<?php echo $layout_texts['top.menu.password']; ?>:
<?php echo $html->password('account/password', array('size' => '10')); ?>
<?php echo $html->input('account/submit', array('type' => 'image', 'class' => 'button', 'src' => $this->webroot . 'img/icons/login.jpg')); ?>
</form>
<?php echo $html->link($layout_texts['top.menu.forgot'], '/account/forgot'); ?>
My first question
could be a little off-topic, and if that's the case I apologyze: if the user is
viewing this form through a standard HTTP connection, but the action of the
login form reffers to a HTTPS page, am I then following HTTPS authentication
security protocol? Or should I display the login form *only* from a HTTPS
page?
The other question
is: is there a standard procedure to change the protocol for a $html->link or $html->formTag page? I could just extend the html
helper and allow another parameter that would allow me to change protocols, such
as:
<?php echo $html->formTag('/account/login',
'https'); ?>
But I was wondering
if this functionality is not already in place.
P.S: I've read
somewhere on a Simphony-CakePHP comparison that Simphony had better
documentation. Eventhough CakePHP does lack some documentation I believe that
CakePHP's google group makes up for it BIG TIME.
Bake
on!
-MI
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.11/492 - Release Date: 10/23/2006
