getProtocol

Navigation:  Development > Function Reference > Helpers > Config >

getProtocol

Previous pageReturn to chapter overviewNext page

Return http(Hyper Text Transfer Protocol) mode.  See below example
 
$http_mode = App::Config()->getProtocol();

 

It return http:// or https:// as per browsing mode.