Welcome Guest, Not a member yet? Register   Sign In
Problem with base_url() and https://
#1

[eluser]Rubiz'[/eluser]
Hi!!

I have problems with base_url(), my base_url is a https:// address, I dont know if it makes diference. Everytime I put base_url(), like this:
Code:
flash('<?=base_url()?>swf/flash.swf')
It looks like that in source:
Code:
flash('

Anyone has idea about that?
#2

[eluser]Rubiz'[/eluser]
Changing for other address, non https:// in the same host didnt work to...

It outputs a message that de function base_url() is undefined
#3

[eluser]tonanbarbarian[/eluser]
to access base_url() you need to load the url helper

So you can either add it to the autoload
or you can load the helper just when needed in the controller
#4

[eluser]Rubiz'[/eluser]
weird, in my past project I didnt have to autoload url... but I'll try this, thanx!
#5

[eluser]Rubiz'[/eluser]
You are right, in this site I had to autoload de helper url...




Theme © iAndrew 2016 - Forum software by © MyBB