Skip to content

Commit 6e13ab0

Browse files
committed
refactor: Follow core dev
1 parent 91e0214 commit 6e13ab0

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ insert_final_newline = true
1010
trim_trailing_whitespace = true
1111
indent_style = tab
1212

13-
[*.yml]
13+
[{*.sql,*.yml,*.yaml,*.cff}]
1414
indent_style = space
1515
indent_size = 2
1616

CITATION.cff

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
cff-version: 1.2.0
22
message: "If you use this software, please cite it as below."
33
authors:
4-
- given-names: "Kader"
5-
family-names: "Bouyakoub"
6-
orcid: "https://orcid.org/0000-0002-1184-8061"
4+
- given-names: "Kader"
5+
family-names: "Bouyakoub"
6+
orcid: "https://orcid.org/0000-0002-1184-8061"
77
title: "CI Skeleton - Dummy Module"
88
version: 1.0
99
date-released: 2025-05-19

src/init.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
$message = line('The <strong>Dummy Module</strong> is kept to fill dashboard with dummy content, but also to show you how you can add content to it.', 'dummy', false)."<br />";
1919
$message .= line('Action: <code>admin_page_header</code>, so this content is visible at the top of all dashboard pages.', 'dummy', false);
2020

21-
echo app()->theme->js_alert($message, 'warning');
21+
echo driver('hub')->ui->alert($message, 'warning');
2222
});
2323

2424
// --------------------------------------------------------------------
@@ -31,7 +31,7 @@
3131
$heading = '<strong>'.line('Remove this page\'s dummy content.', 'dummy', false).'</strong><br >';
3232
$message = line('The <code>dummy module</code> displays dummy content on the dashboard. Make sure to delete it on production mode.<br />Action: <code>admin_index_header</code>, so this alert is only visible on dashboard main page.', 'dummy', false);
3333

34-
echo app()->theme->js_alert($heading.$message, 'info');
34+
echo driver('hub')->ui->alert($heading.$message, 'info');
3535
});
3636

3737
// --------------------------------------------------------------------
@@ -41,7 +41,7 @@
4141
* @since 2.1
4242
*/
4343
add_action('admin_index_footer', function () {
44-
app()->load->view('dummy/index');
44+
CI_Controller::get_instance()->load->view('dummy/index');
4545
}, 98);
4646

4747
// --------------------------------------------------------------------
@@ -51,7 +51,7 @@
5151
* @since 2.1
5252
*/
5353
add_action('admin_index_footer', function () {
54-
app()->assets->highlight('stackoverflow-dark');
54+
driver('hub')->assets->highlight('stackoverflow-dark');
5555

5656
$content = <<<HTML
5757
<pre class="mt-3 border"><code class="language-php">&lt;?php

0 commit comments

Comments
 (0)