Welcome Guest, Not a member yet? Register   Sign In
how to laod a page without putting a function in the uri
#1

[eluser]virginboy[/eluser]
in code igniter you need to specify a function when loading a page.

like this http://www.domain.com/index.php/function_name/

is there a way the i can load function_name() by on just calling index.php

like this: http://www.domain.com/index.php

or

like this: http://www.domain.com

and will automatically load function_name()


So that views will only need to type domain.com not domain.com/index.php/function_name
#2

[eluser]Colin Williams[/eluser]
In that case, CI will call your default controller's index() function.
#3

[eluser]virginboy[/eluser]
can you teach me a quick way how can it be done?
#4

[eluser]Colin Williams[/eluser]
http://ellislab.com/codeigniter/user-gui...ml#default
#5

[eluser]virginboy[/eluser]
thanks for the help. ive already found the answer. i just need to modify the routes.php. i forgot :cheese:




Theme © iAndrew 2016 - Forum software by © MyBB