bilred / opensocial-development-environment

Automatically exported from code.google.com/p/opensocial-development-environment
0 stars 0 forks source link

gadget spec file not recognized if using .php extension #422

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create project with defaults, opensocial v0.8
2. Add file gadget.php with contents similar to the following:
<?php
print <<<EOF
<?xml version="1.0" encoding="UTF-8"?>
EOF;
?>
<Module>
    <ModulePrefs title="test" author_email="admin@gadget.com">
        <Require feature="opensocial-0.8"/>
    </ModulePrefs>
    <Content type="html" view="home">
        <![CDATA[
            <?php print $home_html ?>
        ]]>
    </Content>
</Module>

where $home_html defines some dynamically generated content that's defined 
further up.

3. attempt to run page through OSDE->run_external_application
ex: http://localhost/osdetest/gadget.php

What is the expected output? What do you see instead?
I would like to run the dynamically generated gadget page as I do in igoogle, 
but it rejects the page because the xml is not well formed.

What version of the product are you using? On what operating system?
Mac OS X 10.6.4
Eclipse Helios 20100617-1415
OSDE plugin v1.0.0

Let me know if you have any followup questions, until I can run a dynamic page 
I don't think this tool will provide value for us, although I'm excited about 
the project and would love to run my application in a dev environment before 
pushing it out to igoogle.

Thanks,
Chris

Original issue reported on code.google.com by cc...@popcap.com on 9 Sep 2010 at 11:31

GoogleCodeExporter commented 8 years ago
After attempting this again with a valid url pointed to my local apache server 
the page is being returned as expected. I'm not sure what I encountered the 
first time I tried this. Thanks!

Original comment by cc...@popcap.com on 13 Sep 2010 at 3:30