[geeklog-cvs] MVCnPHP/contactmanager index.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:25:19 EDT 2003


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

Modified Files:
	index.php 
Log Message:
Now modify PHP's include_path to include the base MVCnPHP package.

Index: index.php
===================================================================
RCS file: /usr/cvs/geeklog/MVCnPHP/contactmanager/index.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** index.php	5 Apr 2003 20:00:52 -0000	1.1.1.1
--- index.php	14 Jul 2003 16:25:17 -0000	1.2
***************
*** 31,38 ****
  require_once 'config.php';
  
  /**
  * Controller part of the MVC
  */
! require_once $gConf['path_mvc'] . 'Controller.class.php';
  
  /**
--- 31,43 ----
  require_once 'config.php';
  
+ // Force the include_path PHP is using to include the MVC path.  If this is
+ // ever added to PEAR we will be able to get rid of this
+ $curPHPIncludePath = ini_get('include_path');
+ ini_set('include_path', $curPHPIncludePath . ':' . $gConf['path_mvc']);
+ 
  /**
  * Controller part of the MVC
  */
! require_once 'Controller.class.php';
  
  /**
***************
*** 40,49 ****
  * commented out when using the XML configuration file.
  */
! require_once 'mvcconfig.php';
  
  session_start();
  //$controller = &new Controller($configData, MVC_ARRAY);
  
! $configData = '/var/www/MVC/contactmanager/mvcconfig.xml'; 
  $controller = &new Controller($configData, MVC_XML);
  $controller->setMVCBase($gConf['path_mvc']);
--- 45,54 ----
  * commented out when using the XML configuration file.
  */
! //require_once 'mvcconfig.php';
  
  session_start();
  //$controller = &new Controller($configData, MVC_ARRAY);
  
! $configData = $gConf['path_mvc'] . 'contactmanager/mvcconfig.xml'; 
  $controller = &new Controller($configData, MVC_XML);
  $controller->setMVCBase($gConf['path_mvc']);





More information about the geeklog-cvs mailing list