Using EE if segment in CI |
[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
[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.
|
Welcome Guest, Not a member yet? Register Sign In |