Welcome Guest, Not a member yet? Register   Sign In
Need help with some structure problems.
#3

[eluser]Unknown[/eluser]
[quote author="rogierb" date="1264102868"]Hi and welcome, read up on Routes in the userguide.

With routes you can do all of the above and more...[/quote]

Thnx that did the trick !


But now i ran in to another problem.

I have two menus a topmenu and a sub menu, and i have an if statement that looks like this.
Code:
<li&lt;?php if($this->uri->segment(2) == $link_name) {echo class='selected'} ?&gt;>&lt;?php echo $link_name; ?&gt;</li>

It works just fine as long as i have pressed my links so the uri segemnt is set, but for example on my index page the uri segment issent set.

I thougt i just could do something like this but i dident work.

Code:
&lt;?php if (!isset($this->uri->segment(2))) {$this->uri->sgement(2) = "start"} ?&gt;


Any idea how i can fix this ?


Messages In This Thread
Need help with some structure problems. - by El Forum - 01-21-2010, 07:32 AM
Need help with some structure problems. - by El Forum - 01-21-2010, 07:41 AM
Need help with some structure problems. - by El Forum - 01-21-2010, 08:43 AM
Need help with some structure problems. - by El Forum - 01-21-2010, 08:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB