I have another simple question.
I have installed TWG and it seems to be working fine and everyone likes it a lot. So far, so good. Now I'm trying to integrate it into one of the pages on the new site that is being developed and I'm running into a problem. I did try changing the DOCTYPE as suggested in the installation instructions but that didn't seem to make a difference. I think the problem is with the $install_dir parameter but I don't know what it should be for my folder structure.
Here's the folder structure:
abc..........
application.................... config
....................
controllers..............................
controller.php.................... inc
.................... layouts
....................
modules..............................
photogallery.php.................... templates
.......... data
.......... docs
.......... library
.......... storage
..........
bootstrap.phppublic_html.......... css
.......... js
.......... media
..........
twg..........
index.phpWhen a URL is received ("http://abc.com/index.php?page=photogallery"), index.php calls the bootstrap routine (abc/bootstrap.php). It calls a routine in the config folder and then calls controller.php (abc/application/controllers/controller.php). If the page parameter indicates that the desired page is the photogallery, then controller.php will call photogallery.php, which is located in the modules folder.
In photogallery.php, I have the following statements:
<?php
$php_include=true;
$install_dir= '/twg/';
include "http://www.abc.com/twg/index.php";
?>
TWG does come up in the page but it's kind of a mess. There's a message that it cannot find its cache, which leads me to think the problem is with the $install_dir parameter.
Is that correct? And what should the value of that parameter be, given the folder structure I have described?
Many thanks for your help! The product is very good and I'm happy to have purchased a license for it.
Brian