Integrating another php application
Posted: Sat Jan 22, 2005 11:31 am
Not sure where the problem lies but I have an application called PHP Catalog that I want to include in my CMSMS website. I have created a Smarty plugin (ala your instructions about integrating Singapore) which is included in the relevant page. However when I browse to the page I get the following error:
{nocache:91b51115fbe63d7d98b1ec4b05b5f212#0}
{/nocache:91b51115fbe63d7d98b1ec4b05b5f212#0}
{nocache:91b51115fbe63d7d98b1ec4b05b5f212#1}
Warning: dbi_conn(/class/class.DBI_mysql.inc): failed to open stream: No such file or directory in /home/xxx/public_html/xxx/xxx/catalogue/include/stdlib.inc on line 192
Fatal error: dbi_conn(): Failed opening required '/class/class.DBI_mysql.inc' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxx/public_html/xxx/xxx/catalogue/include/stdlib.inc on line 192
From what I can gather, either CMSMS or Smarty is failing to recognise an object called $CFG. The code is:
which all seems OK. If I call the page directly from a browser it works fine. $CFG is used throughout the application.
Any ideas on how I can fix it?
Thanks in advance
Psy
{nocache:91b51115fbe63d7d98b1ec4b05b5f212#0}
{/nocache:91b51115fbe63d7d98b1ec4b05b5f212#0}
{nocache:91b51115fbe63d7d98b1ec4b05b5f212#1}
Warning: dbi_conn(/class/class.DBI_mysql.inc): failed to open stream: No such file or directory in /home/xxx/public_html/xxx/xxx/catalogue/include/stdlib.inc on line 192
Fatal error: dbi_conn(): Failed opening required '/class/class.DBI_mysql.inc' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxx/public_html/xxx/xxx/catalogue/include/stdlib.inc on line 192
From what I can gather, either CMSMS or Smarty is failing to recognise an object called $CFG. The code is:
Code: Select all
/* define a generic object */
class object {};
/* setup the configuration object */
$CFG = new object;
Any ideas on how I can fix it?
Thanks in advance
Psy