What I would love to be able to do is something like this:
$html->link('login', '/users/login', array('secure'=>TRUE) );
Depending on which server I was on, this would generate either:
https://www.cakephp.org/users/login
OR
https://cakephp.localhost/users/login
Currently, the problem is that if I am in an http:// environment and
want to generate a link with the https:// prefix, I have to do this:
$html->link('login', 'https://'.$_SERVER['SERVER_NAME'].'/users/
login');
I feel like the first version is better, and avoids the ugliness of
directly involving the $_SERVER array.
Is there some fundamental issue preventing us from being able to
specify a "secure" flag in the html->link function?
Is there some easier way to handle this that doesn't involve using the
$_SERVER array?
Thanks!
-Aran
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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?hl=en
-~----------~----~----~----~------~----~------~--~---