Welcome Guest, Not a member yet? Register   Sign In
New World Frontend Order - how Codeigniter fit in a javascript frontend world?
#16

(04-13-2020, 06:50 AM)albertleao Wrote: You'd have to play with the output. I wouldn't recommend it as it couples your frontend with your backend. I guess it depends on how your backend is setup. Are you using your php server as an api server or are you also using it to render html?

Actually I'm experimenting, I want to treat them as completely separate entities (so yes, codeigniter as apiserver), but I want to see how much I can play with this toys and how I can use them in the most optimized and comfortable way.

But my biggest problem at the moment is the pathing of the resources. In the controller I'm echoing the view that is just the index.html created with nuxt. But all the scripts are linked with absolute path and I don't understand what's the best course of actions (and the best way, I don't want to deal with a nightmare of paths and links)
Reply


Messages In This Thread
RE: New World Frontend Order - how Codeigniter fit in a javascript frontend world? - by shinseiten - 04-13-2020, 09:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB