$this->installSinglePage('/dashboard/test', t('Test'), $pkg); private function installSinglePage($path, $cName, $pkg) { $page = Page::getByPath($path); if (!is_object($page) || $page->isError()) { $page = SinglePage::add($path, $pkg); $page->update(array( 'cName' => $cName, )); } }
You are allowed to delete your post for 5 minutes after it's posted.
Delete
Are you sure you would like to mark this post as spam?
Mark as Spam
This script will report this post as spam and add a permanent IP ban for this user, type "DESTROY" below to continue.
DESTROY SPAMMER
You must have a user account and be signed to perform this action.
controller file: application/controllers/single_page/dashboard/test.php
view file: application/single_pages/dashboard/test.php
+ the page itself