• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to use CodeIgnite and Vue.js together

#1
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...
Reply

#2
Hi  Exclamation

I’ll warn you right away that my method may not be the best, but still I often use it to connect different libraries... Angel

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 Wink
I would change this world, but God doesn't give me the source.
Reply

#3
Thanks, I'll try this solution Smile
Reply

#4
(06-16-2020, 03:56 AM)erenusar Wrote: Thanks, I'll try this solution Smile

or this: https://forum.codeigniter.com/thread-767...#pid376722
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.