Invoking a C5 instance within a framework
Permalink
Hi everybody,
I'm developing a multilingual site and try to marry C5 with a PHP framework (CodeIgniter in this case). While C5 delivers the front page and all "descriptive" pages, CodeIgniter (CI) will take over under a specific URL tree.
While every system should maintain it's own database (including user accounts), it would be great to be able to keep the page layout/style synchronized. Sharing the same CSS and "structural" images is no problem as long as no one exchanges the active template inside C5, but one step farther was to able to also share header/menu/footer templates.
So I wonder if it's possible to invoke a C5 instance from within CI and fetching a "blank" page with header, footer etc. populated by C5? I'm thinking of something similar to view.php for single pages, but in this case having CI filling up $innerContent afterwards.
Best regards,
Alex.
I'm developing a multilingual site and try to marry C5 with a PHP framework (CodeIgniter in this case). While C5 delivers the front page and all "descriptive" pages, CodeIgniter (CI) will take over under a specific URL tree.
While every system should maintain it's own database (including user accounts), it would be great to be able to keep the page layout/style synchronized. Sharing the same CSS and "structural" images is no problem as long as no one exchanges the active template inside C5, but one step farther was to able to also share header/menu/footer templates.
So I wonder if it's possible to invoke a C5 instance from within CI and fetching a "blank" page with header, footer etc. populated by C5? I'm thinking of something similar to view.php for single pages, but in this case having CI filling up $innerContent afterwards.
Best regards,
Alex.