Flex PHP Template Wrapper instead of default HTML Template Wrapper.

Flex PHP Template Wrapper instead of default HTML Template Wrapper.

Suppose, like me, you want to run your flex application as index.php instead of the default index.html - if you search around a bit, you'll find that you can change the index.template.html file to index.template.php and it will work - temporarily, but if your project is bigger, like mine, and have many applications, you will find that the only file you can launch is the index.mxml, everyone else will just refuse to show up.

Whats the proper way to do it, then ?

1. rename the index.template.html file in your html-template folder of your source to ${application}${build_suffix}.template.php

2. Right click any mxml applications you have in your project, and select Properties -> Run/Debug settings

3. Edit the required launch configuration

4. Set the url of the file to launch to index.php from the default index.html (incase of index.mxml, but you get the drift)

Congratulations, now you have a php template wrapper for multiple applications in your flex project.

No comments:

Post a Comment