
$tpl=
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <ui:include file="sa.tpl" /> <ui:cache time="3h"> <ui:loop select="as"> sds </ui:loop> </ui:cache> <ui:loop select="asd" max="4" step="2" > <ui:var select="mVar" /> tekst<ui:loop select="aaaa"><ui:loop select="aaaa"><ui:loop select="aaaa"> <ui:loop select="aaaa"> <ui:include file="sa.tpl" /> </ui:loop></ui:loop>sdsfdsfs</ui:loop> </ui:loop> <ui:if test="mVar GT asd"> tak </ui:if> <ui:include file="sa.tpl" /> <ui:include file="sa.tpl" /> <ui:loop select="as"> sds<ui:include file="sa.tpl" /> </ui:loop> </body> </html>
I kiedy wywołuje
<?php $tag="loop"; ?>
to dostaje
<ui:loop select="asd" max="4" step="2" > <ui:var select="mVar" /> tekst <ui:loop select="aaaa"> </ui:loop>
zamiast
<ui:loop select="asd" max="4" step="2" > <ui:var select="mVar" /> tekst <ui:loop select="aaaa"> </ui:loop> </ui:loop>
wie ktos jak zrobic zeby regexp pobieral tagi tak jak nalezy?
dobra rozwiazane
<?php ?>
i chyba raczej nie dziala :/ jak ktos moze to prosilbym o pomoc