Hello World
/helloにアクセス
<?php namespace App\Controller; class HelloController extends AppController { public $name = "Hello"; public $autoRender = false; public function index() { echo "hello world!!"; } } ?>
/hello/otherにアクセス
<?php namespace App\Controller; class HelloController extends AppController { public $name = "Hello"; public $autoRender = false; public function index() { echo "hello, world!!"; } public function other() { echo "hello, other world!!"; } } ?>
otherはotherアクションと呼ばれる。