Page 1 of 1

Add a table to a custom page

Posted: 2015-10-13 00:39
by dragon
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 3763 times

Re: Add a table to a custom page

Posted: 2015-10-13 05:25
by udayvatturi
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);

Re: Add a table to a custom page

Posted: 2015-10-13 07:22
by dragon
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?