Welcome Guest, Not a member yet? Register   Sign In
basic URL routing
#1

[eluser]RaiNnTeaRs[/eluser]
Hi all,

I have already forgot, about how the CodeIgniter works

as long as I remember, CodeIgniter didn't allow direct url link, such as :
'www.abc.com/applications/controllers/welcome.php'

So, what I would like to ask is :

If I have welcome_message.php ( View type in MVC )
and there are 5 links insides ..

How can I redirect them ? Thx
#2

[eluser]DjLeChuck[/eluser]
Hi RaiNnTeaRs,

Just like that :
Code:
<?php
// Use base_url() if you want an absolute URL
// Then after index.php (required if you did'nt use an .htaccess)
//     use the controller name and the function name
$my_link = base_url().'index.php/members/edit/';
?>
#3

[eluser]RaiNnTeaRs[/eluser]
Ah i c.. thx,my mistake is because I thought because I've changed the controller's filename , I ought to change how to call them too..

Thx bro
#4

[eluser]DjLeChuck[/eluser]
You're welcome. ;-)
#5

[eluser]KarlBallard[/eluser]
I'd personally recommend site_url()...




Theme © iAndrew 2016 - Forum software by © MyBB