16.cache.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php return '/**
  2. * FormIt
  3. *
  4. * Copyright 2009-2012 by Shaun McCormick <shaun@modx.com>
  5. *
  6. * FormIt is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License as published by the Free
  8. * Software Foundation; either version 2 of the License, or (at your option) any
  9. * later version.
  10. *
  11. * FormIt is distributed in the hope that it will be useful, but WITHOUT ANY
  12. * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  13. * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License along with
  16. * FormIt; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
  17. * Suite 330, Boston, MA 02111-1307 USA
  18. *
  19. * @package formit
  20. */
  21. /**
  22. * FormIt
  23. *
  24. * A dynamic form processing Snippet for MODx Revolution.
  25. *
  26. * @var modX $modx
  27. * @var array $scriptProperties
  28. *
  29. * @package formit
  30. */
  31. $modelPath = $modx->getOption(
  32. \'formit.core_path\',
  33. null,
  34. $modx->getOption(\'core_path\', null, MODX_CORE_PATH) . \'components/formit/\'
  35. ) . \'model/formit/\';
  36. $modx->loadClass(\'FormIt\', $modelPath, true, true);
  37. $fi = new FormIt($modx, $scriptProperties);
  38. $fi->initialize($modx->context->get(\'key\'));
  39. $fi->loadRequest();
  40. $fields = $fi->request->prepare();
  41. return $fi->request->handle($fields);
  42. return;
  43. ';