05.12.2011 20:20, Wawrzek Niewodniczanski пишет:
renderCell function surery exist in interfaces.php: But it is not availible from standalone cli script. Are you sure you've called your script by web request?
This is my example: <?php include ('/var/www/racktables-0.19/wwwroot/inc/init.php'); $adminuser = spotEntity ('user', 1); // Admin account is always number 1. renderCell ($adminuser); amplifyCell ($adminuser); ?>
That's the case. As I said before, renderCell is defined in interface.php, which is not automatically included when running in CLI mode. Anyway this function generates an HTML code. Are you sure this is what you want from this script?
Try this: <?php $script_mode = TRUE; include ('/var/www/racktables-0.19/wwwroot/inc/init.php'); $adminuser = spotEntity ('user', 1); amplifyCell ($adminuser); print_r ($adminuser); ?> -- Best regards, Alexey