diff --git a/app/Controllers/Pages.php b/app/Controllers/Pages.php index 4e09683..eb71cbb 100644 --- a/app/Controllers/Pages.php +++ b/app/Controllers/Pages.php @@ -5,7 +5,13 @@ namespace App\Controllers; class Pages extends BaseController { public function home() { - echo "this site is made for Technidata integration with Transmedic"; + $db = \Config\Database::connect(); + $sql = "select top 10 * from cmod.dbo.CM_TM_LOGS order by LOGDATE desc"; + $query = $db->query($sql); + $results = $query->getResultArray(); + $data['messages'] = $results; + + return view('recent_messages', $data); } } diff --git a/app/Views/recent_messages.php b/app/Views/recent_messages.php new file mode 100644 index 0000000..e2cff5b --- /dev/null +++ b/app/Views/recent_messages.php @@ -0,0 +1,40 @@ + + + + + + + Your Page Title + + + + + + +

Recent Request from TM

+ date : $logdate
".htmlspecialchars($prettyjson)."

"; + } + } + } + ?> + + \ No newline at end of file diff --git a/app/Views/welcome_message.php b/app/Views/welcome_message.php deleted file mode 100644 index c18eca3..0000000 --- a/app/Views/welcome_message.php +++ /dev/null @@ -1,331 +0,0 @@ - - - - - Welcome to CodeIgniter 4! - - - - - - - - - - - -
- - - -
- -

Welcome to CodeIgniter

- -

The small framework with powerful features

- -
- -
- - - -
- -

About this page

- -

The page you are looking at is being generated dynamically by CodeIgniter.

- -

If you would like to edit this page you will find it located at:

- -
app/Views/welcome_message.php
- -

The corresponding controller for this page can be found at:

- -
app/Controllers/Home.php
- -
- -
- -
- -

Go further

- -

- - Learn -

- -

The User Guide contains an introduction, tutorial, a number of "how to" - guides, and then reference documentation for the components that make up - the framework. Check the User Guide !

- -

- - Discuss -

- -

CodeIgniter is a community-developed open source project, with several - venues for the community members to gather and exchange ideas. View all - the threads on CodeIgniter's forum, or chat on Slack !

- -

- - Contribute -

- -

CodeIgniter is a community driven project and accepts contributions - of code and documentation from the community. Why not - - join us ?

- -
- -
- - - - - - - - - - - - -