File: template/default/content/child/test.php

Recommend this page to a friend!
  Classes of Dave Smith  >  Amp Frame  >  template/default/content/child/test.php  >  Download  
File: template/default/content/child/test.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Amp Frame
MVC framework for developing Web applications
Author: By
Last change:
Date: 1 year ago
Size: 2,430 bytes
 

Contents

Class file image Download
<?php
/*
AMP Frame ver 1.0.0
Default Template
template/default/content/child/test.php
Frame Test Content - Child
*/
if( !defined('AFALLOW') ){
    die(
'direct access not allowed');
}
?>
<div class="jumbotron">
                <div class="row">
                    <div class="col"><h4 class="text-center">Test Page</h4></div>
                </div><!-- row -->
                <div class="row">
                    <div class="col">
                        <dl>
                            <dt>Testing the template child page feature</dt>
                            <dd>This page is the child. Renaming/Removing the template/default/child/test.php file will display the original test page</dd>
                        </dl>
                        <dl>
                            <dt>Testing the ability to dynamically add a menu item</dt>
                            <dd>Added a new menu item named <strong>Fail</strong>. Selecting it should take you to the missing page content</dd>
                        </dl>
                        <dl>
                            <dt>Testing request variable processing</dt>
<?php
$requestData
= $this->returnProperty( 'afmPage', 'request' );
if( !empty(
$requestData) ){
    foreach(
$requestData as $key=>$value ){
?>
<dd><?php echo $key;?> = <?php echo $value;?></dd>
<?php
   
}
}else{
?>
<dd>No request variables found, ensure the controller activates the procRequest method in the page model</dd>
<?php
}
?>
</dl>
                        <dl>
                            <dt>Testing abilty to add properties to model</dt>
                            <dd><?php $this->echoProperty( 'afmPage', 'testProp' );?></dd>
                        </dl>
                        <dl>
                            <dt>Testing random string generation from trait used by extended view</dt>
                            <dd>The winning string is: <?php echo $this->randStringTool( 10 );?></dd>
                        </dl>
                        <dl>
                            <dt>Testing new dynamic object</dt>
                            <dd><?php $this->echoProperty( 'afmNew', 'testProp' ) ;?></dd>
                        </dl>
                    </div><!-- col -->
                </div><!-- row -->
            </div><!-- jumbotron -->


For more information send a message to info at phpclasses dot org.