[geeklog-cvs] MVCnPHP LoaderFactory.class.php,1.1.1.1,1.2

geeklog-cvs-admin at lists.geeklog.net geeklog-cvs-admin at lists.geeklog.net
Mon Jul 14 12:40:35 EDT 2003


Update of /usr/cvs/geeklog/MVCnPHP
In directory internal.geeklog.net:/tmp/cvs-serv7021

Modified Files:
	LoaderFactory.class.php 
Log Message:
Now assume MVCnPHP folder is in include_path, also modified it to use new terminology to eliminate confusion

Index: LoaderFactory.class.php
===================================================================
RCS file: /usr/cvs/geeklog/MVCnPHP/LoaderFactory.class.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** LoaderFactory.class.php	5 Apr 2003 20:00:52 -0000	1.1.1.1
--- LoaderFactory.class.php	14 Jul 2003 16:40:33 -0000	1.2
***************
*** 46,62 ****
      *
      */
!     function &getLoader($path, $configType = MVC_XML)
      {
!         if (empty($path)) {
!             echo 'no MVC base dir specified in LoaderFactory::getLoader';
!             exit;
!         }
!         $filename = $path . $configType . '.class.php';
!         if (file_exists($filename)) {
!             require_once $filename;
!             return new $configType();
!         } else {
!             return;
!         }
      }
  }
--- 46,54 ----
      *
      */
!     function &getLoader($configType = MVC_XML)
      {
!         $filename = $configType . '.class.php';
!         require_once $filename;
!         return new $configType();
      }
  }





More information about the geeklog-cvs mailing list