[Help]Output TPL [Like Rev]

Status
Not open for further replies.

Adil

DevBest CEO
May 28, 2011
1,278
718
I'm currently writing up a simple framework in PHP to further my knowledge of the language. What I'm wondering is how would one go about solving the problem of having themes? I know Rev has an output TPL class, and I was wondering if anyone could provide some basic info (in the form of code ^^) on how to do it. What I don't want to do is create a horrible rip of Rev.
~Adil
 

Kryptos

prjRev.com
Jul 21, 2010
2,205
1,252
OutputTPL only outputs a string via an argument... It has nothing to do with that.

PHP:
<?php
 
$mytheme = 'MATHEME';
$mypage = $_GET['page'];
include_once "themes/{$mytheme}/{$mypage}.php";
 
?>

Simple example.
 
Status
Not open for further replies.

Users who are viewing this thread

Top