Questions tagged [latte]

Latte is a template engine for PHP that compiles templates to plain optimized PHP code and provides great cache management.

Latte is a template engine.

It is intuitive, fast and secure template engine, which helps to build better websites easily.

Work perfectly with combination of Nette Framework

  • compiles templates to plain optimized PHP code. it is the first PHP
  • engine introducing content-aware escaping. it has intuitive syntax
  • and helps you to build better websites easily.

https://latte.nette.org

21 questions
0
votes
0 answers

Adding custom control to a Nette Form

I am attempting to add a custom control to a nette form, using the example given in the official documentation here. I am having problems. First off I though I would try to use the example as a starting point. Unfortunately it doesn't work. when…
Khainestar
  • 307
  • 5
  • 11
0
votes
1 answer

Latte: Didn't find overgiven parameter

I try to use the latte template engine. I register the Engine and try to render a template with parameters: $latte = new Latte\Engine; $events = new Event((new Config())->connectDB()); $result =…
beli3ver
  • 363
  • 3
  • 15
0
votes
0 answers

The form opens by using AJAX and has radio inputs which is displayed each on seprate page

// jQuery //next question function goNext(i) { $('#question'+i).attr('hidden', true); $('#question'+(i+1)).attr('hidden', false); } // for submit after each question $(document).ready(function(){ $('#submit').click(function(){ …
user11190486
0
votes
0 answers

How to create a function in Latte?

I have been trying to get started with Latte but there is literally close to no real documentation. I am looking for a way to create functions just like in Smarty. As far as I understand this has to be done with Macros, however there are close to no…
SimplySavage
  • 53
  • 1
  • 2
  • 10
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
-1
votes
0 answers

Seeking Clarification on How Dynamically Created Classes are Typed in a Latte (PHP) Project

I'm currently exploring a PHP project Latte which is templating system for PHP, and I've come across a piece of code that I'm having trouble understanding. Specifically, I'm interested in how dynamically created classes are typed within the…
1
2