PHP Page

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
Asawyer13
Posts: 21
Joined: 2016-08-28 22:40

PHP Page

Post by Asawyer13 » 2021-05-24 14:47

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

pfrumkin
Veteran Member
Posts: 157
Joined: 2020-02-18 17:58
Location: Albuquerque, New Mexico USA

Re: PHP Page

Post by pfrumkin » 2021-05-24 20:11

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

User avatar
onoehring
AppGini Super Hero
AppGini Super Hero
Posts: 1156
Joined: 2019-05-21 22:42
Location: Germany
Contact:

Re: PHP Page

Post by onoehring » 2021-05-25 14:20

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

Post Reply