file = $file; $this->less = new uber_lessc( $file ); } function generateCSS( $settings ){ try { $this->css = $this->less->parse( null , $settings ); } catch (Exception $ex) { echo "lessphp fatal error: ".$ex->getMessage(); } return $this->css; } function writeStylesheet( $filename , $prepend ){ $css = $prepend . $this->css; return file_put_contents( $filename , $css ); } }