<!-- PAGE HEADER -->
<tr>
<td class='pageHeader'>
<!-- including the page header component -->
<!-- The base template base directory is "./tpl" -->
3<@ include 'pageHeader.ssp' @>
</td>
</tr>
<!-- PAGE CONTENTS -->
<tr valign='top'>
<td class='pageContent'>
<!-- including the page contents component -->
4<@ include 'sale/pageContent.ssp' @>
</td>
</tr>
<!-- PAGE FOOTER -->
<tr>
<td class='pageFooter'>
<!-- including the page footer omponent -->
5<@ include 'pageFooter.ssp' @>
</td>
</tr>
</table>
class PhpMVCTabAction extends Action {
...
function execute($mapping, $form, &$request, &$response) {
// Our value bean container
$valueBeans =& new ValueBeans();
// Define some strings we need on our View template page
// These could be defined globally in the phpmvc-config.xml file.
// See: ExtendedController example.
$appTitle = "Flash Jack's Include Page";
$saleMonth = "May 2010";
$saleTitle = "Flash Jack's Super Sale";
$dealHeading = "Jack's Super Deals for :";
...
// Save the string variables to our Value object
$valueBeans->addValueBean('APP_TITLE' , $appTitle);
$valueBeans->addValueBean('SALE_MONTH', $saleMonth);
$valueBeans->addValueBean('SALE_TITLE', $saleTitle);
$valueBeans->addValueBean('DEAL_HEADING' , $dealHeading);
...
// Some float values we could receive from a database query
// Note: The prices are formatted in the Products class constructor.
// Eg: "$ n,nnn.nn"
$price1 = 125.00;
...
// Setup some clearance deals (individual object instances):
// Note: The Product class file was included in our local prepend.php file
$item1 = new Product('Super Duper', $price1);
...
$valueBeans->addValueBean('ITEM_1', $item1);
...
// Todays specials (array of object instances)
$products = array();
$products[] = new Product('Gooses Bridle', $price3);
...
$valueBeans->addValueBean('PRODUCTS_ARRAY', $products);
<!-- We can set some properties on our custom ViewResourcesConfig class-->
<set-property property="areaManager" value="Joe J. Blogs Esq."/>
</view-resources>
Name Description Default Value
$appTitle The application title 'My Web Application'
$appVersion The application version '1.0'
$copyright The copyright notice 'Copyright C YYYY My Name. All rights reserved.'
$contactInfo The contact information 'webmaster@myhost.com'
$processTags Do we run the template engine processor (boolean) False
$compileAll Force compile pages (boolean) False
$tagL The left tag identifier '<@'
$tagR The right tag identifier '@>'
$tplDir The view resource templates directory './WEB-INF/tpl'
$tplDirC The compiled templates directory './WEB-INF/tpl_C'
$extC The compiled file notation. Eg: "pageContent.ssp[C]" 'C'
$maxFileLength The maximum size of the template files allowed, in bytes (integer) 250000
$tagFlagStr Indicates tag template file(s) to be pre-processed. Eg: "myPage.ssp" '.ssp'
$tagFlagCnt The number of trailing filename characters to sample (".ssp" = -4) -4