I have two websites that need to share some information, and I would like to use the same styling in the display. The scenario is that I have set up a server (site2) to store podcast audio files that my main site (site1) host has a problem with storing. So site1 wants to pull a listing of podcasts from site2.
I was thinking of the following in the site2 controller:
if (isset($_GET['return'])) {
$this->renderPartial('_index', array('dataprovider'=>$dataProvider), true);
} else {
$this->render('index',array('dataprovider'=>$dataProvider));
}
In site1, I was thinking about:
echo file_get_contents('http://site2/index.php?return');
I figure I’m gonna have to pull the css file somehow, but I’ll work on that later. Anybody have any ideas, comments, thoughts, etc. that can help me figure this out? Thanks