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 characters
<?php | |
/** | |
* A FormSchemaFormatter to use with Twitter Bootstrap CSS. | |
* | |
* @author malteo | |
*/ | |
class sfWidgetFormSchemaFormatterBootstrap extends sfWidgetFormSchemaFormatter | |
{ | |
protected |
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 characters
<?php | |
spl_autoload_register(function ($class) { | |
$file = $__DIR__.'/relative/path/to/Monolog/src/'.strtr($class, '\\', '/').'.php'; | |
if (file_exists($file)) { | |
require $file; | |
return true; | |
} | |
}); |
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 characters
/** | |
* Allowing Users To Invoke Methods Before A Component Is Rendered | |
* | |
* @see http://www.sencha.com/blog/2010/08/27/tips-and-tricks-for-ext-js-component-developers/ | |
*/ | |
someMethod: function() { | |
if (!this.rendered) { | |
this.on('render', this.someMethod, this, {single: true}); | |
return; |
NewerOlder