ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Saving template output to file

January 23, 2012 7:15pm

Subscribe [2]
  • #1 / Jan 23, 2012 7:15pm

    Joff

    28 posts

    Slightly odd request so please bear with me…

    I have a site running EE in the domain root, and another PHP application in a subdomain.  So:
    http://domain.com (EE)
    http://app.domain.com (non-EE)

    What I would like is for the subdomain site to inherit the dynamic content (E.g. navigation menus, channel content) to make the two sites as seamless as possible.

    My host doesn’t support curl, which put an end to my plans of simply opening a connection to the EE template url’s.

    I’m now toying with the idea of (somehow) saving the template output to a file on the server. 

    Does this seem feasible?  Are there any better solutions?

  • #2 / Jan 24, 2012 1:24am

  • #3 / Jan 24, 2012 4:19am

    Joff

    28 posts

    Thanks Dylan, that looks like it’s doing what I’m looking for although I’m not sure how it would be used on an EE2 site (there’s no path.php in EE2, is there?).

  • #4 / Jan 26, 2012 5:34am

    Joff

    28 posts

    Sorry to bump this, but I’m still struggling to get this example (http://ellislab.com/forums/viewthread/209350/) working in EE2.  Does anyone have any tips?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases