$handle = fopen('https://www.opencart.com', 'r');
$content = '';
while(!feof($handle)){
$content .= fread($handle, 8080);
}
echo $content;
fclose($handle);
?>
Electronic Components: integrated circuits, ic, semiconductors, transistors, thyristors, fuses, resistors, diodes, capacitors & more.
buy & sell transistors & mosfet
already tried,but it didn't work.synapseindia wrote: ↑Mon Jul 09, 2018 1:31 pmYou can use below online tool to convert PHP to TWIG .
https://php2twig.com/index.php
Thanks
Electronic Components: integrated circuits, ic, semiconductors, transistors, thyristors, fuses, resistors, diodes, capacitors & more.
buy & sell transistors & mosfet
Also, you can not use PHP programming function into the twig file.
It is template engine you can read about all the syntax of twig on below URL -
https://twig.symfony.com/doc/2.x/
thanks for you help.synapseindia wrote: ↑Mon Jul 09, 2018 3:09 pmTWIG is only use for the template (View) files. All programming related part can be done by PHP only.
Also, you can not use PHP programming function into the twig file.
It is template engine you can read about all the syntax of twig on below URL -
https://twig.symfony.com/doc/2.x/
i saw the resolution.
{{ random(['apple', 'orange', 'citrus']) }}
but it only returns one result.
how to return 2 or more results?
please help.
Electronic Components: integrated circuits, ic, semiconductors, transistors, thyristors, fuses, resistors, diodes, capacitors & more.
buy & sell transistors & mosfet
it does not work and your site is down.kestas wrote: ↑Mon Jul 09, 2018 6:50 pmHi,
I do not tried, but you can try this
Code: Select all
{{ random(""~apple~", "~orange~", "~citrus~"") }}
Electronic Components: integrated circuits, ic, semiconductors, transistors, thyristors, fuses, resistors, diodes, capacitors & more.
buy & sell transistors & mosfet
I not correctly understand your question.. So sorry, of course my first suggestion does not work.chongshengdz wrote: ↑Mon Jul 09, 2018 6:15 pmthanks for you help.synapseindia wrote: ↑Mon Jul 09, 2018 3:09 pmTWIG is only use for the template (View) files. All programming related part can be done by PHP only.
Also, you can not use PHP programming function into the twig file.
It is template engine you can read about all the syntax of twig on below URL -
https://twig.symfony.com/doc/2.x/
i saw the resolution.
{{ random(['apple', 'orange', 'citrus']) }}
but it only returns one result.
how to return 2 or more results?
please help.
random function returns only one value. please red this: https://twig.symfony.com/doc/2.x/functions/random.html
Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here
Users browsing this forum: No registered users and 38 guests