I'm wondering if anyone else has this problem and has come up with a
solution.....

Before my company started migrating some of our new development to
CakePHP we used just straight PHP development. Mostly pretty ugly but
it got the job done.

Most of our templates were a simple <?php include_once("/
header.php"); ?> and footers were the same. You threw this at the top
and bottom and were ready to go. The sites progressed and many times a
subdomain would be added for a specific project or the template would
be ported to a vendor, so we would do http calls for <?php echo
file_get_contents("http://oursite.com/header.php";); ?> (then the same
thing for a footer). We would use this same method for Wordpress
installs as well.

The method is slow but at least we could get all of our headers
updated across all of our sites easily.

Now the problem after starting to run with Cake is we can't port the
templates to 3rd party apps or wordpress installs very well.

I had thought about writing some type of cron job makes an HTTP call
on the hour (or whatever) and pull a blank template with some type of
specified string, spit the template in two there for a header and
footer.

That's all I can really come up with but it's still not the best
method. Any suggestions?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to