Post by denise92 » Wed Jun 15, 2016 3:27 am

Hi, I have 2 files, and I want include tpl file that already modified with ocmod script...
But nothing happen when I output it.

Is anyone can help me, thanks!!!

EX:

A.tpl

Code: Select all

<?php require("b.tpl" ); ?>
B.tpl

Code: Select all

Hello
test.xml

Code: Select all

<file path="b.tpl">
        <operation>
            <search>
               <![CDATA[Hello]]>
            </search>
            <add position="after">
            <![CDATA[ World! ]]>
            </add>
        </operation>
</file>
setOutput a.tpl in controller/a.php, and test.xml didn't rewrite it....

Code: Select all

Hello
Last edited by denise92 on Wed Jun 15, 2016 6:11 pm, edited 1 time in total.

Image


Newbie

Posts

Joined
Wed Jun 15, 2016 3:20 am
Location - Taiwan

Post by denise92 » Wed Jun 15, 2016 6:10 pm

Find the solve way by myself.... modification()

A.tpl

Code: Select all

<?php require(modification("b.tpl" )); ?>

Image


Newbie

Posts

Joined
Wed Jun 15, 2016 3:20 am
Location - Taiwan
Who is online

Users browsing this forum: No registered users and 9 guests