Install Local Version on WAMP

2 posts by 2 authors in: Forums > CMS Builder
Last Post: November 6, 2012   (RSS)

Re: [gversion] Install Local Version on WAMP

By gkornbluth - November 6, 2012

Hi Greg,

Assuming that you've installed CMSB on your WAMP server, at the top of your viewer pages, you may need to change the dirsToCheck path.

Both my CMSB installation and viewer files are in my C:/wamp/www/SIGNUP directory, so my load viewer library call looks like this:

<?php
// load viewer library
$libraryPath = 'cmsAdmin/lib/viewer_functions.php';
$dirsToCheck = array('C:/wamp/www/SIGNUP/','','../','../../','../../../');
foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}
if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }
?>


Hope that helps,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php