예제 #1
0
 protected function BODY__SecondHelloWorldView()
 {
     parent::BODY();
     print "<h1>Welcome, to the second view.</h1>";
     print "<p><a href='?'>I'm done here, take me to the first view!</a></p>";
     print "<br /><br /><br />OR<br />";
     print "<p><a href='HelloWorld_03.php'>Continue to Example 03</a></p>";
 }
예제 #2
0
    protected function BODY()
    {
        parent::BODY();
        ?>

			<h1>Hello World!!!</h1>

		<?php 
    }
예제 #3
0
    protected function BODY()
    {
        parent::BODY();
        ?>

<h1>Hello World 01!!!</h1>

<p>This is the first Hello World example with the addition of this
	message and using a public constructor, __construct().</p>
<p>
	Also notice that the classname has been changed to 'HelloWorld_01' to
	match the filename of 'HelloWorld_01.php'.<br />If you leave the class
	name as HelloWorld, you will get an error message at the top of your
	screen saying "Classname doesn't match file name".<br />I am also
	calling 'parent::BODY()' in the top of the BODY() function. This is a
	good habit to get into, as when you start using page template, that's
	where the header code will usually be.
</p>
<p>
	<a href='HelloWorld_02.php'>Continue to Example 02</a>
</p>
<?php 
    }