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
3
votes
2 answers

Nette PHP framework and RESTful API with token authentication

Is Nette PHP framework is suitable for creation of RESTful API in PHP (for client JavaScript application), I cannot find a proper documentation apart IAuthenticator Does Nette offer support RESTful? If no, does exist some stable "extensions"? Does…
GibboK
  • 71,848
  • 143
  • 435
  • 658
3
votes
1 answer

Nette framework - form wizard

I am trying to create form wizard in nette 2.1.2. I've created my own component in which nette form can be injected. Then in latte template is form rendered to individual steps. However, I want to perform validation of form fields in the current…
user3124979
  • 162
  • 1
  • 9
2
votes
2 answers

How is Nette NEON format useful (comparing to JSON)

When JSON came out, it came with a nice dedicated web-page. They summarized the ggrammar on a single page. They explained how easy it is to use JSON (natively) in JS. Then they provided a miriad of libraries for other languages. Now NEON is…
2
votes
0 answers

Tracy debugger: No output with ajax exceptions

Whenever I make an ajax request that throws an exception, the Tracy debugger is killing all output. I've tested with Tracy turned off and exceptions get output. I've tested with just a page (ie: not ajax) and the exception gets output by Tracy…
Quasipickle
  • 4,383
  • 1
  • 31
  • 53
2
votes
1 answer

Nette Framework - Get Current Session ID

I need to get an ID of current session. Using httpRequest's cookies is not a good idea because session gets regenerated after login or by whatever action. I also tried Session class but for getting a session ID it is needed to specify a section…
jmeinlschmidt
  • 1,446
  • 2
  • 14
  • 33
2
votes
1 answer

Nette Framework - Route everything to one presenter

I'm using Angular 2 in cooperation with Nette framework and I would like to let my Angular 2 to do all the routing instead of Nette. Now when I use Angular 2 routing. I get an Unexisting route exception from Nette.
jmeinlschmidt
  • 1,446
  • 2
  • 14
  • 33
2
votes
1 answer

How to test response of successful form submit in presenter test with nette tester

I want to test the sign in presenter action with form submit and correct response in redirect. E.g. I want to test that after correct login, user is redirected somewhere and flash message with text "login successful" is displayed. In all the…
Josef Sábl
  • 7,538
  • 9
  • 54
  • 66
2
votes
1 answer

Nette Forms Validation - how to set field not required?

I add text inputs into a form and add them some rules. These inputs are not required, but if I do not fill these fields, I get a validation error. Example: $this->addText('operationID', 'Operation ID:') ->setAttribute('class', 'tf tf-w110px') …
maximkou
  • 5,252
  • 1
  • 20
  • 41
2
votes
2 answers

Nette - {link!} macro can't handle already existing GET params in URL

I Use Nette 2 in my project and I also use .latte template system with AJAX. Now I have jquery function (in template) that should generate GET request on the same destination but it should add some GET parameters after it. This destination is…
Dejv
  • 944
  • 2
  • 14
  • 31
1
vote
1 answer

Best option which css styles to apply for the modal dialog in Nette on the mobile device

How I can apply such styles in css for the modal dialog box written in PHP and Nette on the mobile device? The modal dialog box must be seen at least across whole display and must be not seen off screen. I'm appreciate for any help. This is example…
1
vote
2 answers

How to , is it possible to escape into and use raw php in Latte templates in Nette?

How to escape into and use raw php in Latte in Nette , eg can be used for debugging and other non standard, not best practices cases , logging and what not as its not standard, and rather in edge or debugging cases perhaps obviously
FantomX1
  • 1,577
  • 2
  • 15
  • 23
1
vote
2 answers

Regexp rules for tokenizing with nette/tokenizer (PHP)

I have installed nette/tokenizer https://packagist.org/packages/nette/tokenizer in a sandbox project to play with tokenization. "basic" rules definition The most basic test is to play with the example they give here:…
Xavi Montero
  • 9,239
  • 7
  • 57
  • 79
1
vote
1 answer

PHP Latte - multiple block with same name

I am new to latte template engine and fiddle around with it since some days. I found a lot of nice and usefull things to make my projects easier and cleaner. But there is one thing I did not find or miss an idea how to handle it. Lets imagine my…
Makkapitew
  • 11
  • 4
1
vote
0 answers

PhpStorm getting rid of 1 horizontal line in settings

I`m starting to personalize my PhpStorm a bit and would love to get rid of horizontal line between PHPDoc and method while keeping the methods overall separated (with the same line) I've been trying to make this work for several hours... help,…
Popcorn
  • 11
  • 1
1
vote
1 answer

Nette and flash messages

I have VPS where I run php (7.4) and nginx. I have installed Nette and other packages by composer. My problem is: I can't print flash messages. In my presenter I have code $this->flashMessage("Odhlášení proběhlo úspěšně.", "success"); And in…
Marty1452
  • 430
  • 5
  • 19
1
2
3
9 10