-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1402 from jim-parry/docs/namespace
Correct class namespacing in the user guide
- Loading branch information
Showing
10 changed files
with
91 additions
and
45 deletions.
There are no files selected for viewing
This file contains 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 file contains 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 file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,9 +51,10 @@ If you need to create a new configuration file you would create a new file at yo | |
**/application/Config** by default. Then create the class and fill it with public properties that | ||
represent your settings:: | ||
|
||
<?php namespace Config; | ||
namespace Config; | ||
use CodeIgniter\Config\BaseConfig; | ||
|
||
class App extends \CodeIgniter\Config\BaseConfig | ||
class App extends BaseConfig | ||
{ | ||
public $siteName = 'My Great Site'; | ||
public $siteEmail = '[email protected]'; | ||
|
@@ -199,8 +200,9 @@ the same way as described for namespaced variables. | |
A sample configuration class setup for this:: | ||
|
||
namespace App\Config; | ||
use CodeIgniter\Config\BaseConfig; | ||
|
||
class MySalesConfig extends \CodeIgniter\Config\BaseConfig | ||
class MySalesConfig extends BaseConfig | ||
{ | ||
public $target = 100; | ||
public $campaign = "Winter Wonderland"; | ||
|
This file contains 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 file contains 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 file contains 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 file contains 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 file contains 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 file contains 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 file contains 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