From 63fcc0deec2f821104ea1d16378b392cf1650b6e Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Sat, 22 May 2010 16:14:58 +0300 Subject: More fixes, better PHP 5.3 support --- MainView.php | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'MainView.php') diff --git a/MainView.php b/MainView.php index d964b6c..038ccf7 100644 --- a/MainView.php +++ b/MainView.php @@ -5,6 +5,15 @@ // @author Filipp Lepalaan class MainView { + //// + // include something within the project tree + function snippet($path) + { + $base = dirname(__FILE__).'/../..'; + $base = realpath($base); + include $base.'/'.$path; + } + /** * Create HTML