Created
October 19, 2016 13:05
-
-
Save MikSDigital/f0f6101754118a955c6e31dc3aa3c306 to your computer and use it in GitHub Desktop.
modx class #2
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
<?php | |
return; | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); | |
class Canonical | |
{ | |
public $modx = null; | |
public $corePath; | |
function __construct(modx &$modx) | |
{ | |
$this->modx = & $modx; | |
$config = array(); | |
$corePath = $this->modx->getOption('core_path'); | |
} | |
} | |
$link = new Canonical($modx); | |
echo count($link); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment