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
{block content} | |
<div id="header"> | |
<h1>It works!</h1> | |
<h2>Congratulations on your first Nette Framework powered page.</h2> | |
</div> | |
<div> | |
<p>{$message}</p> |
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 | |
/** | |
* Live Client Script | |
* support for live validation of Nette/Forms | |
* | |
* @version 0.8 | |
* @author David Grudl, Radek Ježdík, Marek Dušek | |
* @package Nette\Extras\Live-Form-Validation | |
* |
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
{block content} | |
<div id="header"> | |
<h1>Integration of Nette Framework and Google Closure Library</h1> | |
<h2>Two most powerfull frameworks.</h2> | |
</div> | |
<div> | |
{snippet:list} |
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 | |
/** | |
* Form control for selecting date | |
* | |
* Internally holds date as DateTime instance which is also returned by getValue method | |
* | |
* @author Jan Tvrdík | |
*/ | |
class DatePicker extends Nette\Forms\FormControl | |
{ |
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
#!/usr/bin/env ruby | |
# Example script to deploy a Rails application via Git post-receive hook | |
# | |
# INSTALL | |
# | |
# $ curl http://gist.github.com/442106.txt -o post-receive | |
# $ mv post-receive path/to/to/your/repo.git/hooks/post-receive | |
# $ chmod +x post-receive |
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 | |
require 'Nette/loader.php'; | |
require 'stringFluent.php'; | |
$string = string("ahoj já jsem petr")->capitalize(); | |
echo $string."\n"; | |
echo $string->webalize(); |
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 | |
namespace App\Controls; | |
class Foo extends \App\Basis\Control | |
{ | |
} |
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
#!/bin/bash | |
# Vaclav Bohac (c) 2010 | |
SCAFDIR=$HOME/repo/nette-scaffolding | |
if [ "$1" = "create" ]; then | |
shift | |
if [ ! -n "$1" ]; then | |
echo "You must specify a project name" |
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
{block headcontent} | |
{foreach $js as $script} | |
<script type="text/javascript" src="{$basePath}/js/{$script}"></script> | |
{/foreach} | |
{foreach $css as $sheet} | |
<link rel="stylesheet" media="screen,projection,tv" href="{$basePath}/css/{$sheet}" type="text/css"> | |
{/foreach} | |
{/block} | |
{block content} |