CodeIgniter Forums
CodeIgniter4 Viewi Demo - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Addins (https://forum.codeigniter.com/forumdisplay.php?fid=34)
+--- Thread: CodeIgniter4 Viewi Demo (/showthread.php?tid=90227)



CodeIgniter4 Viewi Demo - kenjis - 02-24-2024

Viewi allows you to create reactive web applications using your favorite PHP. It converts your code into native javascript code to run it in the browser. This way, you get a perfectly rendered HTML page on the first load, and at the same time, your page will remain reactive without requesting each next page on link clicks, etc. 
See https://viewi.net/

This is CodeIgniter 4.4 and Viewi 2 integration:
https://github.com/kenjis/ci4-viewi-demo


RE: CodeIgniter4 Viewi Demo - InsiteFX - 02-25-2024

@kenjis Thank you, looks interesting.


RE: CodeIgniter4 Viewi Demo - FabriceL - 03-10-2024

Hello to you both,

I'm a bit lost,
I'm in the process of creating a hybrid tool between sass and rapid site creation tools.

I've been interested in Alpinejs/htmx for a few months. I've been following the CI4 community very closely and today I saw @InsiteFX ci4-viewi which is incredible.

What direction to take just today? Should I abandon alpinejs/htmx or go for another solution.

Thanks for your experienced feedback


RE: CodeIgniter4 Viewi Demo - kenjis - 03-10-2024

htmx and viewi have different architectures.
So you need to decide which is better for you.

If htmx is enough for you, it might be better. 
It is supported by many organizations, and used in the world.
See https://risingstars.js.org/2023/en#section-framework
and there is a HTMX helper library for CI4.
https://github.com/michalsn/codeigniter-htmx

Viewi compiles PHP code into JavaScript code, 
and of course works with CI4.

I recommend you try both, and compare.


RE: CodeIgniter4 Viewi Demo - InsiteFX - 03-10-2024

@kenjis, is the Author of viewi not me, please correct your post and give kenjis his credit it for it.


RE: CodeIgniter4 Viewi Demo - FabriceL - 03-11-2024

@kenjis is the creator of https://github.com/kenjis/ci4-viewi-demo
sorry, my mistake.


RE: CodeIgniter4 Viewi Demo - kenjis - 03-11-2024

@InsiteFX As you probably know, I'm not an author of Viewi. I just integrated Viewi with CI4.


RE: CodeIgniter4 Viewi Demo - InsiteFX - 03-11-2024

Yes, I know that @kenjis, I was just making sure you got the credit for making it work with CI4 what you wrote.