Created
November 22, 2015 21:11
-
-
Save romaninsh/7bd55d47ed47472459c3 to your computer and use it in GitHub Desktop.
Cloud App School: Final look on your page/index.php.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class page_index extends Page { | |
public $title='Dashboard'; | |
function init() { | |
parent::init(); | |
$this->add('P') | |
->set('Hello there human') | |
->addClass('atk-size-mega'); | |
$this->add('P') | |
->set('Would you like to play a game? You will have to guess the number!'); | |
$this->add('Button') | |
->set('Play the game') | |
->addClass('atk-swatch-green'); | |
$this->add('Button') | |
->set('No way'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment