How to use CodeIgnite and Vue.js together - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: How to use CodeIgnite and Vue.js together (/showthread.php?tid=76742) |
How to use CodeIgnite and Vue.js together - erenusar - 06-15-2020 Hi folks, I'm very new to web development so I don't know how to connect ci4 and vue. I want to code my UI using vue, and I want to use ci4 at the backend. Thanks... RE: How to use CodeIgnite and Vue.js together - Digital_Wolf - 06-15-2020 Hi I’ll warn you right away that my method may not be the best, but still I often use it to connect different libraries... In general, you have a folder "public" and it should have a folder with css and js files (at least I hope you have one) in any case, just drop the file "vue.esm.js" or the full version of "vue.js" into the public folder, and then in the directory "app / views" where you have the main file "index.php" located or if you share the php code then "header.php" and in the tag "script" just provide a link to the file "vue.esm.js" or "vue.js" with "<script src =" <? = base_url ('/ js / vue.js'); ?> "> </script>" Good luck RE: How to use CodeIgnite and Vue.js together - erenusar - 06-16-2020 Thanks, I'll try this solution RE: How to use CodeIgnite and Vue.js together - Paradinight - 06-16-2020 (06-16-2020, 03:56 AM)erenusar Wrote: Thanks, I'll try this solution or this: https://forum.codeigniter.com/thread-76716-post-376722.html#pid376722 |