Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current Protocol (Helper) #685

Open
wants to merge 1 commit into
base: 3.3/develop
Choose a base branch
from
Open

Conversation

saruman
Copy link
Contributor

@saruman saruman commented Apr 22, 2016

Hello.
I have this method to get the current protocol in every project, some with http,other with https.
I made this method to help me identify better which protocol is present in my project so I can use properly http or https in my links. I don't know if there exists something that do the same thing, but I searched and found nothing.

Hope this helps or maybe if you don't want it in main class you can put it in a helper class like I did. I extended Kohana_HTTP.

Hello.
I have this method to get the current protocol in every project, some with http,other with https.
I made this method to help me identify better which protocol is present in my project so I can use properly http or https in my links.  I don't know if there exists something that do the same thing, but I searched and found nothing.

Hope this helps or maybe if you don't want it in main class you can put it in a helper class like I did.  I extended Kohana_HTTP.
@WinterSilence
Copy link

Why not use Request::current() ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants