Welcome Guest, Not a member yet? Register   Sign In
How to handle Assets (JS/CSS) with Phil's Template Library
#1

[eluser]RJ[/eluser]
What is your preferred method of handling CSS/JS assets in conjunction with Phil's template library?
#2

[eluser]InsiteFX[/eluser]
Phil's - codeigniter-asset library

InsiteFX
#3

[eluser]RJ[/eluser]
Exactly what I was looking for. Thanks for the link.
#4

[eluser]Unknown[/eluser]
[strike]So, how do you use it? Is there, like, documentation for this somewhere?

I'm getting an error:
Code:
Use of undefined constant APPPATH_URI - assumed 'APPPATH_URI'

I checked and APPPATH_URI doesn't seem to declared anywhere. Do I have to do that myself or something?

I know these seem like silly questions but I'm new to CI so if anyone could shed some light on this, it'd much appreciated.

--

After much googling, it seems to be implied that the asset helper /has/ to be used together with Phil's template library.

Is this accurate? If so, is there a way around this?
#5

[eluser]RJ[/eluser]
Declare it in config/constants.php

<code>define('APPPATH_URI', BASE_URI.APPPATH);</code>

I don't know if asset class requires his template lib.




Theme © iAndrew 2016 - Forum software by © MyBB