( ! ) 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.0003360208{main}( ).../source.php:0
20.0007364232CSource->__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.0003360208{main}( ).../source.php:0
20.0007364232CSource->__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.0003360208{main}( ).../source.php:0
20.0007364232CSource->__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.0003360208{main}( ).../source.php:0
20.0007364232CSource->__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.0003360208{main}( ).../source.php:0
20.0007364232CSource->__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.0003360208{main}( ).../source.php:0
20.0007364232CSource->__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.0003360208{main}( ).../source.php:0
20.0007364232CSource->__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.0003360208{main}( ).../source.php:0
20.0007364232CSource->__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.0003360208{main}( ).../source.php:0
20.0007364232CSource->__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.0003360208{main}( ).../source.php:0
20.0007364232CSource->__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.0003360208{main}( ).../source.php:0
20.0007364232CSource->__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.0003360208{main}( ).../source.php:0
20.0007364232CSource->__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.0003360208{main}( ).../source.php:0
20.0007364232CSource->__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.0003360208{main}( ).../source.php:0
20.0007364232CSource->__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.0003360208{main}( ).../source.php:0
20.0007364232CSource->__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.0003360208{main}( ).../source.php:0
20.0018367344CSource->View( ).../source.php:22
30.0024368496CSource->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.0003360208{main}( ).../source.php:0
20.0018367344CSource->View( ).../source.php:22
30.0024368496CSource->GetFileContent( ).../CSource.php:113
40.0026370568CSource->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.0003360208{main}( ).../source.php:0
20.0018367344CSource->View( ).../source.php:22
30.0024368496CSource->GetFileContent( ).../CSource.php:113
40.0026370568CSource->DetectFileDetails( ).../CSource.php:236
Visa källkod | Anax en webbtemplate

Visa källkod

hello.php

1 lines UTF-8 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'); 


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

$anax['header'] = <<<EOD
<img class='sitelogo' src='img/anax.png' alt='Anax Logo'/>
<span class='sitetitle'>Anax webbtemplate</span>
<span class='siteslogan'>Återanvändbara moduler för webbutveckling med PHP</span>
EOD;

$anax['main'] = <<<EOD
<h1>Hej Världen</h1>
<p>Detta är en exempelsida som visar hur Anax ser ut och fungerar.</p>
EOD;

$anax['footer'] = <<<EOD
<footer><span class='sitefooter'>Copyright (c) Mikael Roos (me@mikaelroos.se) | <a href='https://github.com/mosbth/Anax-base'>Anax på GitHub</a> | <a href='http://validator.w3.org/unicorn/check?ucn_uri=referer&amp;ucn_task=conformance'>Unicorn</a></span></footer>
EOD;


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