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
server { | |
listen 80; | |
server_name premonstrati2021.cz www.premonstrati2021.cz; | |
return 301 https://$server_name$request_uri; | |
} | |
server { | |
listen 443 ssl http2; | |
listen [::]:443 ssl http2; |
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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
less: { | |
build: { | |
files: { | |
'<%= pkg.destFolder %>/css/main.css': '<%= pkg.srcFolder %>/css/main.less', |
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
$input1 | |
->setType("number") | |
->addCondition(\Nette\Application\UI\Form::FILLED) | |
->addRule(\Nette\Application\UI\Form::NUMERIC, "%label musí být číselná hodnota") | |
->endCondition() | |
->addConditionOn($input2, \Nette\Application\UI\Form::BLANK) | |
->addRule(\Nette\Application\UI\Form::FILLED, 'Povinný') | |
->endCondition(); | |
$input2 | |
->setType("number") |
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 | |
namespace App; | |
use Nette; | |
use Nette\Application\Routers\RouteList; | |
use Nette\Application\Routers\Route; | |
use Nette\Application\Routers\CliRouter; | |
class RouterFactory { |
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
$qb= $this->em->getRepository(DCE::class)->createQueryBuilder(); | |
$qb->select('dce') | |
->addSelect("COUNT(dc) amount") | |
->from($this->entityPath, 'dce') | |
->join('dce.discount_coupons', 'dc'); | |
if (!empty($filter)) { | |
if (isset($filter['title']) && !empty($filter['title'])) { | |
$qb->andWhere('dce.title LIKE :title') |
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 __DIR__ . '/../../vendor/autoload.php'; | |
Tester\Environment::setup(); | |
$configurator = new Nette\Configurator; | |
$configurator->addParameters([ | |
'appDir' => __DIR__ . '/../../app', | |
]); |
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 | |
namespace FlexiAuth; | |
use Nette\Security as NS; | |
class Authenticator implements \FlexiAuth\IAuthenticator { | |
/* | |
* Where user can go |