pjparra / assetic-smarty Goto Github PK
View Code? Open in Web Editor NEWSmarty Extension for Assetic
Smarty Extension for Assetic
i'd like to use this package via composer, but without dev-master
.
so could you please:
could you also add to readme smarty version supported or at least version that you initially tested. i.e is this for smarty2 or smarty3?
what is assetic version this used to work?
i pulled latest:
kriswallsmith/assetic v1.4.0 Asset Management for PHP
and get various errors
also, why you have assetic and smarty in composer suggests, as clearly this package is only useful if both smarty and assetic are installed as well?
i don't know what that $root
is supposed to be, no comments in code but that place really deserves it.
but it calculates wrong
{assetic
assets="css/main.css,css/page.css"
output="css"
config_path="../config"
build_path="style/build"
debug=false
filters="yui_css,less"
asset_url=asset_url}
<link rel="stylesheet" href="{$asset_url}">
{/assetic}
and with given debug:
dump('config_path='.$params['config_path']);
$realpath = realpath($params['config_path']);
dump('realpath='.$realpath);
$root = mb_substr($realpath, 0, mb_strlen($realpath, $charset) - mb_strlen($params['config_path'], $charset), $charset);
dump('root='.$root);
it results:
"config_path=../config"
"realpath=/home/glen/scm/eventum/eventum/config"
"root=/home/glen/scm/eventum/event"
that's definately wrong, whatever $root should be, it looks truncated!
Hi,
I'm trying to use your plugin in a symfony2 project. do you have any idea why I get this error?
I'm using your example block:
{assetic
assets="style/reset.css,style/common.css,style/other.css"
output="css"
config_path="config"
build_path="style/build"
debug=false
filters="yui_css,less"
asset_url=asset_url}
{/assetic}
Notice: Undefined property: stdClass::$css in .../plugins/block.assetic.php line 122
thanks
may i use this in smarty engine v2 , the last version. ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.