摘要:
下面语句就可以获取当前控制器的名称了!Yii::app()->controller->id 阅读全文
posted @ 2010-04-21 11:56
DavidHHuan
阅读(755)
评论(0)
推荐(0)
摘要:
<?php$this->beginWidget('zii.widgets.jui.CJuiDialog', array('id'=>'myJuiDialog','options'=>array('title'=>'Edit the user profile','autoOpen'=>false,'buttons'=>array('ok'=>"js:f... 阅读全文
posted @ 2010-04-21 11:56
DavidHHuan
阅读(715)
评论(0)
推荐(0)
摘要:
第一,比如说,我们要使用 Zend framework的东西。我们把zend framework解压到 prtected/vendors里面,现在的文件夹为 protected/vendors/Zend/Search/Lucene.php第二,在controller文件的头部,插入下面代码。Yii::import(’application.vendors.*’);requi... 阅读全文
posted @ 2010-04-21 11:55
DavidHHuan
阅读(935)
评论(0)
推荐(0)
摘要:
要创建一个新的挂件(widget),我们主要是要继承两个方法:CWidget::init()和 CWidget::run(),CWidget::init 调用是发生在我们使用 $this->beginWidget 将挂件插入到一个view里面,CWidget::run 调用是发生在我们使用 $this->endWidget 这个方法的时候。 如果我们想捕捉和处理两者之间的方法核查办上显... 阅读全文
posted @ 2010-04-21 11:55
DavidHHuan
阅读(538)
评论(0)
推荐(0)
摘要:
比如要使用mySQL中的md5函数,Test::model()->findAll(new CDbExpression("md5(name) =1")); 阅读全文
posted @ 2010-04-21 11:55
DavidHHuan
阅读(550)
评论(0)
推荐(0)
摘要:
假设数据库的设置已经弄好了,里面的有一个User表建立User模型model User建立User的CRUD行为crud User创建 Modulemodule forum 阅读全文
posted @ 2010-04-21 11:54
DavidHHuan
阅读(553)
评论(0)
推荐(0)
摘要:
把/media/MyDocuments/xampp/htdocs/myyii下面的index.php复制到/media/MyDocuments/xampp/htdocs/myyii/protected下面,然后将下面的代码$yii=dirname(__FILE__).'/framework/yii.php';$config=dirname(__FILE__).'/protected/config/... 阅读全文
posted @ 2010-04-21 11:54
DavidHHuan
阅读(449)
评论(0)
推荐(0)
摘要:
创建应用,假设yii的核心文件夹framework是放在/media/MyDocuments/xampp/htdocs/myyiicd /media/MyDocuments/xampp/htdocs/myyiiphp framework/yiic.php webapp /media/MyDocuments/xampp/htdocs/myyii 阅读全文
posted @ 2010-04-21 11:54
DavidHHuan
阅读(432)
评论(0)
推荐(0)
摘要:
<?php return array( 'class'=>'CUrlManager', 'urlFormat'=>'path', 'urlSuffix'=>'.html', 'showScriptName'=>false, 'caseSensitive'=>false,//it makes route case-insensitive. 'rules'=>... 阅读全文
posted @ 2010-04-21 11:53
DavidHHuan
阅读(626)
评论(0)
推荐(0)
摘要:
mysql:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--'db'=array('connectionString'='mysql:host=localhost;dbname=tsmp','username'='root','password'='1','charset'='utf8', 'tablePrefix'='tbl_',//'schemaCachingDuration'=3600,//如果在main.php里面设置了c 阅读全文
posted @ 2010-04-21 11:53
DavidHHuan
阅读(796)
评论(0)
推荐(0)
摘要:
public function filters(){ return array( ’postOnly + edit, create’, array( ’application.filters.PerformanceFilter - edit, create’, ’unit’=>’second’, ... 阅读全文
posted @ 2010-04-21 11:52
DavidHHuan
阅读(436)
评论(0)
推荐(0)
摘要:
创建[代码]调用[代码] 阅读全文
posted @ 2010-04-21 11:52
DavidHHuan
阅读(843)
评论(10)
推荐(1)
摘要:
main.php文件'modules' => array( 'admin' => require(dirname(__FILE__).DIRECTORY_SEPARATOR.'backend.php') )backend.php文件<?phpreturn array( //'sizePerPage' => 10, 'defaultController'=>'user'... 阅读全文
posted @ 2010-04-21 11:52
DavidHHuan
阅读(820)
评论(0)
推荐(0)
摘要:
class MyWidget extends CWidget{public function init(){// this method is called by CController::beginWidget()}public function run(){// this method is called by CController::endWidget()}}通常,widget的视图是是放... 阅读全文
posted @ 2010-04-21 11:51
DavidHHuan
阅读(600)
评论(0)
推荐(0)
摘要:
$this->widget('CMaskedTextField',array('mask'=>'99/99/9999')); 阅读全文
posted @ 2010-04-21 11:51
DavidHHuan
阅读(483)
评论(0)
推荐(0)
摘要:
Ajax请求页面块的时候,是不希望加载layout的,这时候怎么向页面块传递参数呢?可以使用renderPartial()来代替render() 阅读全文
posted @ 2010-04-21 11:51
DavidHHuan
阅读(656)
评论(0)
推荐(0)
摘要:
system: Yii framework directoryapplication: application's base directorywebroot: the directory containing the entry script fileext: directory of extensions 阅读全文
posted @ 2010-04-21 11:50
DavidHHuan
阅读(343)
评论(0)
推荐(0)
摘要:
以on开关定义方法,如要clicked事件,public function onClicked($event){$this->raiseEvent('onClicked', $event);}调用的时候$component->onClicked=$callback;如果$callback是一个全局对象里面的方法,要用以下array($object, 'methodName')方法应该定... 阅读全文
posted @ 2010-04-21 11:50
DavidHHuan
阅读(416)
评论(0)
推荐(0)
摘要:
例如,要存储timestamp的值是用MySQL now()函数,这时候可以这样,$post = new Post;$post->createTime=new CdbExpression('NOW()');//$post->createTime='NOW()';will not work because 'NOW()' will be treated as a string$post-... 阅读全文
posted @ 2010-04-21 11:49
DavidHHuan
阅读(672)
评论(0)
推荐(0)
摘要:
public function ValidatorName($attribute,$params) f ... G 阅读全文
posted @ 2010-04-21 11:49
DavidHHuan
阅读(291)
评论(0)
推荐(0)
摘要:
覆盖tableName()方法 阅读全文
posted @ 2010-04-21 11:48
DavidHHuan
阅读(268)
评论(0)
推荐(0)
摘要:
直接在views里面使用$this->method(),如controller里面:Class PostController extends Ccontroller{Puvlic function actionList(){....}Public function getTitle(){return 'test title';}}views的list.php<?php echo $th... 阅读全文
posted @ 2010-04-21 11:48
DavidHHuan
阅读(511)
评论(0)
推荐(0)
摘要:
$post->delete();进行以上操作的之后,AR实体是没有发生改变的,但是数据库里面的记录已经发生改变了 阅读全文
posted @ 2010-04-21 11:48
DavidHHuan
阅读(314)
评论(0)
推荐(0)
摘要:
用一个方法来代替使用CActiveRecord::scopes例如public function recently($limit=5){$this->getDbCriteria()->mergeWith(array(’order’=>’createTime DESC’,’limit’=>$limit,)... 阅读全文
posted @ 2010-04-21 11:47
DavidHHuan
阅读(372)
评论(0)
推荐(0)
摘要:
在数据查询的时候,出现下面的是什么意思?$posts=Post::model()->published()->recently()->findAll();这个是叫做named scope,每个命名范围被声明为一个可以被用来初始化CDbCriteria阵列实例。如要下面的例子class Post extends CActiveRecord{......public function... 阅读全文
posted @ 2010-04-21 11:47
DavidHHuan
阅读(325)
评论(0)
推荐(0)
摘要:
MANY_MANY不能使用的属性:onBELONGS_TO不能使用的属性:limit Offset 阅读全文
posted @ 2010-04-21 11:46
DavidHHuan
阅读(570)
评论(0)
推荐(0)
摘要:
在components文件夹下面建立一个文件AutoTimestampBehavior.php,里面的内容为<?phpclass AutoTimestampBehavior extends CActiveRecordBehavior {/*** The field that stores the creation time*/public $createTime = 'creatTime';... 阅读全文
posted @ 2010-04-21 11:46
DavidHHuan
阅读(702)
评论(0)
推荐(0)
摘要:
public function defaultScope(){return array(’condition’=>"language=’".Yii::app()->language."’",);}这个方法对于每个实例的CRUD都是影响的。 阅读全文
posted @ 2010-04-21 11:46
DavidHHuan
阅读(452)
评论(0)
推荐(0)
摘要:
Components的方法引入以及定义:在config.php文件里面’components’=>array(’xyz’=>array(’class’=>’ext.xyz.XyzClass’,’property1’=>’value1&rsquo... 阅读全文
posted @ 2010-04-21 11:45
DavidHHuan
阅读(590)
评论(0)
推荐(0)
摘要:
在helper的extension里面,所有的方法只能是静态方法,就好像是全局方法一样,它的类名只是作为它的命名空间 阅读全文
posted @ 2010-04-21 11:45
DavidHHuan
阅读(415)
评论(0)
推荐(0)
摘要:
假设使用的model名字为CommentModel里面Public function rules(){Return array(......Array('verifyCode', 'captcha', 'on'=>'insert', 'allowEmpty'=>!Yii::app()->user->isGuest || !extension_loaded('gd')),);... 阅读全文
posted @ 2010-04-21 11:44
DavidHHuan
阅读(707)
评论(0)
推荐(0)
摘要:
[代码] 阅读全文
posted @ 2010-04-21 11:43
DavidHHuan
阅读(759)
评论(0)
推荐(0)
摘要:
创建application component继承IApplicationComponent接口,或者继承CApplicationComponent类,一定要覆盖IApplicationComponent::init()这个方法,因为component的实例化的时候要做一些准备工作的。创建behavior继承IBehavior接口,或者继承CBehavior类,如果是为CModel或者CActiv... 阅读全文
posted @ 2010-04-21 11:43
DavidHHuan
阅读(572)
评论(0)
推荐(0)
摘要:
在main.php 里面配置return array(’theme’=>’basic’,......);要使用theme里面的资源的话,比如说images, js, css, 应该这样, Yii::app()->theme->baseUrl.”/images/FileName.gif” 阅读全文
posted @ 2010-04-21 11:42
DavidHHuan
阅读(581)
评论(0)
推荐(0)
摘要:
传统的工厂 工作对象:30-55岁 分析:1. 这部分人群,工作和生活的形式比较传统。工作以体力劳动为主,平时生活以在家看电视,带孩子,做家务为主,很少接触计算机和互联网。即使是较年轻的少部分接触计算机和互联网,也是以影视、游戏、娱乐为主,基本上不存在网络社区文化和生活。 2. 工厂发展和生产的核心是,完成客户要求的产物和产量,资金集中在原材料的购买和工人薪金的支付上。对于客户的反馈方式,以传统的... 阅读全文
posted @ 2010-04-21 11:16
DavidHHuan
阅读(439)
评论(0)
推荐(0)
摘要:
以下是看完《3300万人的聊天室》这本书之后的一些内容整理,欢迎大家交流 ^_^~社会资本能使企业健康运行,只要建立了社会资本,迟早它会换成银行里的资本。社会资本,指的是你所拥有的人际关系以及其提供的资源。结识更多的人,添加更多的“好友”,那只是“社交网络”的第一步,更重要的是,要怎样“养育”你的社交网络。在通往成功的路上,从... 阅读全文
posted @ 2010-04-21 11:15
DavidHHuan
阅读(435)
评论(0)
推荐(0)
摘要:
随着互联网的高速发展,建立一个个人网站是轻而易举的事情,利用网上现成的建站服务商提供的建站服务,几分钟时间就可以轻松建立自己的个人网站,像:jujuya.com、showvi.com这些站点都提供了自助建站服务。需要功能强大,建立社区网站的可以选择jujuya.com;而showvi.com只提供个人建立下载类型的垂直网站。不过这些都不是今天我所要说的重点,今天的重点是谈一下IT人员的个人网站,他... 阅读全文
posted @ 2010-04-21 11:14
DavidHHuan
阅读(640)
评论(0)
推荐(0)
摘要:
以下是看完《决战SNS》这本书之后的一些内容整理,欢迎大家交流 ^_^~ 从最早自己创造开发内容的网站让路给汇集网站提供目录服务的门户,到不久以后,需要人工整理服务的门户网站让位给能自动汇集不同网站内容的搜索引擎。最新一波web2.0的网站连内容也不用去汇集,而是透过用记自己贡献内容,产生流量。互联网从最早的数据开放,逐渐发展成为平台级别的开放。用户自己不但贡献大量的内容,更贡献自己的社交圈,为网... 阅读全文
posted @ 2010-04-21 11:14
DavidHHuan
阅读(518)
评论(0)
推荐(0)
摘要:
示例代码如下,新建一个txt文件,将下面的代码放进去,注意修改红色部分,然后另存为run.bat就可以了@echo off:looptasklist|findstr /i "Portal.exe" ||e:\Portal.exeping 127.1 -n 30 >nul 2>nulgoto loop 阅读全文
posted @ 2010-04-21 11:13
DavidHHuan
阅读(826)
评论(0)
推荐(0)
摘要:
我们正在离开信息时代,迈入推荐时代。所谓长尾理论是指,当商品储存流通展示的场地和渠道足够宽广,商品生产成本急剧下降以至于个人都可以进行生产,并且商品的销售成本急剧降低时,几乎任何以前看似需求极低的产品,只要有卖,都会有人买。这些需求和销量不高的产品所占据的共同市场份额,可以和主流产品的市场份额相比,甚至更大。商业和文化的未来不在于传统需求曲线上那个代表“畅销商品”(hits... 阅读全文
posted @ 2010-04-21 11:13
DavidHHuan
阅读(520)
评论(0)
推荐(0)
摘要:
一般常见的表单是单选,文本输入以及选择框,但也有多选的,处理多选也还有讲究的,<form method=post action="">Invest interest<br /><select name="title[]" size="6" multiple="multiple"><option value="Foreign Exchange">For... 阅读全文
posted @ 2010-04-21 11:12
DavidHHuan
阅读(547)
评论(0)
推荐(0)
摘要:
代码如下,注意修改红色部分doDim ShellSet Shell=WScript.CreateObject("WScript.Shell")dim OK,oShellOK=Falseset bag=getobject("winmgmts:\\.\root\cimv2")set pipe=bag.execquery("select * from win32_process where name='... 阅读全文
posted @ 2010-04-21 11:12
DavidHHuan
阅读(1234)
评论(0)
推荐(1)
摘要:
<form action="" method="POST" id="form1"><input type="text" name="te" /><a href="" onclick="form_submit" >submit</a></form><script type="text/javascript">function f... 阅读全文
posted @ 2010-04-21 11:11
DavidHHuan
阅读(1094)
评论(0)
推荐(0)
摘要:
网页代码<form class="form2"><span class="left"> <b>one</b><br /><select size="8" id="select_1" name="select_1[]" multiple="multiple"><option value="1">niaoren_1&... 阅读全文
posted @ 2010-04-21 11:10
DavidHHuan
阅读(4487)
评论(1)
推荐(0)
摘要:
HTML代码:<span class="left"><b>one</b><ul id="list1" style="background-color:#ffee00" name="offJob"><li>1</li><li>2</li><li>3</li><li>4&... 阅读全文
posted @ 2010-04-21 11:09
DavidHHuan
阅读(2127)
评论(0)
推荐(0)
摘要:
假设表单的id为"myForm",代码如下:$("#myForm")[0].reset(); 阅读全文
posted @ 2010-04-21 11:08
DavidHHuan
阅读(7080)
评论(0)
推荐(0)
摘要:
假设table的id为tableContent$(document).ready(function(){$("#tableContent tr:even").addClass("evenClass");$("#tableContent tr:odd").addClass("oddClass");}); 阅读全文
posted @ 2010-04-21 11:08
DavidHHuan
阅读(687)
评论(0)
推荐(0)
摘要:
ckeditor本身是没有上传文件功能的,它里面所谓的上传设置是没有用的(应该就是这样啦) 这是原文的地址,自己整理了一下,翻译成中文 http://blog.beamstyle.com.hk/tutorial-on-integrating-ckfinderckeditor-into-cakephp 阅读全文
posted @ 2010-04-21 11:07
DavidHHuan
阅读(1373)
评论(0)
推荐(0)
摘要:
<form id="SubscribeForm"><input id="SubscribeEmail" type="text" onkeypress="getEnterEvent(event);return false;"/> </form>function getEnterEvent(ev){var e = window.event || ev;var key... 阅读全文
posted @ 2010-04-21 11:06
DavidHHuan
阅读(823)
评论(0)
推荐(0)
摘要:
return 0和return false是不同的!!!表单调用js的时候,onSubmit="return Check()",Check()这个函数的return一定要false,不要返回0,不然没有效果的!!原因未明~~~ 阅读全文
posted @ 2010-04-21 11:05
DavidHHuan
阅读(487)
评论(0)
推荐(0)
摘要:
<a href="javascript:void(0);" onclick="searchSave();" > 完成,添加商品! </a>以上代码在 FF 下完全可行的,但在IE下,href中的void()优先级高于onclick事件,导致onclick事件中DOM操作部分被忽略(忽略DOM的更改)应该改为<a href="javascript:searchSave(... 阅读全文
posted @ 2010-04-21 11:05
DavidHHuan
阅读(672)
评论(0)
推荐(0)
摘要:
代码 阅读全文
posted @ 2010-04-21 11:04
DavidHHuan
阅读(674)
评论(0)
推荐(0)
摘要:
两个页面都包含以下信息,<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>... 阅读全文
posted @ 2010-04-21 11:04
DavidHHuan
阅读(1030)
评论(0)
推荐(0)
摘要:
代码 阅读全文
posted @ 2010-04-21 11:03
DavidHHuan
阅读(1295)
评论(0)
推荐(0)
摘要:
PHP还有一个相当令人兴奋的特性:可变变量所谓可变变量,就是一个变量的变量名可以动态的设置和使用。看看下面的例子:1<?php2$a="hello";3$hello="world";4echo$a."".$$a;5?>输出的结果居然是hello,world.太神奇了。$$a其实就是$hello,因为$a的值是hello。变量就这多了。下面看看常量。 阅读全文
posted @ 2010-04-21 11:02
DavidHHuan
阅读(1375)
评论(0)
推荐(0)
摘要:
1.打开c:/windows,里面有一个php.ini文件(AppServ居然将php的配置文件移到这里来!),然后在里面搜索 ;extension=php_openssl.dll ,把前面的逗号去掉。2.进入AppServ的安装目录,到php文件夹里面,分别搜索 libeay32.dll 和 ssleay32.dll ,把它们复制到 c:/windows/system32 下面3.重新启动 Ap... 阅读全文
posted @ 2010-04-21 11:02
DavidHHuan
阅读(908)
评论(0)
推荐(0)
摘要:
// 注意:// bindParam是绑定一个PHP变量到一个SQL参数.是引用方式传递// 所以你可以改变变量值,再执行.就赋给SQL语句不同的值// 注意与bindValue的区别try { $sql = 'UPDATE `pdo` set `user` = :user, `email` = :email WHERE `id` = :id';$pre = $dbh->prepare($s... 阅读全文
posted @ 2010-04-21 11:01
DavidHHuan
阅读(1358)
评论(0)
推荐(0)
摘要:
代码 阅读全文
posted @ 2010-04-21 10:59
DavidHHuan
阅读(858)
评论(0)
推荐(0)
摘要:
1、用PHP打印出前一天的时间格式是2006-5-10 22:21:21(2分)" u% j& q! s$ }0 V8 ~4 ?# ?date("Y-m-d H:i:s", strtotime("-1 days"));2、echo(),print(),print_r()的区别(3分)echo是PHP语句, print和print_r是函数,语句没有返回值,函数可以有返回值(即便没有用)print() 只能打印出简单类型变量的值(如int,string)print_r() 可以打印出复杂类型变量的值(如数组,对象) 2 W; Q: j* q0 J# t3 K4 \3、能够使HTML和PHP分离开 阅读全文
posted @ 2010-04-21 10:58
DavidHHuan
阅读(701)
评论(0)
推荐(0)
摘要:
[代码] 阅读全文
posted @ 2010-04-21 10:57
DavidHHuan
阅读(1606)
评论(0)
推荐(0)
摘要:
A. Zend Framework解压在 /media/MyDocuments/xampp/htdocs/zf,B. Lampp放在 /opt/lampp1. 添加zf.sh到alias。在Terminal里面输入:alias=/media/MyDocuments/xampp/htdocs/zf/bin/zf.sh2. 修改zf.sh。用编辑器,打开 /media/MyDocuments/xamp... 阅读全文
posted @ 2010-04-21 10:56
DavidHHuan
阅读(408)
评论(0)
推荐(0)
摘要:
打开终端,输入以下命令:cd /etc/fonts/conf.d/sudo cp 49-sansserif.conf 49-sansserif.conf_backupsudo rm 49-sansserif.conf以上命令的功能是先备份49-sansserif.conf文件,再删除,经测试后有效。 阅读全文
posted @ 2010-04-21 10:55
DavidHHuan
阅读(300)
评论(0)
推荐(0)
摘要:
打开文件管理器(要用root的权限,可以用命令行: sudo nautilus) 把所有字体文件(.ttf等)复制到/usr/share/fonts下,至于哪个子目录,似乎并不太重要,我都是新建一个目录放的。之后有些网站说要把文件权限设为可读写,(sudo chmod 777 /usr/share/fonts/*)有些又不用。我两种都试过,都没有出问题。 最后执行字体缓存刷新。 网上:sudo f... 阅读全文
posted @ 2010-04-21 10:54
DavidHHuan
阅读(614)
评论(0)
推荐(0)
摘要:
其实关键是安装JDK,此方法并不是通过“新立得”更新来安装JDK的,因为学校的网速实是~~~1、sun网站上下载jdk-6u10-linux-i586.bin;2、一般默认下载到桌面;3、比如安装到/usr/java目录下;4、使用命令建立目录:sudo mkdir -v /sur/java;5、拷贝下载的jdk-6u10-linux-i586.bin到以上建立的目录中:s... 阅读全文
posted @ 2010-04-21 10:54
DavidHHuan
阅读(401)
评论(0)
推荐(0)
摘要:
要在用NetBeans但是今天在Ubuntu 8.10下安装NetBeans 6.5中文版的时候,中文全变成了小方块!这是少中文字体造成的,需要中文字体支持。解决方法:把/usr/share/fonts/truetype/arphic/ 文件夹下的字体拷贝到 JAVA_HOME/jre/lib/fonts/fallback下面注意:这里的“JAVA_HOME”是你系统中ja... 阅读全文
posted @ 2010-04-21 10:53
DavidHHuan
阅读(394)
评论(0)
推荐(0)
摘要:
这个问题在http://sudan.ubuntuforums.com/showthread.php?s=1e84e5731604622b9d1beae8b2e05dc1&t=966844&page=2找到了具体的解决方法.好像和alsa和无线网有关.翻译一下方法:解决这个问题的方法:命令行打开文件 /etc/init.d/alsa-utils 代码:sudo gedit /etc/... 阅读全文
posted @ 2010-04-21 10:52
DavidHHuan
阅读(341)
评论(0)
推荐(0)
摘要:
前几天也是这样的情况,播放音乐和电影没有声音拉,但是第二天早上起来发现一个设置,在菜单栏——系统——首选项——音效。中原来可以选择“声音事件”的不同选项,默认的是“自动检测”把他改为其他的选项,然后测试,发现有些都哦有声音拉,关闭设置,再进入媒体播放器,就可以拉 阅读全文
posted @ 2010-04-21 10:52
DavidHHuan
阅读(277)
评论(0)
推荐(0)
摘要:
运行: 代码:gconf-editor找到:代码:/apps/metacity/global_keybindings/run_command_10这里是举个例子,你也可以用run_command_1,run_command_2任意一个。编辑值为:代码:<Control><Alt>End设定热键为ctrl+alt+end,为了不跟系统本身的热键冲突,设在end上,就在del旁... 阅读全文
posted @ 2010-04-21 10:51
DavidHHuan
阅读(756)
评论(0)
推荐(0)
摘要:
1。安装方式将下载好的xampp for linux 解压到 /opt :tar xvfz xampp-linux-1.6.4.tar.gz -C /opt2。运行方式/opt/lampp/lampp start3。改变htdocs的默认路径打开 /opt/etc/httpd.conf,找到 DocumentRoot "/opt/lampp/htdocs" 这一行,将其改为 DocumentRoo... 阅读全文
posted @ 2010-04-21 10:51
DavidHHuan
阅读(238)
评论(0)
推荐(0)
摘要:
例如,我要加上php命令,而该命令的运行地址为/opt/lampp/bin/php在/etc/bash.bashrc文件的最后一行,加上 alias php="/opt/lampp/bin/php",就可以了。或者直接在Terminal里面输入 alias php="/opt/lampp/bin/php" 阅读全文
posted @ 2010-04-21 10:50
DavidHHuan
阅读(1891)
评论(0)
推荐(0)
摘要:
gnome:sudo apt-get remove ubuntu-desktopsudo apt-get install ubuntu-desktopgnome-panel:sudo apt-get remove gnome-panelsudo apt-get install gnome-desktop这样可以在桌面特效安装崩溃的时候用来重新加载gnome的。 阅读全文
posted @ 2010-04-21 10:49
DavidHHuan
阅读(1305)
评论(0)
推荐(0)
摘要:
if has("gui_running")"设置字符集set encoding=utf-8set fileencodings=ucs-bom,utf-8,chinese,prc,taiwan,latin-1"字体set guifont=YaHei\ Consolas\ Hybrid:h11 if has("win32")set fileencoding=chineseelseset fileencoding=utf-8endif let &termencoding=&encoding " 解决菜单乱码sour 阅读全文
posted @ 2010-04-21 10:49
DavidHHuan
阅读(1128)
评论(0)
推荐(0)
摘要:
卸载sudo apt-get --purge remove linux-sound-base alsa-base alsa-utils安装sudo apt-get install linux-sound-base alsa-base alsa-utils可以这样来处理声卡驱动突然出现异常的情况。 阅读全文
posted @ 2010-04-21 10:48
DavidHHuan
阅读(4768)
评论(0)
推荐(0)
摘要:
SVN set upOk now, our task of preparing the eZ Publish system ready for our newproject is pretty much finished; before we really start the developmentbusiness, there is one more step: put everything i... 阅读全文
posted @ 2010-04-21 10:41
DavidHHuan
阅读(466)
评论(0)
推荐(0)
摘要:
URLTranslatorRight now, eZ Publish support three different url TransformationGroup:urlalias, urlalias_iri and urlalias_compat. The urlalias_iri is nicefor its utf-8 support. However, in reality, I fou... 阅读全文
posted @ 2010-04-21 10:40
DavidHHuan
阅读(394)
评论(0)
推荐(0)
摘要:
Get Start a new eZ Publish project.What is the project about? What we want.In this article, we are going to set up a starting point of eZ Publishproject, named "Multiline". This project will contain t... 阅读全文
posted @ 2010-04-21 10:39
DavidHHuan
阅读(508)
评论(0)
推荐(0)
摘要:
1. Add the code to the /setttings/override/site.ini.append.php file[URLTranslator]Extensions[]Extensions[]=myfiltersFilters[]Filters[]=StripWordsThat means we have a new extension "myfilters", and "st... 阅读全文
posted @ 2010-04-21 10:38
DavidHHuan
阅读(340)
评论(0)
推荐(0)
摘要:
Modify the file of override.ini.append.php[pagelayout_corporate] Source=pagelayout.tpl MatchFile=pagelayout_corporate.tpl Subdir=templatesMatch[section]=4 which means that the corporate pagelayout tem... 阅读全文
posted @ 2010-04-21 10:37
DavidHHuan
阅读(273)
评论(0)
推荐(0)
摘要:
In eZ Publish, we can call back the standard PHP function, which takesonly one parameter as input. It is sufficient to create an override ofthe template.ini setting file in the settings folder of our ... 阅读全文
posted @ 2010-04-21 10:35
DavidHHuan
阅读(372)
评论(0)
推荐(0)
摘要:
attribute_view_guiparameters:attributealignmentimage_classcss_classhrefIn fact that, this function renders the datatype view, the default datatype views are locate in /design/standard/templates/conten... 阅读全文
posted @ 2010-04-21 10:35
DavidHHuan
阅读(365)
评论(0)
推荐(0)
摘要:
Usually, the full view is used to view a content node with all of itsattributes. (We can think of a full content node view as a static HTMLpage of that element.) The line view is used to view the cont... 阅读全文
posted @ 2010-04-21 10:34
DavidHHuan
阅读(261)
评论(0)
推荐(0)
摘要:
In order to avoid some display between frontend and backend, we'dbetter locate the override.ini.append.php file in the/settings/siteaccess/[your_site]/ 阅读全文
posted @ 2010-04-21 10:34
DavidHHuan
阅读(257)
评论(0)
推荐(0)
摘要:
Submission confirmation templateThe submission confirmation template for the form is loaded after the user clicks the Send formbutton (and after the system has validated the information in the form- f... 阅读全文
posted @ 2010-04-21 10:33
DavidHHuan
阅读(869)
评论(0)
推荐(0)
摘要:
{*Membership Application Form - Full view *} <divclass="border-box"> <div class="border-tl"><divclass="border-tr"><divclass="border-tc"></div></div></div> &l... 阅读全文
posted @ 2010-04-21 10:32
DavidHHuan
阅读(497)
评论(0)
推荐(0)
摘要:
Creating a custom formTo do this, log in to the Administration Interface and click on the Setup tab. In the left menu, click the Classes link: Add attribute Note that the attributes that will collect ... 阅读全文
posted @ 2010-04-21 10:30
DavidHHuan
阅读(437)
评论(0)
推荐(0)
摘要:
Form view template INI settingsWithout an override template, eZ Publish will use the /node/view/full.tpltemplate to display the form, but that template does not include theelements required to display... 阅读全文
posted @ 2010-04-21 10:30
DavidHHuan
阅读(260)
评论(0)
推荐(0)
摘要:
After you download and uncompress the .zip or tar.gz files, before you run the http://127.0.0.1/ez to install the website.1) Create the file of "/ez/settings/override/image.ini.append.php", insert the... 阅读全文
posted @ 2010-04-21 10:28
DavidHHuan
阅读(374)
评论(0)
推荐(0)
摘要:
The OS is ubuntu, use lampp which located in /opt/lampp 1. Modify the file of /opt/lampp/etc/httpd.conf NameVirtualHost ez.39.lan.gz:80<VirtualHost ez.39.lan.gz:80> <Directory "/media/MyDocum... 阅读全文
posted @ 2010-04-21 10:26
DavidHHuan
阅读(355)
评论(0)
推荐(0)

浙公网安备 33010602011771号