Welcome to the Browser-Base Game Zone forums!
There is a simple fix for this. Supply a settings file that is configurable by the end user. Create an entry that allows them to specify a sub directory that the framework resides in. Then you simply supply this with a base tag in the document header:Code: (html) [Select]<base href="/[sub-directory]/" />
<base href="/[sub-directory]/" />
Correct me Im wrong, Karnedge wants the variable incremented only once rather than twice, and probably doesnt give a rats about that 1x10^-4 second time loss, so lets get back on topic.
Fatal error: Constructor Database::__construct() cannot be static in [edit: path crap]/includes/database.php on line 136
Wow I don't know how I missed that but delete the static part from __construct and __destruct functions in database.php.
File does not exist: [edit: path crap]/public_html/templates, referer: http://www.mysite.com/trumand/
File does not exist: [edit: path crap]/public_html/account, referer: http://www.mysite.com/trumand/account/account/account/activate
Well if anything, did you placedefine('BASE_HREF','/trumand/') in config.php?
Fatal Error: Could not find: [Edit: Path Crap]/trumand/modules/login/login.php
And, could you post your .htaccess code?
Options +FollowSymLinksOptions +IndexesRewriteEngine On### If using framework in a subdirectory, use /path2framework/RewriteBase /trumand/RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-d### /path2framework/index.phpRewriteRule . /trumand/index.php [L]
Doh actually I don't think its suppose to have a trailing slash for base_href. When you hover over the links do they point to the correct location?Ie; login should point to domain.com/trumand/account/loginI think that's without a trailing slash. Sorry, I'm at work trying to remember while using my blackberry ha. Anyway, if all else fails make sure that link above, if you type it manually, actually goes to the login module.
Ill check it out more when I get home.