<?php
$handle = fopen('https://www.opencart.com', 'r');
$content = '';
while(!feof($handle)){
$content .= fread($handle, 8080);
}
echo $content;
fclose($handle);
?>
$handle = fopen('https://www.opencart.com', 'r');
$content = '';
while(!feof($handle)){
$content .= fread($handle, 8080);
}
echo $content;
fclose($handle);
?>
Last edited by chongshengdz on Sun Jul 08, 2018 10:39 pm, edited 1 time in total.
https://www.ectransistors.com/
https://www.transistormosfet.com/
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
https://www.ectransistors.com/
https://www.transistormosfet.com/
TWIG 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/
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.
https://www.ectransistors.com/
https://www.transistormosfet.com/
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~"") }}
https://www.ectransistors.com/
https://www.transistormosfet.com/
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
Who is online
Users browsing this forum: No registered users and 79 guests