[eluser]Buso[/eluser]
[quote author="webbhelp" date="1258379222"]Maybe
I don't know what the code does... I thought I knew but maybe not.
I want that when you click on a link and you get to a adress like this: ?p=contact.
Then I want different information/a page will shos up.
So, if you are on page start(?p=start) then you click on a link and get to ?p=contact, then the contact page will shows up.
The things is that I don't want to have like 5 pages with the layout code, HTML and CSS because I want like this:
<div id="all">
<div id="content">
if($_GET['p'] == 'start')
{
include('start.php');
}
if($_GET['p'] == 'contact')
{
include('contact.php');
}
</div>
</div>
You see I include the page I want to show.
How can I do this with CodeIgniter?
That's my question
[/quote]
you should read the userguide
in codeIgniter you can use urls like this:
yourdomain.com/controller/function/parameter
so, depending on which controller or functions or parameters you send via url, you can show different views.
no need to use ugly urls like ?var=value&var2=value&etc;