[eluser]koryrok[/eluser]
Hi All,
I find myself doing a lot of the following:
Code:
if ($this->uri->segment(1) == 'foo' || $this->uri->segment(1) == 'bar' ){
$pageName = $this->uri->segment(2);
}
Whats the best way to shorten this? Why doesnt this work?
Code:
if ($this->uri->segment(1) == 'foo' || 'bar' ){
$pageName = $this->uri->segment(2);
}