Created
April 30, 2021 12:40
-
-
Save katzueno/ec50d296effc121bd71194895a3976d4 to your computer and use it in GitHub Desktop.
How to add jquery to Block 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
<?php | |
class Controller extends BlockController | |
{ | |
// 省略 | |
public function on_start() | |
{ | |
// https://documentation.concrete5.org/developers/assets/registering-an-asset | |
$al = AssetList::getInstance(); | |
$al->register('javascript', 'jquery', 'js/jquery.js'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment