Page 1 of 1

PHP Page

Posted: 2021-05-24 14:47
by Asawyer13
Is it possible to add a php page to the project that just has PHP code in it??

So a page that's not tied to a table?

Thanks
Alan

Re: PHP Page

Posted: 2021-05-24 20:11
by pfrumkin
Hi Alan,

Yes it is not only possible but pretty easy. Of course then you are responsible to getting your users to the page, presumably from a hook file. For instance I have utility php pages that can rebuild a view in my database. In my tablename-dv.js page I create a button that redirects to such a page, does it's thing, then redirects back to the tablename_view.php page. You have to manage all that navigation.

Hope that helps.

~Paul

Re: PHP Page

Posted: 2021-05-25 14:20
by onoehring
Hi Alan,

if you need/want, you can also add your custom page a) to the homepage and/or b) to the menu navigation.
Please check out these files for this:
/hooks/links-navmenu.php
and
/hooks/links-home.php

Olaf