Skip to content

Instantly share code, notes, and snippets.

@vanchelo
Created February 7, 2013 13:15
Show Gist options
  • Save vanchelo/4730831 to your computer and use it in GitHub Desktop.
Save vanchelo/4730831 to your computer and use it in GitHub Desktop.
parseChunk for MODX Evo
<?php
/**
* parseChunk
*
* @category parser
* @version 0.1
* @license GNU General Public License (GPL), http://www.gnu.org/copyleft/gpl.html
* @param string $ChunkName Имя чанка
* @return string распарсеный чанк
* @author Agel_Nash <Agel_Nash@xaker.ru>
*
* @example [!parseChunk? &ChunkName=`form` &username=`Agel_Nash`!]
*/
return isset($ChunkName) ? $modx->parseChunk($ChunkName, $modx->event->params,'[+','+]') : '';
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment