Created
September 13, 2016 21:35
-
-
Save Rachind/782945e60e31746a61a5a40252e2da08 to your computer and use it in GitHub Desktop.
MODX API create alias
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
$new_res = $modx->newObject('modResource', $resource_data); | |
$alias = $new_res->cleanAlias($title); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment