What's the best way in cakephp to extend the html-> link function so that I can say to display a secure link (https)? Right now, I added my own secure_link function to app_helpers, which is basically a copy of the link function, but adding https to the beginning. But it seems like there should be a better way to override the html-> link method so that I can specify a safe parameter.
http://groups.google.com/group/cake-php/browse_thread/thread/e801b31cd3db809a
I also started a topic in google groups and someone suggested something like
$html->link('my account', array('base' => 'https://', 'controller' => 'users'));
but I could not get this to work.
Just to add, this is what gets output when I have the code above.
<a href="/users/index/base:https:/">my account</a>
I think there is an error in the /libs/router.php cake on line 850. There the keyword is "naked", and I think it should be "basic". Although its change to the base does not seem to fix it. From what I collect, he tells him to exclude those keys that are passed so that they are not included as parameters. But I am puzzled by why this keyword is “naked,” and the only reason I can come up with is type.
user174120
source
share