News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

ServerGrove Blog:
Error "Cannot find module 'less'" with Symfony2, Assetic and Twitter Bootstrap
March 19, 2012 @ 12:36:25

On the ServerGrove blog, there's a quick post with a handy tip for the Symfony2 + Assetic users out there - how to get it to recognize the "less" module.

Unfortunately the Symfony documentation does not provide any details on how to configure Assetic to use LESS. There is a blog post by Dustin Dobervich that gives some pointers, but after following the instructions, Assetic issued the following error: Cannot find module 'less'. We searched around without much success. After several tries, we nailed the configuration.

It's an easy two-step process: first you be sure you have "npm" (the package manager) installed on your system, then you modify your Symfony app.yml file to point to the Node modules path.

0 comments voice your opinion now!
twitter bootstrap module less css yml setting node module


blog comments powered by Disqus

Similar Posts

PHPImpact Blog: Loading models within modules in the Zend Framework

NETTUTS.com: How to Update your Twitter Status with CodeIgniter

PHP-Coding-Practices.com: Control Your CSS Via PHP - Good Stuff!

Rob Allen's Blog: Zend Framework URL Rewriting in IIS7

Tiffany Brown's Blog: Turn text files into pull down menus


Community Events





Don't see your event here?
Let us know!


library laravel tips release symfony list interview podcast opinion deployment series framework package install community zendserver update language api introduction

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework