[geeklog-cvs] MVCnPHP ArrayLoader.php,1.2,1.3 BaseLoader.php,1.2,1.3 BaseView.php,1.2,1.3 CHANGELOG,1.1.1.1,1.2 CommandFactory.php,1.2,1.3 CommandInterface.php,1.2,1.3 Constants.php,1.2,1.3 Controller.php,1.2,1.3 Form.php,1.2,1.3 LoaderFactory.php,1.2,1.3 Mapping.php,1.2,1.3 README.txt,1.1.1.1,1.2 Validator.php,1.2,1.3 ViewFactory.php,1.2,1.3 ViewInterface.php,1.2,1.3 XMLLoader.php,1.2,1.3 buildPackage.php,1.1.1.1,1.2 package.xml,1.1.1.1,1.2

tony at iowaoutdoors.org tony at iowaoutdoors.org
Tue Mar 8 00:12:30 EST 2005


Update of /var/cvs/MVCnPHP
In directory www:/tmp/cvs-serv26378

Modified Files:
	ArrayLoader.php BaseLoader.php BaseView.php CHANGELOG 
	CommandFactory.php CommandInterface.php Constants.php 
	Controller.php Form.php LoaderFactory.php Mapping.php 
	README.txt Validator.php ViewFactory.php ViewInterface.php 
	XMLLoader.php buildPackage.php package.xml 
Log Message:
XML Parsing uses the XML DOM and xPath.  XML Config can now be optionally compiled.

Index: buildPackage.php
===================================================================
RCS file: /var/cvs/MVCnPHP/buildPackage.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** buildPackage.php	14 Dec 2004 20:53:36 -0000	1.1.1.1
--- buildPackage.php	8 Mar 2005 05:12:27 -0000	1.2
***************
*** 5,11 ****
  $options = array(
                  'packagefile' => 'package.xml',
!                 'state' => 'beta',
!                 'version' => '2.0.0',
!                 'notes' => 'Development snapshot, not for production use.',
                  'filelistgenerator' => 'file',
                  'baseinstalldir' => 'Geeklog/MVCnPHP',
--- 5,11 ----
  $options = array(
                  'packagefile' => 'package.xml',
!                 'state' => 'stable',
!                 'version' => '2.0.1',
!                 'notes' => 'Beta release, not for production use.',
                  'filelistgenerator' => 'file',
                  'baseinstalldir' => 'Geeklog/MVCnPHP',
***************
*** 16,20 ****
                  	basic features of an MVC implementation.',
                  'doctype' => 'http://pear.php.net/dtd/package-1.0',
!                 'packagedirectory' => '/home/tony/www/Geeklog-2/system/MVCnPHP/',
                  'license' => 'PHP License',
                  'changelogoldtonew' => true,
--- 16,20 ----
                  	basic features of an MVC implementation.',
                  'doctype' => 'http://pear.php.net/dtd/package-1.0',
!                 'packagedirectory' => 'C:\Program Files\Apache Group\Apache2\htdocs\Projects\MVCnPHP',
                  'license' => 'PHP License',
                  'changelogoldtonew' => true,



Index: CHANGELOG
===================================================================
RCS file: /var/cvs/MVCnPHP/CHANGELOG,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** CHANGELOG	14 Dec 2004 20:53:36 -0000	1.1.1.1
--- CHANGELOG	8 Mar 2005 05:12:27 -0000	1.2
***************
*** 4,7 ****
--- 4,15 ----
  -------------------
  
+ 03/07/2005
+ ----------
+ - XML Configuration file can be optionally compiled into a php file containing a PHP array that holds
+   the configuration information for the controller.
+ - Implemented PHP5 XML parsing.  This reduced related code by 75% (and allowed me to remove the
+   XMLParser.php
+ - Minor bug fixes
+ 
  12/14/2004
  -----------


Index: ViewFactory.php
===================================================================
RCS file: /var/cvs/MVCnPHP/ViewFactory.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ViewFactory.php	2 Mar 2005 19:55:49 -0000	1.2
--- ViewFactory.php	8 Mar 2005 05:12:27 -0000	1.3
***************
*** 43,50 ****
          if (file_exists($filename)) {
              require_once($filename);
-             $name = $name;
              return new $name();
          } else {
!         	throw new Exception('Bad set of parameters to ViewFactory::getView');
          }
      }
--- 43,49 ----
          if (file_exists($filename)) {
              require_once($filename);
              return new $name();
          } else {
!             throw new Exception('Bad set of parameters to ViewFactory::getView');
          }
      }



Index: XMLLoader.php
===================================================================
RCS file: /var/cvs/MVCnPHP/XMLLoader.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** XMLLoader.php	2 Mar 2005 19:55:49 -0000	1.2
--- XMLLoader.php	8 Mar 2005 05:12:27 -0000	1.3
***************
*** 74,90 ****
      * @param array $arrayData Array of configuration data
      * @return object Mapping object
      *
      */
      public function getMapping($name, $viewsDir, $commandsDir, $baseURL, $arrayData = '')
      {
-         global $glConf;
-         
          if (!file_exists($arrayData) AND !is_array($this->arrayData)) {
              return false;
          }
          if (empty($this->arrayData)) {                
              $xmlData = file_get_contents($arrayData); 
!         
!             $arrayFileName = $glConf['path'] . 'compiled_mvcconfig.php';
              $needsCompile = false;
              if (file_exists($arrayFileName)) {
--- 74,90 ----
      * @param array $arrayData Array of configuration data
      * @return object Mapping object
+     * @todo should probably scan $this->arrayData for potentially harmful PHP
      *
      */
      public function getMapping($name, $viewsDir, $commandsDir, $baseURL, $arrayData = '')
      {
          if (!file_exists($arrayData) AND !is_array($this->arrayData)) {
              return false;
          }
+         
          if (empty($this->arrayData)) {                
              $xmlData = file_get_contents($arrayData); 
!             $arrayFileName = dirname($arrayData);
!             $arrayFileName = $arrayFileName . '/compiled_mvcConfig.php';
              $needsCompile = false;
              if (file_exists($arrayFileName)) {
***************
*** 96,109 ****
              }
  
!             if ($needsCompile) {           
!         		$this->dom->loadXML($xmlData);		
          		if (!empty($xmlData)) {
                      $this->xmlToArray();
          		}
!             } else {            
!                 require_once $glConf['path'] . 'compiled_mvcconfig.php';
              }
          }
-         
          return parent::getMapping($name, $viewsDir, $commandsDir, $baseURL, $this->arrayData);
      }
--- 96,109 ----
              }
  
!             if ($needsCompile) {   
!                 $this->dom->loadXML($xmlData);		
          		if (!empty($xmlData)) {
                      $this->xmlToArray();
          		}
!         		file_put_contents($arrayFileName, '<?php $this->arrayData = ' . var_export($this->arrayData, true) . '; ?>');
!             } else {    
!                 require_once "$arrayFileName";
              }
          }
          return parent::getMapping($name, $viewsDir, $commandsDir, $baseURL, $this->arrayData);
      }



Index: BaseLoader.php
===================================================================
RCS file: /var/cvs/MVCnPHP/BaseLoader.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** BaseLoader.php	2 Mar 2005 19:55:49 -0000	1.2
--- BaseLoader.php	8 Mar 2005 05:12:27 -0000	1.3
***************
*** 57,61 ****
      	
          $mapping = new MVCnPHP_Mapping();
! 
          if ($name == 'default') {
              $name = $this->getDefaultMapping();
--- 57,61 ----
      	
          $mapping = new MVCnPHP_Mapping();
!         
          if ($name == 'default') {
              $name = $this->getDefaultMapping();

Index: Controller.php
===================================================================
RCS file: /var/cvs/MVCnPHP/Controller.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Controller.php	2 Mar 2005 19:55:49 -0000	1.2
--- Controller.php	8 Mar 2005 05:12:27 -0000	1.3
***************
*** 392,395 ****
--- 392,396 ----
              $this->mapLoader = &MVCnPHP_LoaderFactory::getLoader($configType);
          }
+ 
          $this->mapping = $this->mapLoader->getMapping($this->object, $this->viewDir, $this->commandDir, $this->baseURL, $configData);
  


Index: package.xml
===================================================================
RCS file: /var/cvs/MVCnPHP/package.xml,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** package.xml	14 Dec 2004 20:53:36 -0000	1.1.1.1
--- package.xml	8 Mar 2005 05:12:27 -0000	1.2
***************
*** 16,56 ****
    </maintainers>
    <release>
!     <version>2.0.0</version>
!     <date>2004-12-14</date>
      <license>PHP License</license>
!     <state>beta</state>
!     <notes>Development snapshot, not for production use.</notes>
      <filelist>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" md5sum="bb8ceec495c6734167bacf14fa2f15bd" name="CVS/Entries"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" md5sum="2c9c744d1f586a73d85d4ca4859d94bb" name="CVS/Entries.Log"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" md5sum="b041e729af8e74ec508a976e2dbec3d3" name="CVS/Repository"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" md5sum="f70f73be70f56b5cfae0c9edf90c8a71" name="CVS/Root"/>
!       <file role="php" baseinstalldir="Geeklog/MVCnPHP" md5sum="0497f9805dfc49ea00a0c2a53070903f" name="ArrayLoader.php"/>
!       <file role="php" baseinstalldir="Geeklog/MVCnPHP" md5sum="9f49475f55288cb26a3ecfc2688ae2e5" name="BaseLoader.php"/>
!       <file role="php" baseinstalldir="Geeklog/MVCnPHP" md5sum="ee786af31a8ce10c594f229a071c5362" name="BaseView.php"/>
!       <file role="php" baseinstalldir="Geeklog/MVCnPHP" md5sum="037d7c1a33d98ddc30109e5fb93ba35b" name="buildPackage.php"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" md5sum="6bd65b88f1d582ee606d8de320d1c1e0" name="CHANGELOG"/>
!       <file role="php" baseinstalldir="Geeklog/MVCnPHP" md5sum="cd56807fcdd0b2ceef64e60e5647ff78" name="CommandFactory.php"/>
!       <file role="php" baseinstalldir="Geeklog/MVCnPHP" md5sum="41ccd9abea6ccba494d4fa8edc33fa7e" name="CommandInterface.php"/>
!       <file role="php" baseinstalldir="Geeklog/MVCnPHP" md5sum="eed9acf687e8ef52286dd751395b34b1" name="Constants.php"/>
!       <file role="php" baseinstalldir="Geeklog/MVCnPHP" md5sum="86ee6608d8aba2056a6dcda85ef23b3d" name="Controller.php"/>
!       <file role="php" baseinstalldir="Geeklog/MVCnPHP" md5sum="8666cd5b6efd59c88da63d6a10c93e7e" name="Form.php"/>
!       <file role="php" baseinstalldir="Geeklog/MVCnPHP" md5sum="78a8f5cc165245784ed0b1d6a66691c8" name="LoaderFactory.php"/>
!       <file role="php" baseinstalldir="Geeklog/MVCnPHP" md5sum="4736f85a5c03b7742eecebe9afa90a81" name="Mapping.php"/>
!       <file role="doc" baseinstalldir="Geeklog/MVCnPHP" md5sum="0ae99555d19cbed5d77294eaed969537" name="README.txt"/>
!       <file role="php" baseinstalldir="Geeklog/MVCnPHP" md5sum="b0dc91c6cb44390de77874319a3a4cde" name="Validator.php"/>
!       <file role="php" baseinstalldir="Geeklog/MVCnPHP" md5sum="daad610caeb2004595d02d26a5a36f63" name="ViewFactory.php"/>
!       <file role="php" baseinstalldir="Geeklog/MVCnPHP" md5sum="7bb60ea76d7c2158d76ced374c62a107" name="ViewInterface.php"/>
!       <file role="php" baseinstalldir="Geeklog/MVCnPHP" md5sum="02f5583626659d5c6755dd319039f48d" name="XMLLoader.php"/>
!       <file role="php" baseinstalldir="Geeklog/MVCnPHP" md5sum="faa964f85be1320ea719b091ee7d3f8c" name="XMLParser.php"/>
      </filelist>
    </release>
    <changelog>
      <release>
!       <version>2.0.0</version>
!       <date>2004-12-14</date>
        <license>PHP License</license>
!       <state>beta</state>
!       <notes>Development snapshot, not for production use.</notes>
      </release>
    </changelog>
--- 16,167 ----
    </maintainers>
    <release>
!     <version>2.0.1</version>
!     <date>2005-03-07</date>
      <license>PHP License</license>
!     <state>stable</state>
!     <notes>Beta release, not for production use.</notes>
!     <provides type="class" name="MVCnPHP_ArrayLoader" extends="MVCnPHP_BaseLoader" />
!     <provides type="function" name="MVCnPHP_ArrayLoader::getMapping" />
!     <provides type="class" name="MVCnPHP_BaseLoader" />
!     <provides type="function" name="MVCnPHP_BaseLoader::getMapping" />
!     <provides type="function" name="MVCnPHP_BaseLoader::getDefaultMapping" />
!     <provides type="function" name="MVCnPHP_BaseLoader::getForwards" />
!     <provides type="class" name="MVCnPHP_BaseView" />
!     <provides type="function" name="MVCnPHP_BaseView::printView" />
!     <provides type="function" name="MVCnPHP_BaseView::setOutputMethod" />
!     <provides type="class" name="MVCnPHP_CommandFactory" />
!     <provides type="function" name="MVCnPHP_CommandFactory::getCommand" />
!     <provides type="function" name="MVCnPHP_CommandInterface::execute" />
!     <provides type="class" name="MVCnPHP_Controller" />
!     <provides type="function" name="MVCnPHP_Controller::setMVCBase" />
!     <provides type="function" name="MVCnPHP_Controller::setViewDir" />
!     <provides type="function" name="MVCnPHP_Controller::setCommandDir" />
!     <provides type="function" name="MVCnPHP_Controller::setBaseURL" />
!     <provides type="function" name="MVCnPHP_Controller::processRequest" />
!     <provides type="function" name="MVCnPHP_Controller::clearMessages" />
!     <provides type="function" name="MVCnPHP_Controller::checkMethod" />
!     <provides type="function" name="MVCnPHP_Controller::loadMapping" />
!     <provides type="function" name="MVCnPHP_Controller::isForward" />
!     <provides type="function" name="MVCnPHP_Controller::forwardControl" />
!     <provides type="class" name="MVCnPHP_Form" />
!     <provides type="function" name="MVCnPHP_Form::Form" />
!     <provides type="function" name="MVCnPHP_Form::contains" />
!     <provides type="function" name="MVCnPHP_Form::get" />
!     <provides type="function" name="MVCnPHP_Form::remove" />
!     <provides type="function" name="MVCnPHP_Form::set" />
!     <provides type="function" name="MVCnPHP_Form::getValues" />
!     <provides type="class" name="MVCnPHP_LoaderFactory" />
!     <provides type="function" name="MVCnPHP_LoaderFactory::getLoader" />
!     <provides type="class" name="MVCnPHP_Mapping" />
!     <provides type="function" name="MVCnPHP_Mapping::setBaseURL" />
!     <provides type="function" name="MVCnPHP_Mapping::getBaseURL" />
!     <provides type="function" name="MVCnPHP_Mapping::setName" />
!     <provides type="function" name="MVCnPHP_Mapping::getName" />
!     <provides type="function" name="MVCnPHP_Mapping::setType" />
!     <provides type="function" name="MVCnPHP_Mapping::getType" />
!     <provides type="function" name="MVCnPHP_Mapping::setForwards" />
!     <provides type="function" name="MVCnPHP_Mapping::getForwards" />
!     <provides type="function" name="MVCnPHP_Mapping::getForward" />
!     <provides type="function" name="MVCnPHP_Mapping::setTypePath" />
!     <provides type="function" name="MVCnPHP_Mapping::getPath" />
!     <provides type="class" name="MVCnPHP_Validator" extends="MVCnPHP_BaseCommand" />
!     <provides type="function" name="MVCnPHP_Validator::contains" />
!     <provides type="function" name="MVCnPHP_Validator::get" />
!     <provides type="function" name="MVCnPHP_Validator::remove" />
!     <provides type="function" name="MVCnPHP_Validator::set" />
!     <provides type="function" name="MVCnPHP_Validator::getValues" />
!     <provides type="class" name="MVCnPHP_ViewFactory" />
!     <provides type="function" name="MVCnPHP_ViewFactory::getView" />
!     <provides type="function" name="MVCnPHP_ViewInterface::printView" />
!     <provides type="function" name="MVCnPHP_ViewInterface::setOutputMethod" />
!     <provides type="function" name="MVCnPHP_ViewInterface::getView" />
!     <provides type="class" name="MVCnPHP_XMLLoader" extends="MVCnPHP_BaseLoader" />
!     <provides type="function" name="MVCnPHP_XMLLoader::getMapping" />
      <filelist>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="CVS/Entries"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="CVS/Entries.Extra"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="CVS/Entries.Extra.Old"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="CVS/Entries.Old"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="CVS/Repository"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="CVS/Root"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/blank.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/classtrees_net.geeklog.mvc.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/elementindex.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/elementindex_net.geeklog.mvc.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/errors.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/index.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/li_net.geeklog.mvc.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/packages.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/todolist.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/media/banner.css"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/media/stylesheet.css"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/net.geeklog.mvc/MVCnPHP_ArrayLoader.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/net.geeklog.mvc/MVCnPHP_BaseLoader.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/net.geeklog.mvc/MVCnPHP_BaseView.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/net.geeklog.mvc/MVCnPHP_CommandFactory.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/net.geeklog.mvc/MVCnPHP_CommandInterface.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/net.geeklog.mvc/MVCnPHP_Controller.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/net.geeklog.mvc/MVCnPHP_Form.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/net.geeklog.mvc/MVCnPHP_LoaderFactory.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/net.geeklog.mvc/MVCnPHP_Mapping.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/net.geeklog.mvc/MVCnPHP_Validator.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/net.geeklog.mvc/MVCnPHP_ViewFactory.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/net.geeklog.mvc/MVCnPHP_ViewInterface.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/net.geeklog.mvc/MVCnPHP_XMLLoader.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/net.geeklog.mvc/_ArrayLoader_php.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/net.geeklog.mvc/_BaseLoader_php.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/net.geeklog.mvc/_BaseView_php.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/net.geeklog.mvc/_CommandFactory_php.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/net.geeklog.mvc/_CommandInterface_php.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/net.geeklog.mvc/_Constants_php.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/net.geeklog.mvc/_Controller_php.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/net.geeklog.mvc/_Form_php.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/net.geeklog.mvc/_LoaderFactory_php.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/net.geeklog.mvc/_Mapping_php.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/net.geeklog.mvc/_Validator_php.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/net.geeklog.mvc/_ViewFactory_php.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/net.geeklog.mvc/_ViewInterface_php.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/net.geeklog.mvc/_XMLLoader_php.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/__filesource/fsource_net.geeklog.mvc__ArrayLoader.php.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/__filesource/fsource_net.geeklog.mvc__BaseLoader.php.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/__filesource/fsource_net.geeklog.mvc__BaseView.php.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/__filesource/fsource_net.geeklog.mvc__CommandFactory.php.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/__filesource/fsource_net.geeklog.mvc__CommandInterface.php.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/__filesource/fsource_net.geeklog.mvc__Constants.php.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/__filesource/fsource_net.geeklog.mvc__Controller.php.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/__filesource/fsource_net.geeklog.mvc__Form.php.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/__filesource/fsource_net.geeklog.mvc__LoaderFactory.php.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/__filesource/fsource_net.geeklog.mvc__Mapping.php.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/__filesource/fsource_net.geeklog.mvc__Validator.php.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/__filesource/fsource_net.geeklog.mvc__ViewFactory.php.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/__filesource/fsource_net.geeklog.mvc__ViewInterface.php.html"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="docs/__filesource/fsource_net.geeklog.mvc__XMLLoader.php.html"/>
!       <file role="php" baseinstalldir="Geeklog/MVCnPHP" name="ArrayLoader.php"/>
!       <file role="php" baseinstalldir="Geeklog/MVCnPHP" name="BaseLoader.php"/>
!       <file role="php" baseinstalldir="Geeklog/MVCnPHP" name="BaseView.php"/>
!       <file role="php" baseinstalldir="Geeklog/MVCnPHP" name="buildPackage.php"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="CHANGELOG"/>
!       <file role="php" baseinstalldir="Geeklog/MVCnPHP" name="CommandFactory.php"/>
!       <file role="php" baseinstalldir="Geeklog/MVCnPHP" name="CommandInterface.php"/>
!       <file role="php" baseinstalldir="Geeklog/MVCnPHP" name="Constants.php"/>
!       <file role="php" baseinstalldir="Geeklog/MVCnPHP" name="Controller.php"/>
!       <file role="php" baseinstalldir="Geeklog/MVCnPHP" name="Form.php"/>
!       <file role="data" baseinstalldir="Geeklog/MVCnPHP" name="Geeklog_MVCnPHP-2.0.0.tgz"/>
!       <file role="php" baseinstalldir="Geeklog/MVCnPHP" name="LoaderFactory.php"/>
!       <file role="php" baseinstalldir="Geeklog/MVCnPHP" name="Mapping.php"/>
!       <file role="doc" baseinstalldir="Geeklog/MVCnPHP" name="README.txt"/>
!       <file role="php" baseinstalldir="Geeklog/MVCnPHP" name="Validator.php"/>
!       <file role="php" baseinstalldir="Geeklog/MVCnPHP" name="ViewFactory.php"/>
!       <file role="php" baseinstalldir="Geeklog/MVCnPHP" name="ViewInterface.php"/>
!       <file role="php" baseinstalldir="Geeklog/MVCnPHP" name="XMLLoader.php"/>
      </filelist>
    </release>
    <changelog>
      <release>
!       <version>2.0.1</version>
!       <date>2005-03-07</date>
        <license>PHP License</license>
!       <state>stable</state>
!       <notes>Beta release, not for production use.</notes>
      </release>
    </changelog>


Index: README.txt
===================================================================
RCS file: /var/cvs/MVCnPHP/README.txt,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** README.txt	14 Dec 2004 20:53:36 -0000	1.1.1.1
--- README.txt	8 Mar 2005 05:12:27 -0000	1.2
***************
*** 111,141 ****
  3) PEAR::HTML_QuickForm (Only needed if you require QuickForm integration
  
- INSTALLING THE CONTACT MANAGER EXAMPLE
- ---------------------------------------
- 
- It is strongly recommended that you install the example before you begin using this MVC
- package in any other programs.  Doing so will let you see this package in action.  You 
- are encouraged to dig into the code and learn how this package works and how you might
- leverage it to make your PHP applications better.
- 
- 1) Uncompress the tarball *inside* your webtree
- 2) Create a new MySQL database name something logical like 'contactmanager'
- 3) import the mysql.sql file into your new database
- 3) Edit /path/to/MVC/contactmanager/config.php according to the comments
- 4) Point your browser to the location of the index.php page.
- 
- NOTE: this application is only a sample and is in no way meant for real world
- use.  It is merely meant to show you that MVCnPHP works and give you a taste
- at how you might you it in your PHP applications.
- 
- INSTALLING THE QUCKFORM EXAMPLE
- -------------------------------
- 
- PEAR::HTML_QuickForm is a PEAR package that provides object oriented methods for creating
- HTML forms and for doing data validation.  This example is provided to prove that MVCnPHP
- can be easily extended to use other packages for the creation of views.  Furthermore, 
- MVCnPHP includes QF_View.class.php as part of the base distribution so that you could begin
- using HTML QuickForm right out-of-the-box.  
- 
  INSTALLATION FOR GENERAL USE
  ----------------------------
--- 111,114 ----
***************
*** 145,150 ****
  you PHP application.
  
! 1) Uncompress the tarball preferrably to a folder outside of your webtree but
!    accessible to your web server.
  2) It is likely you will have quite a few different controllers within your 
     application one for each functional area of your application.  Each 
--- 118,125 ----
  you PHP application.
  
! 1) Use the PEAR command to install the package: 
!     #> pear install http://www.tonybibbs.com/Geeklog_MVCnPHP-2.0.0.tgz
!    NOTE: If you used a prior version be sure to uninstall it first:
!     #> pear uninstall Geeklog_MVCnPHP
  2) It is likely you will have quite a few different controllers within your 
     application one for each functional area of your application.  Each 
***************
*** 152,171 ****
  3) ...coming soon
  
- THE PERSISTENCE MANAGER
- -----------------------
- 
- Unique to this MVC impelmentation is a set of classes for implementing object-relational
- mappings between your MVCnPHP models and your backend database.  Using the persistence
- manager can reduce or eliminate the amount of database coding youwould normally have to do
- in your models.  Use of the persistence manager is optional however we do encourage you to
- give the persistence manager version of the contact manage a look so that you can see the
- difference for yourself.
- 
- PERSISTENCE MANAGER REQUIREMENTS
- --------------------------------
- 
- To use the Persistence Manager, we require PEAR::DB be installed.  With fairly new versions
- of PHP PEAR::DB is installed by default.
- 
  DOCUMENTATION
  -------------
--- 127,130 ----





More information about the geeklog-cvs mailing list