<?php
class App extends Phalcon\Application {
public function handle($data = NULL) {
$data = trim($data);
if (empty($data)) {
return 'Please input'.PHP_EOL;
} else {
return '>>> '.$data.PHP_EOL;
}
}
}
$server = new Phalcon\Server\Simple();
$server->start(new App);
public __construct ([string $host], [int $port], [unknown $numWorker])
Phalcon\Server\Simple constructor
public start (Phalcon\Application $application)
Run the Server