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
| <script type="text/javascript"> | |
| $(function() { | |
| var obj = <?php echo json_encode(array( | |
| 'QuestionNumber' => $special_thing)); ?>; | |
| $('input[name="QuestionNumber"]').val(obj.QuestionNumber); | |
| }); | |
| </script> |
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 | |
| defined('C5_EXECUTE') or die("Access Denied."); | |
| class SampleController extends Controller { | |
| public function __construct() { | |
| if (!ENABLE_REGISTRATION) { | |
| $this->render('/page_not_found'); | |
| } | |
| parent::__construct(); |
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 | |
| defined('C5_EXECUTE') or die("Access Denied."); | |
| /* | |
| * Folder structure determines name | |
| * controllers/my/controller/name ==> MyControllerNameController | |
| */ | |
| class MyControllerNameController extends Controller { | |
| } |
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
| $this->getStyleSheet('main.css'); |
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 | |
| // this grabs the view from single_pages/name-of-page | |
| print $innerContent; | |
| ?> |
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 | |
| $a = new GlobalArea('Area Name'); | |
| $a->setBlockLimit(1); | |
| $a->display($c); | |
| ?> |
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 | |
| $a = new Area('Area Name'); | |
| $a->setBlockLimit(1); | |
| $a->display($c); | |
| ?> |
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
| define('PERMISSIONS_MODEL', 'advanced'); |
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
| jQuery(document).ready(function() { | |
| var site = { | |
| home: { | |
| init: function() { | |
| console.log('home init'); | |
| } | |
| }, | |
| about: { | |
| init: function() { | |
| console.log('about init'); |