Created
February 16, 2012 12:15
-
-
Save Dattaya/1844433 to your computer and use it in GitHub Desktop.
Revisions
-
Dattaya revised this gist
Feb 16, 2012 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,8 +14,8 @@ List of available versions: https://github.com/leafo/lessphp/tags * Run `bin/vendors install`; * ~~Then~~ * ~~Create a new file `autoload_non_standart.php` in `app` folder.~~ * ~~Add this to the end of `app/autoload.php` file: ```require 'autoload_non_standart.php'; ```~~ * ~~Or another way - http://stackoverflow.com/questions/8958118/symfony-autoload-namespace-difficulties~~ * The best approach is to add `file: %kernel.root_dir%/../vendor/lessphp/lessc.inc.php` to config.yml file: -
Dattaya revised this gist
Feb 16, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -18,7 +18,7 @@ List of available versions: https://github.com/leafo/lessphp/tags * Add this to the end of `app/autoload.php` file: ```require 'autoload_non_standart.php'; ``` * ~~Or another way - http://stackoverflow.com/questions/8958118/symfony-autoload-namespace-difficulties~~ * The best approach is to add `file: %kernel.root_dir%/../vendor/lessphp/lessc.inc.php` to config.yml file: ```yaml #... -
Dattaya revised this gist
Feb 16, 2012 . 1 changed file with 13 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,8 +13,19 @@ List of available versions: https://github.com/leafo/lessphp/tags * Run `bin/vendors install`; * ~~Then~~ * Create a new file `autoload_non_standart.php` in `app` folder. * Add this to the end of `app/autoload.php` file: ```require 'autoload_non_standart.php'; ``` * ~~Or another way - http://stackoverflow.com/questions/8958118/symfony-autoload-namespace-difficulties~~ * The best approach is adding `file: %kernel.root_dir%/../vendor/lessphp/lessc.inc.php` to config.yml file: ```yaml #... assetic: #... filters: lessphp: file: %kernel.root_dir%/../vendor/lessphp/lessc.inc.php apply_to: "\.less$" ``` -
Dattaya revised this gist
Feb 16, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,4 +17,4 @@ List of available versions: https://github.com/leafo/lessphp/tags * Create a new file `autoload_non_standart.php` in `app` folder. * Add this to the end of `app/autoload.php` file: ```require 'autoload_non_standart.php'; ``` * ~~Or another way - http://stackoverflow.com/questions/8958118/symfony-autoload-namespace-difficulties~~ -
Dattaya revised this gist
Feb 16, 2012 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,8 +13,8 @@ List of available versions: https://github.com/leafo/lessphp/tags * Run `bin/vendors install`; * ~~Then~~ * Create a new file `autoload_non_standart.php` in `app` folder. * Add this to the end of `app/autoload.php` file: ```require 'autoload_non_standart.php'; ``` * ~~Or another way - http://stackoverflow.com/questions/8958118/symfony-autoload-namespace-difficulties ~~ -
Dattaya revised this gist
Feb 16, 2012 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,8 +13,8 @@ List of available versions: https://github.com/leafo/lessphp/tags * Run `bin/vendors install`; * - Then - * Create a new file `autoload_non_standart.php` in `app` folder. * Add this to the end of `app/autoload.php` file: ```require 'autoload_non_standart.php'; ``` * - Or another way - http://stackoverflow.com/questions/8958118/symfony-autoload-namespace-difficulties - -
Dattaya revised this gist
Feb 16, 2012 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,8 +13,8 @@ List of available versions: https://github.com/leafo/lessphp/tags * Run `bin/vendors install`; * - Then - * Create a new file `autoload_non_standart.php` in `app` folder. * Add this to the end of `app/autoload.php` file: ```require 'autoload_non_standart.php'; ``` * - Or another way - http://stackoverflow.com/questions/8958118/symfony-autoload-namespace-difficulties - -
Dattaya revised this gist
Feb 16, 2012 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,8 +13,8 @@ List of available versions: https://github.com/leafo/lessphp/tags * Run `bin/vendors install`; * -Then- * Create a new file `autoload_non_standart.php` in `app` folder. * Add this to the end of `app/autoload.php` file: ```require 'autoload_non_standart.php'; ``` * -Or another way - http://stackoverflow.com/questions/8958118/symfony-autoload-namespace-difficulties - -
Dattaya revised this gist
Feb 16, 2012 . 1 changed file with 6 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,5 +12,9 @@ Symfony2.0.10. How to integrate assetic lessphp filter. List of available versions: https://github.com/leafo/lessphp/tags * Run `bin/vendors install`; * Then * Create a new file `autoload_non_standart.php` in `app` folder. * Add this to the end of `app/autoload.php` file: ```require 'autoload_non_standart.php'; ``` * Or another way - http://stackoverflow.com/questions/8958118/symfony-autoload-namespace-difficulties -
Dattaya revised this gist
Feb 16, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,4 +13,4 @@ List of available versions: https://github.com/leafo/lessphp/tags * Run `bin/vendors install`; * Create a new file `autoload_non_standart.php` in `app` folder. * Add this to the end of `app/autoload.php` file: ```require 'autoload_non_standart.php'; ``` -
Dattaya revised this gist
Feb 16, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,4 +13,4 @@ List of available versions: https://github.com/leafo/lessphp/tags * Run `bin/vendors install`; * Create a new file `autoload_non_standart.php` in `app` folder. * Add this to the end of `app/autoload.php` file: ```php require 'autoload_non_standart.php'; ``` -
Dattaya revised this gist
Feb 16, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,4 +13,4 @@ List of available versions: https://github.com/leafo/lessphp/tags * Run `bin/vendors install`; * Create a new file `autoload_non_standart.php` in `app` folder. * Add this to the end of `app/autoload.php'` file: ```php require 'autoload_non_standart.php'; ``` -
Dattaya revised this gist
Feb 16, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,7 @@ Symfony2.0.10. How to integrate assetic lessphp filter. target=/lessphp version=v0.3.2 ``` List of available versions: https://github.com/leafo/lessphp/tags * Run `bin/vendors install`; * Create a new file `autoload_non_standart.php` in `app` folder. -
Dattaya created this gist
Feb 16, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ Symfony2.0.10. How to integrate assetic lessphp filter. ============= * Add the following lines of code to the end of the `deps` file: ``` [lessphp] git=https://github.com/leafo/lessphp.git target=/lessphp version=v0.3.2 ``` List of allowed versions: https://github.com/leafo/lessphp/tags * Run `bin/vendors install`; * Create a new file `autoload_non_standart.php` in `app` folder. * Add this to the end of `app/autoload.php' file: ```php require 'autoload_non_standart.php'; ``` This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ <?php spl_autoload_register(function($className) { $ds = DIRECTORY_SEPARATOR; $vendor = __DIR__."{$ds}..{$ds}vendor{$ds}"; $loadable = array( 'lessc' => "lessphp{$ds}lessc.inc.php", ); isset($loadable[$className]) ? require $vendor.$loadable[$className] : ''; }, false);