Skip to content

Commit

Permalink
update autoload.php file and controller class
Browse files Browse the repository at this point in the history
  • Loading branch information
ronmarasigan committed Jul 30, 2024
1 parent 29a3cf0 commit 1dfd48b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions app/config/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@
|
| These are the things you can load automatically:
|
| 1. Helpers
| 1. Helper functions
| 2. Models
| 3. Libraries
| 4. Custom config files
|
*/

Expand All @@ -79,7 +80,7 @@
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['helper'] = array('url', 'file');
| $autoload['helpers'] = array('url', 'file');
*/
$autoload['helpers'] = array();

Expand All @@ -89,7 +90,7 @@
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['model'] = array('model1_model', 'model2_model')
| $autoload['models'] = array('model1_model', 'model2_model')
*/
$autoload['models'] = array();

Expand All @@ -99,11 +100,11 @@
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['config'] = array('config1', 'config2');
| $autoload['configs'] = array('config1', 'config2');
|
| NOTE: This item is intended for use ONLY if you have created custom
| config files. Otherwise, leave it blank.
|
*/
$autoload['config'] = array();
$autoload['configs'] = array();
?>
4 changes: 2 additions & 2 deletions scheme/kernel/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,9 @@ public function __construct()
{
$this->call->helper($autoload['helpers']);
}
if(count($autoload['config']) > 0)
if(count($autoload['configs']) > 0)
{
$this->config->load($autoload['config']);
$this->config->load($autoload['configs']);
}
}

Expand Down

0 comments on commit 1dfd48b

Please sign in to comment.