This file contains hidden or 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
<VirtualHost *:80> | |
ServerName test.me | |
ServerAlias test.me | |
ProxyRequests Off | |
<Proxy *> | |
Order deny,allow | |
Allow from all | |
</Proxy> | |
ProxyPass / http://127.0.0.1:8080/ | |
ProxyPassReverse / http://127.0.0.1:8080/ |
This file contains hidden or 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 | |
require '/data/sdk/php/lib/XS.php'; | |
$xs = new XS('demo'); // 建立 XS 对象,项目名称为:demo | |
// 创建文档对象 | |
$doc = new XSDocument; |
This file contains hidden or 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 | |
//视图层:register.php | |
//使用小物件生成form元素 | |
$form=$this->beginWidget('CActiveForm'); | |
?> | |
<!--用户名--> | |
<?php echo $form->labelEx($model,'username');?> | |
<?php echo $form->textField($model,'username');?> | |
<?php echo $form->error($model,'username');?> |
This file contains hidden or 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
{ | |
// sftp-config.json | |
// The tab key will cycle through the settings when first created | |
// Visit http://wbond.net/sublime_packages/sftp/settings for help | |
// sftp, ftp or ftps | |
"type": "sftp", | |
//上传前在本地保存 | |
"save_before_upload": true, |
This file contains hidden or 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
<!-- | |
分页导航区的链接,独立出来。应用与单独对导航区进行布局与修饰 2013-1-16 | |
--> | |
<!-- 首页链接 --> | |
<div class="pagination"> | |
<ul> | |
<li><a href="<?php echo $this->url(array('page'=>$this->first));?>" title="首页">首页</a></li> | |
<!-- 上一页链接 --> | |
<li><a href="<?php echo $this->url(array('page' => $this->previous)); ?>" title="上一页">上一页</a></li> |
This file contains hidden or 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 | |
/** | |
* 获取字符串中 img src 的路径 | |
* @param array $out[4] 图片路径数组 | |
*/ | |
public function GetImageSrc($body) | |
{ | |
if(!isset($body)){ | |
return ''; | |
}else{ |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<meta charset="utf-8"> | |
<head> | |
<title></title> | |
<meta name="keywords" content=""/> | |
<meta name="description" content=""/> | |
<!-- <link rel="stylesheet" type="text/css" href=""> --> | |
</head> |