# DevPack Template FileType - Allow PHP

**URL:** <https://forums.realmacsoftware.com/t/devpack-template-filetype-allow-php/45688>\
**Category:** Elements API\
**Created:** [December 21, 2024, 12:22pm UTC](https://forums.realmacsoftware.com/t/devpack-template-filetype-allow-php/45688 "2024-12-21T12:22:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![logrunner](https://avatars.discourse-cdn.com/v4/letter/l/59ef9b/32.png) [@logrunner](https://forums.realmacsoftware.com/u/logrunner)\
**Post date:** [December 21, 2024, 12:22pm UTC](https://forums.realmacsoftware.com/t/devpack-template-filetype-allow-php/45688/1 "2024-12-21T12:22:28Z")

</div>

It would be useful to allow Devpack components to allow template files of index.php as well as index.html.

Was trying to figure out why my manually created Devpack wasn’t displaying anything in preview and then suddenly twigged that the filetype .php isn’t catered for.

This would make it easier to edit the php code in Sublime text. It would also be an indicator as to what the index file contains. 🙂

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [December 21, 2024, 12:34pm UTC](https://forums.realmacsoftware.com/t/devpack-template-filetype-allow-php/45688/2 "2024-12-21T12:34:18Z")

</div>

Okay, after a little investigation, turns out this doesn’t currently work, however we can “easily” support it, so it should be added in the next beta or two 😅
