pilif / sacy

Smarty Asset Compiler (warning: all branches but master are subject to force pushes)
http://pilif.github.com/sacy
MIT License
34 stars 12 forks source link

Sacy not working #19

Open rrolla opened 10 years ago

rrolla commented 10 years ago

Hello, I compile sacy with:

php build.php -c -j

then i copy from build directory: block.asset_compile.php file to smarty plugins directory

then add to my bootstrap file:

define('ASSET_COMPILE_OUTPUT_DIR', APP_ROOT.'/public/cache/sacy');
define('ASSET_COMPILE_URL_ROOT', XPN_CMS_ROOT.'cache/sacy');

then i in template add:

{asset_compile}
    <link rel="stylesheet" type="text/css" href="{$base_url}assets/bootstrap/dist/css/bootstrap.css"/>
    <link rel="stylesheet" type="text/css" href="{$base_url}assets/bootstrap/dist/css/bootstrap-theme.css"/>
    <link rel="stylesheet" type="text/css" href="{$base_url}assets/bootstrap-social/bootstrap-social.css"/>
    <link rel="stylesheet" type="text/css" href="{$base_url}assets/bootstrap-social/assets/css/font-awesome.css"/>
    <link rel="stylesheet" type="text/css" href="{$base_url}assets/pnotify-old/oxygen/icons.css"/>
    <link rel="stylesheet" type="text/css" href="{$base_url}assets/pnotify-old/jquery.pnotify.default.css"/>
    <link rel="stylesheet" type="text/css" href="{$base_url}assets/pnotify-old/jquery.pnotify.default.icons.css"/>
    <link rel="stylesheet" type="text/css" href="{$base_url}assets/jquery-opentip/css/opentip-xpn-cms.css"/>
{/asset_compile}

then i load webpage, but nothing minimized and so on, i also add ?debug_toggle=1 or 2 or 3 but nothing happens :(

How to properly debug, where is my error?

Thanks.

rrolla commented 10 years ago

There is some news about this, in my linux hosting Sacy working fine, in windows wamp not, that must be some server configuration problem.

yanko-ivanov commented 9 years ago

Had a similar problem with sacy not working for css, although it worked flawlessly for js files. After some stumbling, I found that if the link tag is "malformatted" : e.g. not closed by /> , the smarty plugin doesn't work. After changing this, it works now. Just my 2 cents. :)