Jump to content

I'm doing a project with php / twig and then I climbed p ftp some thing not working


cintia_r
 Share

Recommended Posts

 
Hello guys!
I Brasileia not know if I can express myself cool, but it's seuinte .
I'm doing a project with php / twig and then I climbed p ftp some thing not working, kind . I'm going through my p twig.html an array of objects with the description of my registered any product in the db . Hence produto.getdescicao mosrar use for this data. It turns out that for some products the description is displayed and no golds and do not have the same poblema priate squeegee the local system
  • Like 1
Link to comment
Share on other sites

poblema priate squeegee the local system

can u.better shloud poste code samplos ?

when squegee local.systemos use no.outputs formoatting

$page->of(false);

u ca also checks ferst if value than.outputs

if($page->description){

  print $page->description;}

else{

  print "descriptions no";}

with u uses.twig ? i dunno ifsos mabe uses outputs fomatting

$page->of(true);

can.check w 

if($page->of()){/*has foratting*/}else{/*not.does have*/}

ok ? or : no

Link to comment
Share on other sites

 

There description for all products. But not all are printed on the screen



echo $twig->render('promocoes/index.twig.html',
array(
'promocoes' => $promocoes,
));



{% if promocoes %}
{% for key, promocao in promocoes %}
<div class="col-md-6">
<div class="promocoes">
<img src="view/promocoes/img/promocao.png" alt=""/> <span> Nº {{promocao.getnumero}} </span>
<p class="dias">
{{ promocao.getdomingo == 1? '| Domingo ' : '' }}
{{ promocao.getsegunda == 1 ? '| Segunda ' : '' }}
{{ promocao.getterca == 1? '| Terça ' : '' }}
{{ promocao.getquarta == 1? '| Quarta ' : '' }}
{{ promocao.getquinta == 1? '| Quinta' : '' }}
{{ promocao.getsexta == 1? '| Sexta ' : '' }}
{{ promocao.getsabado == 1? '| Sábado ' : '' }} |

</p>
<p class="descricao">{{promocao.getdescricao|e}}</p>
{% if promocao.getnumero == 4 %}

{% else %}
<a href="?numero={{promocao.getnumero}}">Comprar</a>
{% endif %}
</div>
</div>
{% endfor %}
{% endif %}
Link to comment
Share on other sites

i dunno.twig butt i try answer neway

for.theis port

echo $twig->render('promocoes/index.twig.html',
        array(
            'promocoes' => $promocoes,
        ));
where $promocoes comes.from ?
can u.show code for thats ?
try remove.this {% if promocoes %} and {% endif %}
try removes "key," from {% for key, promocao in promocoes %}
 alsos look.u have unclose span tag
  <span> Nº {{promocao.getnumero}} </span <--need close!

-=-=-edito-=-=-

nm.

> <!-- found.it

  • Like 2
Link to comment
Share on other sites

Well spotted Willy!

Cintia, before translating from portuguese to english, make sure you don't have mistakes on the portuguese words because it messes up the translation even more than usually. For instance, you missed the R in "Brasileia" and the G on "seuinte", and there are more.

edit: Duh, you won't understand this probably :), here you go:

Cintia, antes de traduzires para inglês verifica que não tens erros no português. Isso vai tornar a tradução ainda mais caótica do que já fica normalmente. Por exemplo, falta o R em "Brasileia" e o G em "seuinte", e há mais assim.

  • Like 6
Link to comment
Share on other sites

After a little research, it's correct in Brazilian Portuguese apparently.

Not sure 100% for "Brasileia" (for Brazilian), for the moment. But it's a place that exists.

And "seuinte" is used.

But Google Translate doesn't have a Brazilian translator so, yes, it's better to use their Portuguese equivalents for better translations.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...