Skip to content

Instantly share code, notes, and snippets.

@romaninsh
Created November 22, 2015 21:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save romaninsh/7bd55d47ed47472459c3 to your computer and use it in GitHub Desktop.
Save romaninsh/7bd55d47ed47472459c3 to your computer and use it in GitHub Desktop.
Cloud App School: Final look on your page/index.php.
<?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