Using Viewi and CI4 |
I recently came across Viewi https://viewi.net/ A package to add interactivity to an app using PHP. It's similar to Laravel's Livewire. I gave it a go and try to see if it will work with CI4. I got the pages to render but i noticed the Viewi routes are overiding CI routes depending on which one is intialized first in public/index.php.
PHP Code: /* PHP Code: app/Config/Routes.php copied from @InsiteFX answer, this was working for me so suggesting ya too.
Learning Codeigniter
(08-22-2022, 07:29 AM)SubrataJ Wrote:This is for loading routes from different modules it doesn't solve my issue.
I created CodeIgniter4 Viewi Demo:
https://github.com/kenjis/ci4-viewi-demo
I've update the adapter:
https://github.com/kenjis/ci4-viewi-demo And created another sample code for the Viewi's tutorial: https://github.com/kenjis/ci4-viewi-tour-of-heroes
CodeIgniter 4 Integration | Viewi
https://viewi.net/docs/integrations-code-igniter4 |
Welcome Guest, Not a member yet? Register Sign In |