I’m still researching how I’m going to use EE to run my site that also has a custom app built in CI, and now I’m wondering how I can get my main site nav that contains links to blog postings in my CI views, because the app is in the same template as the blog.
My question is, how do I create a single template/include file that I can put in all my EE templates (site and forum) AND put the template/include in my CI app views?
Can I write it in PHP without using the template tags and include it in a EE template? If so, how do I reference the same EE classes in CI? I know they’re similar, but not identical?
I don’t need this menu to be dynamic other than showing the most recent posts below the home and category_1 links. Also how would I determine which page I’m currently on? I found http://ellislab.com/forums/viewthread/53288/)]this thread[/url] in the forums that describes how to add a class to the link if on the page, but it’s using EE template tags… will CI’s $this->uri->segment() work within EE?
This is how my nav will look…
/home (main blog feed)
-- 1st most recent post
-- 2nd most recent post
-- 3rd most recent post
/about
/blog_category_1
-- 1st most recent post in this category
-- 2nd most recent post
-- 3rd most recent post
/my_app (built in CI, when in the app all the links in this nav need to work and link back to EE so the transition between the site and app are seemless)
/forum
/contact
Thanks