-
Notifications
You must be signed in to change notification settings - Fork 0
EOSS Introduction
Durisvk edited this page Sep 8, 2014
·
1 revision
"home_eoss": "indexEOSS",
"layout_dir": "view/",
"refresh": true<?php
class indexEOSS extends EOSS {
public $counter=1;
public function load() {
$this->csi->setFile("layout.html");
}
public function bind() {
$this->csi->myButton->onclick="anyNameOfFunction";
}
public function anyNameOfFunction() {
$this->csi->todos->html .= "<div>".$this->counter.". :".$this->csi->myText->value."</div>";
$this->csi->myText->value = "";
$this->counter++;
}
}<!DOCTYPE html>
<html>
<head>
<title>EOSS Introduction</title>
</head>
<body>
<div id="todos"><b>TODOS:</b>
</div>
<input type="text" id="myText" value="">
<input type="button" id="myButton" value="clickHere">
</body>
</html>