CodeIgniter Forums

Full Version: How do I remove CodeIgniter from my url?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]mousewonders[/eluser]
I know this is a stupid question but I have looked everywhere and cant seem to find where to remove codeigniter from my url. The system seems to think I have my setup within a folder called Codeigniter which I dont. http://127.0.0.1/CodeIgniter/index.php/events/data/view

It should be http://127.0.0.1/index.php/events/data/view

Thanks for your help.

Richard

El Forum

[eluser]mousewonders[/eluser]
nevermind I am retarded... can you say... MORON IN YOUR CONFIG FILE!!.. hehe

El Forum

[eluser]wiredesignz[/eluser]
That was an April fools joke! Wasn't it? :lol:

El Forum

[eluser]mousewonders[/eluser]
I'm not sure what I was thinking. I kept looking at it but refused to see the word CodeIgniter HAHA! As soon as I made the posted and switched screens back to my work.. right there it was!! I didnt even have to scroll in dreamweaver.. lmao. I am retarded.

but yeah.. APRIL FOOLS!... <grin>

El Forum

[eluser]mousewonders[/eluser]
I guess I didnt state my problem correctly..

Code:
function edit()
    {
    $getid = $this->uri->segment(4);
    $where = 'event_id = $getid';
    $data['query'] = $this->db->get('events', $where);

}
The above works.. The only problem I have now is to pull the data from the query such as the event_title and the event_detail.

I tried looking in the user guide but it only really shows how to pull the data using a foreach. Well I will only have 1 row which needs to be editted.

El Forum

[eluser]mousewonders[/eluser]
OMG. Maybe it is time to goto bed. I didnt mean to post this under this topic...