Created
August 21, 2011 08:09
-
-
Save tetu1225/1160321 to your computer and use it in GitHub Desktop.
Fuelを試す。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Hello!</h1> | |
<p>Hey <?php echo $name ?>, how's it going?</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Controller_Hello extends Controller { | |
public function action_index() { | |
echo "Hello World!"; | |
} | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Controller_Hello extends Controller { | |
public function action_index() { | |
echo "Hello World!"; | |
} | |
public function action_buddy($name = 'buddy') { | |
$this->response->body = View::factory('hello', array('name' => $name)); | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment