Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed Oct 25, 2016
1 parent 9d7d6dd commit c0af4a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ nbproject
.idea
.project
.settings
build/
node_modules/
vendor/
composer.lock
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ class Greeting extends ResourceObject
$this->renderer = $renderer;
}

public $body = [
'title' => 'Greeting',
'hello' => ['message' => 'konichiwa']
];

public function onGet()
{
$this->body = [
'title' => 'Greeting',
'hello' => ['message' => 'konichiwa']
];

return $this;
}
}
Expand All @@ -68,8 +68,7 @@ class Greeting extends ResourceObject
### Template

We need php template code. For exapmle, `Index.php` page resource needs `Index.html.php` template file.
You can use `escape` pr

You can get the value of body by `escape()` or `raw()`.

```php
<?php
Expand Down

0 comments on commit c0af4a7

Please sign in to comment.