Questions tagged as 'twig'

4
answers

PHP MVC - Inclusion of CSS, Images etc

Hello, in my application I'm having problems when I add a css file, image or any other file that is frontend, because when I include it, I need to set the whole directory of it, for example. The views directory has the following structure  ...
asked by 23.03.2014 / 15:21
1
answer

Syntax error "Unexpected tag name" in Symfony2 / Twig

My list has the following code: <h1>Posts</h1> {% for posts in post %} <article> <h2> {% post.titulo %} </h2> <div class="content"> {% post.conteudo...
asked by 04.09.2014 / 12:23
2
answers

Function load () jQuery + Twig

I'm developing a system using PHP , with the idea of having only one page. As? (I do not know if it is the best solution, I believe it is not), I developed a side menu that is fixed and the contents to be changed would be in the center of...
asked by 27.10.2015 / 22:33
1
answer

Display HTML with TWIG

I'm using TWIG in a project of mine but I can not display a string that has Bold or Italic, it simply ignores. Other HTML commands are normally displayed. Example: {{ 'Ao <strong><em><u>contr&aacute;rio do que se acred...
asked by 18.01.2015 / 22:05
1
answer

Twig and Namespaces

Hello, I'm having a hard time implementing Twig in my project MVC , I'm using namespaces, autoloader all that PSR-0 thing. I'd like your judah to implement because I'm almost freaking out. rs public function render($file, $...
asked by 23.03.2014 / 05:56
1
answer

Better performance / performance: Smarty, Twig or some other? [closed]

While in general PHP systems are used for other purposes, such as separating business rules, etc. Which one provides the best performance for website load / performance? Currently, which of these offers the biggest advantage at this point, a...
asked by 20.08.2015 / 15:42
0
answers

Why is my localhost adding an extra toolbar?

trait Pagination{ private $totalRegistros; private $limite; private $offset; private $totalPaginas; private $segmentoUrl; private $links; private $explodeBarrasUrl; private $posicaoPaginaUrl; static $nextLabe...
asked by 15.03.2017 / 02:19
1
answer

How to customize Form generated by Symfony CRUD?

I am changing the Symfony template so that CRUD already has the format I need, I could change almost everything, but now I had to change the form, to edit the css classes and other elements with div and etc. .. to stay in line with the layout I...
asked by 31.07.2014 / 14:40
1
answer

How to put interest scheme in the product listing?

There is a list of products in the layout I'm doing with opencode. <div class="borderproduct" itemscope itemtype="http://schema.org/Product"> <a href="{{ product.link }}" itemprop="url"> <div class="product-image">...
asked by 11.09.2015 / 15:25
1
answer

Doubt with Jquery and select

I'm maintaining a code from another programmer and I'm having difficulty with two select. I need to get the time for each field and add up this interval, until then, okay, I've done some tests using the Moment.js lib and it caters me perfectl...
asked by 12.07.2017 / 20:11