Beispiel #1
0
<?php

include 'model.php';
include 'functions.php';
echo embed('tpl/home.tpl.php', array('header' => embed('tpl/header.tpl.php', array()), 'sidebar_first' => embed('tpl/category.tpl.php', array('result' => get_category())), 'body' => embed('tpl/allproduct.tpl.php', array('result' => get_products())), 'sidebar_second' => embed('tpl/top_last_added.tpl.php', array('result' => last_added()))));
Beispiel #2
0
<?php

include 'functions.php';
include 'model.php';
echo embed('tpl/home.tpl.php', array('header' => embed('tpl/header.tpl.php', array()), 'sidebar_first' => embed('tpl/category.tpl.php', array('result' => get_category())), 'body' => embed('tpl/searchquery.tpl.php', array('result' => get_drug($_GET['query']))), 'sidebar_second' => embed('tpl/top_last_added.tpl.php', array('result' => last_added()))));