--- nfo/php/libs/org.netfrag.flib/Site.php 2002/12/19 06:17:32 1.3 +++ nfo/php/libs/org.netfrag.flib/Site.php 2002/12/19 16:25:29 1.4 @@ -1,8 +1,11 @@ getRequest()); + + // default data to provide to scope of cms + // TODO/REVIEW: should we be more strict here? + // e.g. just pass in '$site->config->url' or s.th.l.th. + $data = array( + 'config' => $this->config, + 'request' => $this->getRequest(), + ); + + // merge in additional data + foreach ($data_merge as $key => $val) { + $data[$key] = $val; + } + + // load template + $this->loadTemplate($template, $data); + + } + } ?> \ No newline at end of file