変数を渡してみる
<?php class Hello_Controller extends Controller { public function index() { echo 'Hello, World!'; } public function comments() { echo 'Look at this!'; } public function greeting($name, $greeting) { echo "Hello! ${name}, ${greeting}?"; } } ?>
http://localhost/yourproject/hello/greeting/littlebuddha/fine/ とアクセスしてみる。