Update README.md

This commit is contained in:
Namhyeon Go 2019-02-20 02:08:26 +09:00 committed by GitHub
parent e5869f0bf1
commit 44d7668121
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,29 +37,7 @@
5. enjoy it.
## Example
```
<?php
if(!defined("_DEF_RSF_")) set_error_exit("do not allow access");
loadHelper("string.utl");
$copyright = read_storage_file("copyright.txt", array(
"storage_type" => "terms"
));
$lines = explode_by_line($copyright);
foreach($lines as $line) {
$copyright .= "<p>" . $line . "</p>";
}
$data = array(
"copyright" => $copyright
);
renderView('templates/default/header');
renderView('view_copyright', $data);
renderView('templates/default/footer');
?>
```
- Rest API Integration (Naver Papago Translation REST API): https://gist.github.com/gnh1201/081484e6f5e10bd3be819093ba5f49c8
## CLI mode example
```