Pulling concrete5 data outside of concrete5

Permalink
So part of my site has CMS content which is in concrete5 but there's another part of my site that's going to be 100% code driven using Zend framework. What I want to do is be able to use the header and footer from concrete5 in my zend framework but allow it to be editable from a concrete5 page (it uses stacks globally). Is there an easy way to do this?

Currently my header and footer lives in the elements directory of my theme and both pull in stacks data that are used site wide.

Is there a couple of libraries that I can load in the Zend Framework from Concrete5 that will allow to just pull a rendered version of those?

Thanks.
Ryan

 
jbx replied on at Permalink Reply
jbx
Is it possible you could accomplish the code driven part using single pages? That way you still have access to all of the ZF libraries, but also C5's libraries too...

Jon
ryanrk replied on at Permalink Reply
If it was a single page I would but I'm going to be having multiple pages interacting with each other with session and DB interations and I would really need to use the MVC functionality of Zend Framework to make this work clean and organized. I would love to have the header and footer shared.
frz replied on at Permalink Best Answer Reply
frz
How about building a single page (or just making a blank page at a public URL) with a comment in the main content area you can scan for.

Then use wget to grab the page, look for that inner area with the comment, and from the zend side use that as your header/footer.. There might even be a better way in zend than wget to do that.
ryanrk replied on at Permalink Reply
Yea, can even take it further and make that page do some sort of json or xml feed and pull that in.