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 | |
public function loadHttpData() | |
{ | |
$name = $this->getName(); | |
if (isset($this->getForm()->httpData[$name])) { | |
if (isset($this->getForm()->httpData[$name]['token'])) { | |
$this->token = $this->getForm()->httpData[$name]['token']; | |
$this->files = self::getTempStorage()->getFileList($this->token); | |
} | |
if (count($this->files) == NULL && $this->getForm()->httpData[$name]['files'][0] instanceof HttpUploadedFile) |
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 | |
class PresenterLoader extends \Nette\Application\PresenterLoader | |
{ | |
public $baseNamespace = 'PandaWeb'; | |
public $caseSensitive = TRUE; | |
private $baseDir; |
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 | |
class Hello extends Trait | |
{ | |
public function greet() | |
{ | |
echo 'Hello, ' . $this->name . $this->getMark(); | |
} | |
protected function getFrenchMark() |
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 | |
protected function attached($presenter) | |
{ | |
parent::attached($presenter); | |
if ($presenter instanceof \Nette\Application\Presenter) { | |
\Nette\Debug::barDump($this->getParam('param')); | |
} | |
} |
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
/* Forms */ | |
form dt, form dd { | |
margin-bottom: 1ex; | |
line-height: 1.5; | |
} | |
form dt { | |
text-align: right; | |
float: left; |
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 NetteExtras\Forms; | |
class ChangeTracker extends \Nette\Forms\HiddenField | |
{ | |
private $session; | |
private $modifiedValues; |
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 | |
/** | |
* Addons and code snippets for Nette Framework. (unofficial) | |
* | |
* @author Jan Tvrdík | |
* @license MIT | |
*/ | |
namespace JanTvrdik\Components; |
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 | |
if (!isset($cache['data'])) { | |
$params = \Nette\Environment::getConfig('facebook'); | |
$fb = new \Facebook(array( | |
'appId' => $params->appId, | |
'secret' => $params->secret | |
)); | |
$data = $fb->api('/' . $this->objId . '/feed&limit=3'); | |
$data = $data['data']; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<templateSet group="Nette"> | |
<template name="comp" value="protected function createComponent$NAME$() { 	$END$ }" description="Component factory template" toReformat="false" toShortenFQNames="true"> | |
<variable name="NAME" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="false" /> | |
<option name="HTML" value="false" /> | |
<option name="XSL_TEXT" value="false" /> | |
<option name="XML" value="false" /> | |
<option name="CSS" value="false" /> |
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
doctrine: | |
secondLevelCache: | |
enabled: true | |
factoryClass: Doctrine\ORM\Cache\DefaultCacheFactory | |
driver: apc |