( ! ) Deprecated: Creation of dynamic property CSource::$validImageExtensions is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 42
Call Stack
#TimeMemoryFunctionLocation
10.0001361392{main}( ).../source.php:0
20.0005365248CSource->__construct( $options = ['secure_dir' => '..', 'base_dir' => '..'] ).../source.php:16

( ! ) Deprecated: Creation of dynamic property CSource::$spaces is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 43
Call Stack
#TimeMemoryFunctionLocation
10.0001361392{main}( ).../source.php:0
20.0005365248CSource->__construct( $options = ['secure_dir' => '..', 'base_dir' => '..'] ).../source.php:16

( ! ) Deprecated: Creation of dynamic property CSource::$ignore is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 44
Call Stack
#TimeMemoryFunctionLocation
10.0001361392{main}( ).../source.php:0
20.0005365248CSource->__construct( $options = ['secure_dir' => '..', 'base_dir' => '..'] ).../source.php:16

( ! ) Deprecated: Creation of dynamic property CSource::$secureDir is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 45
Call Stack
#TimeMemoryFunctionLocation
10.0001361392{main}( ).../source.php:0
20.0005365248CSource->__construct( $options = ['secure_dir' => '..', 'base_dir' => '..'] ).../source.php:16

( ! ) Deprecated: Creation of dynamic property CSource::$baseDir is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 46
Call Stack
#TimeMemoryFunctionLocation
10.0001361392{main}( ).../source.php:0
20.0005365248CSource->__construct( $options = ['secure_dir' => '..', 'base_dir' => '..'] ).../source.php:16

( ! ) Deprecated: Creation of dynamic property CSource::$queryPath is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 47
Call Stack
#TimeMemoryFunctionLocation
10.0001361392{main}( ).../source.php:0
20.0005365248CSource->__construct( $options = ['secure_dir' => '..', 'base_dir' => '..'] ).../source.php:16

( ! ) Deprecated: Creation of dynamic property CSource::$suggestedPath is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 48
Call Stack
#TimeMemoryFunctionLocation
10.0001361392{main}( ).../source.php:0
20.0005365248CSource->__construct( $options = ['secure_dir' => '..', 'base_dir' => '..'] ).../source.php:16

( ! ) Deprecated: Creation of dynamic property CSource::$realPath is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 49
Call Stack
#TimeMemoryFunctionLocation
10.0001361392{main}( ).../source.php:0
20.0005365248CSource->__construct( $options = ['secure_dir' => '..', 'base_dir' => '..'] ).../source.php:16

( ! ) Deprecated: Creation of dynamic property CSource::$pathinfo is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 50
Call Stack
#TimeMemoryFunctionLocation
10.0001361392{main}( ).../source.php:0
20.0005365248CSource->__construct( $options = ['secure_dir' => '..', 'base_dir' => '..'] ).../source.php:16

( ! ) Deprecated: Creation of dynamic property CSource::$file is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 66
Call Stack
#TimeMemoryFunctionLocation
10.0001361392{main}( ).../source.php:0
20.0005365248CSource->__construct( $options = ['secure_dir' => '..', 'base_dir' => '..'] ).../source.php:16

( ! ) Deprecated: Creation of dynamic property CSource::$extension is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 67
Call Stack
#TimeMemoryFunctionLocation
10.0001361392{main}( ).../source.php:0
20.0005365248CSource->__construct( $options = ['secure_dir' => '..', 'base_dir' => '..'] ).../source.php:16

( ! ) Deprecated: Creation of dynamic property CSource::$dir is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 68
Call Stack
#TimeMemoryFunctionLocation
10.0001361392{main}( ).../source.php:0
20.0005365248CSource->__construct( $options = ['secure_dir' => '..', 'base_dir' => '..'] ).../source.php:16

( ! ) Deprecated: Creation of dynamic property CSource::$path is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 69
Call Stack
#TimeMemoryFunctionLocation
10.0001361392{main}( ).../source.php:0
20.0005365248CSource->__construct( $options = ['secure_dir' => '..', 'base_dir' => '..'] ).../source.php:16

( ! ) Deprecated: Creation of dynamic property CSource::$breadcrumb is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 81
Call Stack
#TimeMemoryFunctionLocation
10.0001361392{main}( ).../source.php:0
20.0005365248CSource->__construct( $options = ['secure_dir' => '..', 'base_dir' => '..'] ).../source.php:16

( ! ) Deprecated: Creation of dynamic property CSource::$message is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 85
Call Stack
#TimeMemoryFunctionLocation
10.0001361392{main}( ).../source.php:0
20.0005365248CSource->__construct( $options = ['secure_dir' => '..', 'base_dir' => '..'] ).../source.php:16

( ! ) Deprecated: Creation of dynamic property CSource::$content is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 235
Call Stack
#TimeMemoryFunctionLocation
10.0001361392{main}( ).../source.php:0
20.0015368360CSource->View( ).../source.php:22
30.0021369512CSource->GetFileContent( ).../CSource.php:113

( ! ) Deprecated: Creation of dynamic property CSource::$encoding is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 166
Call Stack
#TimeMemoryFunctionLocation
10.0001361392{main}( ).../source.php:0
20.0015368360CSource->View( ).../source.php:22
30.0021369512CSource->GetFileContent( ).../CSource.php:113
40.0024371584CSource->DetectFileDetails( ).../CSource.php:236

( ! ) Deprecated: Creation of dynamic property CSource::$lineendings is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 181
Call Stack
#TimeMemoryFunctionLocation
10.0001361392{main}( ).../source.php:0
20.0015368360CSource->View( ).../source.php:22
30.0021369512CSource->GetFileContent( ).../CSource.php:113
40.0024371584CSource->DetectFileDetails( ).../CSource.php:236
Visa källkod | Anax en webbtemplate

Visa källkod

human.php

1 lines ASCII Unix (LF)
<?php 
/**
 * This is a Anax pagecontroller.
 *
 */
// Include the essential config-file which also creates the $anax variable with its defaults.
include(__DIR__.'/config.php'); 

$mikael = new CHuman();
$jane = new CHuman();

/*
$age = 46;
$name = "Mikael Roos";
$profession = "Webprogrammer";

$age1 = 24;
$name1 = "Jane Strandberg";
$profession1 = "Webprogrammer";

/*
function description($name, $age, $profession) {
    return "$name is a $age old $profession.";
}

function descriptionAsHtml($name, $age, $profession) {
    return "<p>" . description($name, $age, $profession) . "</p>";
}
*/

$html = $mikael->descriptionAsHtml($name, $age, $profession);
$html .= $jane->descriptionAsHtml($name1, $age1, $profession1);


$human1 = new CHuman();

$human1->name = "Mikael Roos";

$html .= $human1->description();



// Do it and store it all in variables in the Anax container.
$anax['title'] = "Human";

$anax['main'] = <<<EOD
<h1>Human</h1>
{$html}
EOD;



// Finally, leave it all to the rendering phase of Anax.
include(ANAX_THEME_PATH);