Welcome Guest, Not a member yet? Register   Sign In
Using EE if segment in CI
#1

[eluser]doubleplusgood[/eluser]
Hello,

I was wondering if it is possible to use something similar to the following code from EE in CI?

http://gist.github.com/221982

As you can probably work out, the if segment will set a "current" class to a link if that segment is contained in the URI. I discovered this trick from Ryan Irelan's EE Screencasts.

Thanks,
Neil
#2

[eluser]Colin Williams[/eluser]
That is enabled by EE's template parser, not available in CI. You would need something like Smarty for a more robust non-PHP templating language.
#3

[eluser]Phil Sturgeon[/eluser]
I would look at Twig or Dwoo over Smarty.




Theme © iAndrew 2016 - Forum software by © MyBB