Create php file with extension

Discussion forum for Extension Writers regarding Extension Development.
Post Reply
Trubs
Registered User
Posts: 6
Joined: Thu Oct 04, 2018 7:03 pm

Create php file with extension

Post by Trubs » Thu Oct 04, 2018 7:09 pm

I've just started creates own extensions. I have a question. Is this possible to create php file with specific code in it using phpbb extension? e.g. WIth install extension test.php will be create and I can go to: test.com/test.php. test.php contains e.g.:

Code: Select all

<?php
echo "hello world";
?>
Last edited by kinerity on Thu Oct 04, 2018 11:14 pm, edited 1 time in total.
Reason: Moved to Extension Writers Discussion

User avatar
kinerity
Community Team Member
Community Team Member
Posts: 1940
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Truscott
Contact:

Re: Create php file with extension

Post by kinerity » Thu Oct 04, 2018 11:14 pm

I'm not sure I follow. Can you explain a little better?
Kailey Truscott - Community Team

User avatar
AbaddonOrmuz
Registered User
Posts: 405
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: Create php file with extension

Post by AbaddonOrmuz » Fri Oct 05, 2018 1:51 am

If I understood correctly you want to add a new page, right? The way you want it might not be the best choice, you should create a route.

https://area51.phpbb.com/docs/dev/3.2.x ... llers.html

Also check the official Pages extension (DuckDuckGo/Google is your friend), maybe you don't have to create an extension.
A proudly user of Arch Linux :: /r/sddm_themes

Post Reply

Return to “Extension Writers Discussion”

Who is online

Users browsing this forum: No registered users and 6 guests