Welcome Guest, Not a member yet? Register   Sign In
Link pages
#1

[eluser]ChristopherDosin[/eluser]
it might be a stupid question but how can i link pages?
for example: i`ve two pages, login and news.

in my route file i`ve set the default controller to news.

but how can i now call my login site?

< a href="/login">blabla</ a> doesnt work.

sorry for this stupid question Tongue
#2

[eluser]bretticus[/eluser]
Watch the tutorial videos or read the manual a tiny bit more thoroughly. Just because your default route is set to a specific controller (and thus the index method of said controller) doesn't mean you can omit the controller path in your URI for other controller methods. In other words, you must link to /news/login, etc. You can bypass the controller path in your URI by setting an explicit route (see routing in the manual.)

You might want to look into the URL Helper too (then again it may have no use for you whatsoever.)
#3

[eluser]Colin Williams[/eluser]
Also, make sure to read and fully understand this page in the User Guide http://ellislab.com/codeigniter/user-gui.../urls.html
#4

[eluser]ChristopherDosin[/eluser]
okay thanks, the videos are really helpful Wink




Theme © iAndrew 2016 - Forum software by © MyBB