|
12 | 12 | * ## Set a theme by route:
|
13 | 13 | *
|
14 | 14 | * $app->make('\Concrete\Core\Page\Theme\ThemeRouteCollection')
|
15 |
| - * ->setThemeByRoute('/login', 'greek_yogurt'); |
16 |
| - * |
| 15 | + * ->setThemeByRoute('/login', 'greek_yogurt'); |
17 | 16 | *
|
18 | 17 | * ## Register a class override.
|
19 | 18 | *
|
20 | 19 | * $app->bind('helper/feed', function() {
|
21 |
| - * return new \Application\Core\CustomFeedHelper(); |
| 20 | + * return new \Application\Core\CustomFeedHelper(); |
22 | 21 | * });
|
23 | 22 | *
|
24 | 23 | * $app->bind('\Concrete\Attribute\Boolean\Controller', function($app, $params) {
|
25 |
| - * return new \Application\Attribute\Boolean\Controller($params[0]); |
| 24 | + * return new \Application\Attribute\Boolean\Controller($params[0]); |
26 | 25 | * });
|
27 | 26 | *
|
28 | 27 | * ## Register Events.
|
29 | 28 | *
|
30 | 29 | * Events::addListener('on_page_view', function($event) {
|
31 |
| - * $page = $event->getPageObject(); |
| 30 | + * $page = $event->getPageObject(); |
32 | 31 | * });
|
33 | 32 | *
|
34 | 33 | *
|
35 | 34 | * ## Register some custom MVC Routes
|
36 | 35 | *
|
37 | 36 | * Route::register('/test', function() {
|
38 |
| - * print 'This is a contrived example.'; |
| 37 | + * print 'This is a contrived example.'; |
39 | 38 | * });
|
40 | 39 | *
|
41 | 40 | * Route::register('/custom/view', '\My\Custom\Controller::view');
|
42 | 41 | * Route::register('/custom/add', '\My\Custom\Controller::add');
|
43 | 42 | *
|
44 | 43 | * ## Pass some route parameters
|
45 | 44 | *
|
46 |
| - * Route::register('/test/{foo}/{bar}', function($foo, $bar) { |
47 |
| - * print 'Here is foo: ' . $foo . ' and bar: ' . $bar; |
| 45 | + * Route::register('/test/{foo}/{bar}', function ($foo, $bar) { |
| 46 | + * echo 'Here is foo: ' . $foo . ' and bar: ' . $bar; |
48 | 47 | * });
|
49 | 48 | *
|
50 | 49 | *
|
51 | 50 | * ## Override an Asset
|
52 | 51 | *
|
53 |
| - * use \Concrete\Core\Asset\AssetList; |
54 |
| - * AssetList::getInstance() |
| 52 | + * \Concrete\Core\Asset\AssetList::getInstance() |
55 | 53 | * ->getAsset('javascript', 'jquery')
|
56 | 54 | * ->setAssetURL('/path/to/new/jquery.js');
|
57 | 55 | *
|
|
61 | 59 | * use \Concrete\Core\Asset\Asset;
|
62 | 60 | * $al = AssetList::getInstance();
|
63 | 61 | * $al->register(
|
64 |
| - * 'javascript', 'jquery', 'path/to/new/jquery.js', |
65 |
| - * array('version' => '2.0', 'position' => Asset::ASSET_POSITION_HEADER, 'minify' => false, 'combine' => false) |
66 |
| - * ); |
| 62 | + * 'javascript', 'jquery', 'path/to/new/jquery.js', |
| 63 | + * ['version' => '2.0', 'position' => Asset::ASSET_POSITION_HEADER, 'minify' => false, 'combine' => false] |
| 64 | + * ); |
67 | 65 | *
|
68 | 66 | * ----------------------------------------------------------------------------
|
69 | 67 | */
|
0 commit comments