Welcome Guest, Not a member yet? Register   Sign In
About Basepath and CSS/Image linking
#1

[eluser]sirfak[/eluser]
Hi,

In my production setup my website points to /public_html folder.Inside that I have one folder named as xyz_folder and inside that I have index.php and system (CodeIgniter stuff) so over all structure looks like
--public_html
--xyz
--index.php (codeigniter)
--system (codeigniter)

My redirection is set such that my website www.example.com points to index.php (of CodeIgniter)

Now i want to know following things:
a)What should i set my base path? Is it same as www.example.com and it should point to the index.php?
b)Where should i save my image files in CodeIgniter? Is it in view folder?
c)This is a silly doubt but still.how do i link image and css file?'

thanks alot in advance
sirfak
#2

[eluser]Thorpe Obazee[/eluser]
Check this helper for css etc: http://codeigniter.com/wiki/Asset_Helper/

Yes, http://www.example.com/
#3

[eluser]sirfak[/eluser]
Hi I am not able to find any Asset_Helper class.
Thnks
sirfak
#4

[eluser]Thorpe Obazee[/eluser]
I just gave you the link to it. Look at my other post again.

Anyway, there are a few ways to doing doing this.

Here's one without any helper: http://ellislab.com/forums/viewthread/118105/
#5

[eluser]sirfak[/eluser]
Hi.
I mean I didnt find Asset_Helper in my helper folder.
thnks
#6

[eluser]Thorpe Obazee[/eluser]
It isn't there. You need to download it from the wiki link I gave you.
#7

[eluser]sirfak[/eluser]
Hi.
Does base_url indicates where is my index.php file (which comes with )?
thnks
sirfak
#8

[eluser]Thorpe Obazee[/eluser]
It assumes that your index.php is where your base url is pointed to.




Theme © iAndrew 2016 - Forum software by © MyBB