Skip to content
#

Nette

nette logo

Nette Framework is a popular tool for PHP web development. It is designed to be as usable and as friendly as possible. It focuses on security and performance and is definitely one of the safest PHP frameworks.

Here are 446 public repositories matching this topic...

di
latte
nechutny
nechutny commented Dec 8, 2017
  • bug report? maybe
  • feature request? no
  • version: 2.4

Description

Hello,

I'm migrating one old project from Nette 2.2-dev to 2.4 and i've realized that new latte doesn't support "AND" keyword in if condition. I can't find any reason why it was removed. Documentation says "Conditions behave exactly the same way as their PHP counterparts". Modify all templates to use "&&" was pain an

tester
petrparolek
petrparolek commented Sep 24, 2019

Example:

$pattern = "sign/in";
$actual = "https://test.dev/sign/in?_fid=j3o0";
\Tester\Assert::match($pattern, $actual);

Current tester output:

Failed: 'https://test.dev/sign/in?_fid=j3o0' should match
       ... 'sign/in' in testAbc()

It would nice something like:

Failed: 'wrong pattern format given.'
Failed: 'https://test.dev/sign/in?_fid=j3o0' should matc
forms
MaPePeR
MaPePeR commented Mar 16, 2017
  • bug report? no
  • feature request? yes
  • version: 2.4

Description

I'm just starting to learn Nette and after looking through documentation and example code i tried to setup a very simple Form. The Form rendered fine, but the onSuccess handler was never executed and it took me a very long time to figure out the problem:
I created a Nette\Forms\Form-Object instead of the `Nette\Appli

database
TonnyJe
TonnyJe commented Apr 26, 2020

Version: ^3.0

Bug Description

Wrong SQL generation for joining tables with DELETE.

Steps To Reproduce

This code

$this->database->table('is_document_item')
                ->where('document.code', 202750006)
                ->where('amount', 0)
                ->fetchAll();

generates this query:

SELECT `is_document_item`.`id` 
FROM `is_document_item` 
LE
docs
martinsifra
martinsifra commented Feb 5, 2020

Good news everyone,

as all we know Latte filters are applied from left to right - except |noecape. Internaly ecaping is just a flag turning off escaping of current literal. (Hope I've found the correct source doing this.)

In documentation there is no mention the order in filters of |noescape matters.

PS: I'd like to add this note, bute there's no way how to edit Latte docs.

Created by David Grudl

Released 2008

Latest release over 1 year ago

Repository
nette/nette
Website
nette.org

Related Topics

framework mvc php
You can’t perform that action at this time.