Skip to content

Instantly share code, notes, and snippets.

@fprochazka
fprochazka / Headjs.php
Created December 9, 2010 21:10
Inteligent Head JS (http://headjs.com/) loading component
<?php
namespace Kdyby\Component;
use Nette;
use Nette\String;
use Nette\Web\Html;
use Kdyby;
@fprochazka
fprochazka / ApplicationLock.php
Created November 23, 2010 18:14
Zámek aplikace
<?php
namespace Kdyby\Security;
use Nette;
use Kdyby;
/**
* Globální zámek pro aplikaci, vyžaduje auth handler, ideálně napojit http_authentication
@fprochazka
fprochazka / PresenterInfo.php
Created November 19, 2010 01:00
PresenterTree
<?php
namespace Kdyby;
use Nette;
use Nette\Reflection\ClassType;
/**
@fprochazka
fprochazka / LookoutControl.php
Created October 15, 2010 10:41
LookoutControl - Control with fake life cycle
<?php
namespace Kdyby\Control;
use Nette;
use Nette\String;
class LookoutControl extends Nette\Application\Control
@Mikulas
Mikulas / FormMacros.php
Created October 3, 2010 11:03 — forked from janmarek/FormMacros.php
Form Macros
<?php
namespace Nette\Templating;
use Nette\Forms\Form;
use Nette\Utils\Strings as String;
use Nette\InvalidStateException;
use Nette\Object;
use Nette\Latte\DefaultMacros;
<?php
namespace NetteExtras\Forms;
class ChangeTracker extends \Nette\Forms\HiddenField
{
private $session;
private $modifiedValues;
@redhead
redhead / live-form-validation.js
Created August 26, 2010 21:16
Live Form Validation for Nette 2.0
/**
* Live Form Validation for Nette 2.0
*
* @author Radek Ježdík, MartyIX, David Grudl
*/
var LiveForm = {
options: {
controlErrorClass: 'form-control-error', // CSS class for an invalid control
errorMessageClass: 'form-error-message', // CSS class for an error message