This file contains 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 characters
<?php | |
require_once sfConfig::get('sf_lib_dir').'/vendor/lessphp/lessc.inc.php'; | |
class npDriverLessmin extends npDriverBase | |
{ | |
public function doProcessFile($file, $replace = false) | |
{ | |
$lessc = new lessc($file); | |
$optimizedContent = cssmin::minify($lessc->parse()); |
This file contains 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 characters
<?php | |
class npDriverJpegoptim extends npDriverBase | |
{ | |
public function doProcessFile($file, $replace = false) | |
{ | |
if (false === $replace) | |
{ | |
throw new LogicException('JPEG optimization only support file replacement atm'); | |
} |
This file contains 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 characters
<?php | |
class MyForm extends sfForm | |
{ | |
protected $robotProtectionFieldName = "_honeypot_robot"; | |
public function __construct($defaults = array(), $options = array(), $CSRFSecret = null) | |
{ | |
parent::__construct($defaults, $options, $CSRFSecret); | |
This file contains 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 characters
<?php | |
/** | |
* SiteMapIndexXML | |
* | |
* A simple helper to make simple sitemap.xml of index | |
* | |
* Usage: | |
* $sitemap = new SiteMapIndexXML(); | |
* $sitemap->addSiteMap('http://example.org/sitemap-products.xml'); |
This file contains 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 characters
<?php | |
/** | |
* SiteMapXML | |
* | |
* A simple helper to make simple sitemap.xml with images | |
* | |
* Usage: | |
* // without images | |
* $sitemap = new SiteMapXML(); |
NewerOlder