Created
December 18, 2014 19:55
-
-
Save kellyelton/221ef10e3de4267beb4f to your computer and use it in GitHub Desktop.
ConcreteSnippit
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
public function display() { | |
$c = Page::getCurrentPage(); | |
if(!$c->cID) | |
{ | |
$c = Page::getByPath("/page_not_found"); | |
if(!$c->cID) | |
echo "1"; | |
} | |
parent::getOrCreate($c, $this->arHandle, 1); | |
parent::display($c); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment