Vue like components in PHP/Codeigniter 4 |
You can already do that: https://codeigniter4.github.io/userguide...o-the-view
But you need to use PHP syntax, not JavasScript like you did in your example: PHP Code: <?php echo view('component/img_text', ['flip' => true]); ?> Then in img_text.php you can use the variable $flip and in text.php you can use $bg and $columns.
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/ |
Messages In This Thread |
Vue like components in PHP/Codeigniter 4 - by andersdn11 - 10-17-2020, 12:03 PM
RE: Vue like components in PHP/Codeigniter 4 - by includebeer - 10-18-2020, 10:33 AM
RE: Vue like components in PHP/Codeigniter 4 - by andersdn11 - 10-18-2020, 01:08 PM
|