```json
{
// Place your s.zoo.cn workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
"from upload image": {
"scope": "javascript,typescript,css,html",
"prefix": "from_img_cmf",
"body": [
"",
"\\$include_uploadimg_param = [",
"'name' => 'ad_pic',",
"'img' => isset(\\$row['pic']) && \\$row['pic']? cmf_get_image_preview_url( \\$row['pic'] ):''",
"];",
"",
"",
],
"description": "上传一个图片 在表单中"
},
"cmf_get_image_preview_url": {
"scope": "javascript,typescript,css,html",
"prefix": "cmf_get_image_preview_url",
"body": [
"cmf_get_image_preview_url($1)"
],
"description": "获取图片的访问连接"
},
"model_tp": {
"scope": "html,php",
"prefix": "model_tp",
"body": [
"",
"",
"namespace app\\\\$1\\model;",
"",
"use think\\Model;",
"",
"class $2Model extends Model",
"{",
"\tprotected \\$table = '$3';",
"",
"",
"}"
],
"description": "thinkphp model定义"
},
"phptag1": {
"scope": "javascript,typescript,css,html,php",
"prefix": "phptag1",
"body": [
"<?php ",
"",
"$1"
],
"description": "php标签"
},
"foreach": {
"scope": "javascript,typescript,css,html",
"prefix": "foreach",
"body": [
"",
"{\\$key}",
""
],
"description": "foreach 模板标签"
},
}
```