Because the OOE = Object Oriented Examples = One Of Each module uses object-oriented form controllers, some harmless, minor modifications to the Drupal7 core files
includes/ajax.inc are required to support callback on static object-oriented methods (since Drupal7 assumes than only non-OO functions will be used as callbacks). These modifications are explained in detail at: OOE: special tweaks to Drupal7 core's form.inc required to support object-oriented form controllers.
includes/ajax.inchas been made available in the hope it will be adopted into Drupal-7.37 core. Please add your support by helping with community testing at https://www.drupal.org/node/2166371 and https://www.drupal.org/node/2165895 !
Until the OOE patch for Drupal7 is accepted into Drupal-7.37 core, you may now experiment with the OOE = Object Oriented Examples = One Of Each tutorial module easily using this OOE bundle download for Drupal-7.36, including the modified
includes/form.inc required for OOE-style object-oriented form controllers, and packaged with the dependencies X Autoload and the original Page Controller module (which strategy influenced the controllers of the page and form coontrollers of OOE project). No other part of the Drupal-7.36 release in this bundle has been touched, and all code is made available subject to its original licences.
If you have any problems downloading and installing this OOE bundle for Drupal-7.36 please contact Webel IT Australia using this form for assistance.
To install and run the OOE = Object Oriented Examples = One Of Each tutorial module using this bundle:
1. Download the TGZ archive bundle from here.
2. Unpack it in your web root. For Mac this will by default be something like:
/Library/WebServer/Documents $ tar xfz ~/Downloads/drupal-7.36-ooe-20150404.tgz
3. This will give you a drupal instance called:
4. Perform the usual Drupal installation, including creation of a database, assignment of database user permissions, and copying
/sites/default/settings.php and including your database connection, as described under the main Drupal.org Installation Guide.
[If you are fluent with Drush, you may use it to assist this stage, but please don't use Drush to perform a full Drupal download yet (until the Drupal7
includes/form.inc core is patched for OOE).]
5. You should be able to then perform:
6. You should be able to load your home page as:
7. Create a single Basic Page (/node/add/page) or Article (/node/add/article) and make sure it is Promoted to front page under the publishing options. You will need at least a few content pages for the OOE versions of the Current Posts demos to work nicely, but one is enough to get you started.
/admin/modules/list UI or Drush, enable the OOE module:
/Library/WebServer/Documents/drupal-7.36-ooe $ drush -y en ooe
This will also enable the dependencies X Autoload and Page Controller.
9. Then reload your home page
http://localhost/drupal-7.36-ooe, which should now show some additional blocks for the OOE demonstration. If the blocks don't appear immediately, check under
10. Then visit the OOE demonstrations page:
© Copyright 2001 - 2016 Webel IT Australia (ABN: 67 677 268 579). All rights reserved (except as specified below).
PHP code examples from Webel IT Australia on this site are distributed under the GNU General Public License.
Excludes text and code snippets from Drupal.org quoted for educational purposes.
Drupal’s online documentation is © 2000-2014 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0.
PHP code from Drupal.org is distributed under the GNU General Public License.
Drupal® is a registered trademark of Dries Buytaert.
Text quoted from Wikipedia for educational purposes is made available under the Creative Commons Attribution-ShareAlike License.
Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.
Site developed by Webel IT Australia.