Welcome Guest, Not a member yet? Register   Sign In
How to dynamically load css and js per view (similar to WordPress's wp_enque_script)?
#1

(This post was last modified: 05-19-2016, 02:54 PM by Greg-J.)

I've used CI3 in the past, but it's been awhile and I'm not finding the answer to this question.

In Laravel, I would implement this by doing something like:

Code:
@section('script')
       <script src="javascript.js" type="text/javascript"></script>
@endsection


But in CodeIgniter, I'm at a loss. I have seen this codeigniter-enqueue library, but it's 2 years old and I wanted to make sure this functionality didn't make its way into CI in that time before going with a 3rd party library.

Any ideas?

How do you handle head/foot injection of css/js?
Reply


Messages In This Thread
How to dynamically load css and js per view (similar to WordPress's wp_enque_script)? - by Greg-J - 05-19-2016, 02:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB