Add a table to a custom page

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
dragon
Veteran Member
Posts: 44
Joined: 2015-09-29 00:06

Add a table to a custom page

Post by dragon » 2015-10-13 00:39

Can someone explain to me how to add a appgini table to a custom page? I'm getting close, just not there yet. Here's what I'm getting. Thanks.
screenshot8.PNG
screenshot8.PNG (10.68 KiB) Viewed 3762 times
Appgini 5.50, Revision 835. Mac OSX 10.11 running Windows 10 on VMWare.

udayvatturi
AppGini Super Hero
AppGini Super Hero
Posts: 85
Joined: 2014-06-14 03:08
Location: India
Contact:

Re: Add a table to a custom page

Post by udayvatturi » 2015-10-13 05:25

Hi,
I think you are close. Did you use the following code.
Hope this give you some idea

Code: Select all

// suppose custom.html is your custom template file 
$templateCode = @file_get_contents('custom.html');
$templateCode = str_replace('<%%VALUE(id)%%>', '<value of id>', $templateCode);
$templateCode = str_replace('<%%VALUE(name)%%>', '<value of name>', $templateCode);
$templateCode = str_replace('<%%VALUE(quantity)%%>', '<value of quantity>', $templateCode);

dragon
Veteran Member
Posts: 44
Joined: 2015-09-29 00:06

Re: Add a table to a custom page

Post by dragon » 2015-10-13 07:22

When I add that to my page, I'm still not able to get it to work. Perhaps my custom.html file is not correct.

Is there an example that I can follow?
Appgini 5.50, Revision 835. Mac OSX 10.11 running Windows 10 on VMWare.

Post Reply