CodeIgniter Forums
How to handle Assets (JS/CSS) with Phil's Template Library - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: How to handle Assets (JS/CSS) with Phil's Template Library (/showthread.php?tid=40311)



How to handle Assets (JS/CSS) with Phil's Template Library - El Forum - 04-05-2011

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


How to handle Assets (JS/CSS) with Phil's Template Library - El Forum - 04-05-2011

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

InsiteFX


How to handle Assets (JS/CSS) with Phil's Template Library - El Forum - 04-05-2011

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


How to handle Assets (JS/CSS) with Phil's Template Library - El Forum - 05-31-2011

[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?


How to handle Assets (JS/CSS) with Phil's Template Library - El Forum - 06-01-2011

[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.