Add a table to a custom page
Posted: 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.
A place where AppGini users can exchange ideas and help each other.
https://forums.appgini.com:443/phpbb/
https://forums.appgini.com:443/phpbb/viewtopic.php?f=2&t=1834
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);