Questions tagged [nette]

Nette Framework is an open source tool for PHP web development. Nette focuses on security and performance and it's one of the safest PHP frameworks.

Nette Framework is an MVC framework developed by David Grudl. It is designed to be as easy as possible to use and it is one of the safest frameworks.

Latte is used as a primary templating engine which has features such as macros, filters, context-aware output escaping, localization support or custom blocks.

Nette offers an easy to use service container, allowing to register singleton or factory created services. The service container also supports Dependency Injection with automatic (can be disabled) injection of services into constructors of other services or controllers.

Current Nette version: 2.4

Resources

142 questions
1
vote
1 answer

Nette framework - Nette\Database\ResultSet implements only one way iterator

I came across a problem with foreach. If one result is returned in the first foreach {foreach $children as $child}, then it works. As there are more, an error pops up: Nette\Database\ResultSet implements only one way iterator. The error is probably…
Bob
  • 21
  • 6
1
vote
2 answers

Nette Redirect and Send file in the same form

I have a problem with sending a file and redirect to new page in the same time, now it is working just two ways: 1. Sending a file via sendResponse 2. Redirect to a new page My code after form successed: $this->sendResponse(new…
Afendas
  • 31
  • 2
1
vote
0 answers

SQL (nette) returning weird number of rows

I have a query in PHP framework nette... it looks like this $result = $db->query("SELECT * FROM table")->fetchAll(); //count($result) = 20874; But then I do this for testing purposes: $result = $db->query("SELECT * FROM table WHERE value =…
1
vote
1 answer

Unable to insert the information retrieved from a database inside a form

I am new to Nette and php frameworks in general. I am trying to create a form with a selection menu that takes the list of selectable options from a columns inside the database.
iDome89
  • 41
  • 7
1
vote
0 answers

Can I use tests written with Nette Tester with Jenkins

I need to make a continuous integration mechanism with some framework. The first on my mind was Jenkins but the whole project what I wanna test is written in Nette framework. So I want to use Nette Tester but all videos about the topic are using…
Rudolf Nosek
  • 21
  • 1
  • 4
1
vote
0 answers

Ublaboo/Datagrid - InlineAdd row is hidden

after update to Ublaboo/Datagrid v6.2, PHP 7.3 and Nette 3.0, in all pages (grids) where I used inlineAdd feature, this feature stopped working. I figured out, that after click on Add button, row with inlineAdd is added into table but with class…
1
vote
1 answer

Wordpress like plugins with custom CMS in nette

We are developing CMS based in nette for our company and we have to design it to be plugin based for our clients. Something like wordpress but custom for our needs. Is there some easy way in nette to build system that will check updates and have…
1
vote
1 answer

How to set generic CSP header in config.neon?

I need to set Content Security Policy in config.neon file. The policy for images should look something like this (very stripped down version) img-src data: The server runs PHP/Nette framework, configuration is in .neon files. The string data:…
David Votrubec
  • 3,968
  • 3
  • 33
  • 44
1
vote
2 answers

Composer: PHP 7 dependency in PHP 5.6 project

I have a PHP 5.6 Nette project (but I think this question includes all php projects with composer) and I would like to add dependency written in PHP 7. Also, PHP for this project is set to 5.6. Can this work? Another side question. If I have to…
Martin Pohorský
  • 431
  • 3
  • 15
1
vote
1 answer

DKIM with Nette Mail

I planned to sign my mails with php-mail-signature (https://github.com/louisameline/php-mail-signature), but I can't find a method in the Nette-Mail Message class (https://api.nette.org/2.4/Nette.Mail.Message.html) to set the DKIM-value. Since I…
Tom Dörr
  • 859
  • 10
  • 22
1
vote
0 answers

PHP function causing 503 error

Im struggling with my APP. I have few php functions what causes me 503 error. I am using Nette framework. first function gets ammount of 'commodity production' By connecting to Mysql and multiplication of Mysql entry with constant. I have no Problem…
SLUNlCKO
  • 21
  • 4
1
vote
1 answer

Semantic UI Error on search

When I use a Semantic UI search with jQuery, I have a some problems: API: API action used but no url was defined search Object {} API: No URL specified for api event My code: $('#product_name').keyup(function() { if($(this).val().length >=…
1
vote
1 answer

Nette Framework - Disable Latte macros

I'm using Nette framework which comes with Latte templates. My problem starts when I have non-latte macros inside my Latte template. Of course Latte throws an exception about invalid macros. So how can I disable using Latte macros or just pass a…
jmeinlschmidt
  • 1,446
  • 2
  • 14
  • 33
1
vote
1 answer

Nette Framework - Return an Angular 2 app

I'm creating an application using Nette framework in the backend and for frontend I would like to use an app built on Angular 2 framework. So in my solution, I need to send the Angular 2 based app from Nette in the backend right to the user. How to…
jmeinlschmidt
  • 1,446
  • 2
  • 14
  • 33
1
vote
1 answer

Nette how to subtract timestamp from current date

how can i subtract number of days (timestamp|date'z') from current day (date('z')) in latte? I've tryes to use var but that does not like the formating (z).
Muhaha
  • 61
  • 5
1 2
3
9 10