Front controller-view for advanced module
So. I've build advanced module with a few simple modules models inside. Admin works fine. I'm very happy with the elegant relationship model!
Now I need to have some controllers for frontend. I have success with a traditional CI controllers, but want to put them in a module directory. I have looking around how is build the blog module, but looking strange for me and confusing me.
Is there are simple way to render a views from module controller for front-end.
Also I want to use a layouts that is in my main codeigniter application view folder.
In forum found found some examples using fuel_page class. But in version 1.4 there is no fuel_page class (or my mistake?).
And second question - how to use fuel_base_model to retriving record(s) (again for front end). For example:
I have a "course" that has many "teachers" and belongs to "member". What is the right way to get the record with relationships records from model and populate in the view.
Sorry for tedious question, but can't find the examples.