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
0
votes
1 answer

How to configure foreign keys in Nette?

I've been reading for a while Nette tutorial for database selects etc, but I still do not understand, how does Nette know, what is foreign key and what is not. Do I need to define it? If so, how? There nothing about it in documentation. According to…
Jakub Gruber
  • 745
  • 1
  • 11
  • 27
0
votes
2 answers

Google maps in nette web

I'm trying to put a google map into my nette website useing this It doesn't show the map but it tries to: (source code)
Muhaha
  • 61
  • 5
0
votes
1 answer

Nette Framework - Route a signal

I'm using the kdyby/facebook extension for Facebook authentication, which uses a link to open signal in fbLogin component. Login using facebook This results into /?do=fbLogin-open! How could route this link to…
jmeinlschmidt
  • 1,446
  • 2
  • 14
  • 33
0
votes
0 answers

non-loading with www dir, nginx, nette - set nginx path?

I installed docker and downloaded zip archive with docker-compose from generator (http://phpdocker.io/generator). Do you know what this page is? This zip archive is working on my Windows 10 Pro, but on my laptop with Ubuntu 16.04 it crashes. It…
ondrusu
  • 97
  • 4
0
votes
1 answer

How to send multiple emails?

I'm trying to send email to selected users by nette mailer but it allways results with an InvalidStateException. public function contactsEditorFormSucceeded($form, $values) { try { $recipients = $values->recipients; …
Muhaha
  • 61
  • 5
0
votes
1 answer

PHP - Latte template foreach property of non-object

I'm currently using Latte to do things. What I can't figure out is how to use a foreach loop on a query with it's template variables. My code below would always return in Trying to get property of non-object $query = $this->db->query("SELECT id…
P. Nick
  • 955
  • 1
  • 12
  • 33
0
votes
2 answers

Doctrine 2 get items from related entities

I have an entity with ManyToOne, OneToOne relations. I have another entity, which is linked to the first one and what I want to do is to get information about the first entity as well as all other entities, which are related to it. For some reason…
WellBloud
  • 927
  • 4
  • 13
  • 29
0
votes
0 answers

Tracy debugging library throwing syntax error

I am trying to use this library https://github.com/nette/tracy for enabling PHP debuger on my site. I've downloaded the src folder and included tracy.php in my app but now I get this error: Parse error: syntax error, unexpected '[' in…
Mordor
  • 485
  • 2
  • 4
  • 14
0
votes
1 answer

Ajax success, complete, error function is not calling jquery

I have problem with jQuery Ajax calling method success. I tried everything but success is not calling. My code looks like $('#target').submit(function(event) { // get the form data var formData = { 'name':…
0
votes
2 answers

magic route for presenter in nette framework

Is it possible to create magic route with nette route ? what i mean of magic route is i dont need to declare any route array on routelist... but when i type address on browser address bar such as : http:somesite.com/product/detail/123. it would…
navotera
  • 321
  • 1
  • 15
0
votes
2 answers

My PHP application dies with fastcgi: unexpected end-of-file

I updated to PHP 7 at my localhost, but since then anytime i want to redirect from one page to another in my nette application, I'll receive error: 500 - Internal Server Error. I was searching through stack overflow and found a problem that is quite…
Michal
  • 1,955
  • 5
  • 33
  • 56
0
votes
2 answers

How to do a simple JOIN in nette database

How can i do a very simple join in nette database, resulting in a query like this? SELECT * FROM Book LEFT OUTER JOIN Author ON Book.author_id = Author.id I have found endless tutorials on how to join combined with where clausules, order by, group…
kajacx
  • 12,361
  • 5
  • 43
  • 70
0
votes
1 answer

Add Custom Class on Controls during rendering for Nette Forms

I am using this example Bootstrap3 example to render a form and was wondering if it was possible to add custom classnames to form input wrappers based on the control type. I tried the following but it applies to the form inputs and not the…
Niraj Pandey
  • 309
  • 1
  • 9
  • 21
0
votes
1 answer

Set conditional Validation on Chained Methods in Nette Forms

I am trying to render a form using Nette\Forms where the field types are stored in the database. So depending upon whether the field is an email or a simple text input; the validation type will differ as follows: // For textbox …
Niraj Pandey
  • 309
  • 1
  • 9
  • 21
0
votes
1 answer

nette, localhost, 404 on subfolders

I'm running nette framework at localhost using XAMPP. When I go to index page everything is fine but when I click to URL for some sub page I get 404 error. I set in apache (httpd-vhosts.conf) alias to my documents folder: Alias /documents…