Using a controller on 2 pages
So, I tried finding a way to do this simply, but I'm at a loss (though I think it might have something to do with view _variables.
I have a controller for my contact page. My CMS has the form and content that I'm wanting to reuse.
my site.com/contact page works perfectly and now I want the same content working on site.com/mobile/contact but with a different view layout (mobile of course).
What's the best way to achieve this?
I should note that currently I'm pulling the data from each of the root pages via $this->db->get_where to grab the content out of the database directly instead of using the module for Fuel's Pages module as I'm unsure how to access that directly either... again possibly something to do with the view _variables?