-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compact( ) in Basic::view( ); updated Basic_Form
- Loading branch information
Showing
10 changed files
with
53 additions
and
125 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,16 @@ | ||
<?php | ||
|
||
/** | ||
* In the controller file, you can handle and process variables, | ||
* classes and functions; use if-elseif statements; load models, and | ||
* include files. The variables can then be used in the view file. | ||
*/ | ||
|
||
class EncryptionController | ||
{ | ||
|
||
public function index() | ||
{ | ||
|
||
$page_title = 'Data Encryption'; | ||
$plaintext = 'ABC123'; | ||
$encrypted = Basic::encrypt($plaintext); | ||
$decrypted = Basic::decrypt($encrypted); | ||
|
||
$data = compact('page_title'); | ||
Basic::view('encryption', $data); | ||
|
||
Basic::view('encryption', compact('page_title', 'plaintext', 'encrypted', 'decrypted')); | ||
} | ||
|
||
} |
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 |
---|---|---|
@@ -1,20 +1,13 @@ | ||
<?php | ||
|
||
/** | ||
* In the controller file, you can handle and process variables, | ||
* classes and functions; use if-elseif statements; load models, and | ||
* include files. The variables can then be used in the view file. | ||
*/ | ||
|
||
class HomeController | ||
{ | ||
|
||
public function index() | ||
{ | ||
$page_title = 'Starter Application'; | ||
|
||
$data = ['page_title' => 'Starter Application']; | ||
Basic::view('home', $data); | ||
|
||
Basic::view('home', compact('page_title')); | ||
} | ||
|
||
} |
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
Oops, something went wrong.