webyjh
- webyjh 回复了话题 招聘php程序员(Yii优先)
怎么看怎么像是广告,或许我邪恶了
这样行不?
[attach]535[/attach]笨鸟先飞啊。学习了。
3Q,只要在配置文件里指明默认语文为zh_cn就可以引用YII自带的翻译了,很方便
又搜索了一遍权威指南,原来只要在config.php里配置一下
'language'=>'zh_cn'
,PS我晕啊 ,为什么没人告诉我在配置文件里指明默认语文为zh_cn,找得我好辛苦啊刚刚查了1.1.7api没找到答案
我们俩的头像真有意思啊,好像看见对方了都很惊讶
<?php $this->widget('zii.widgets.jui.CJuiDatePicker', array( 'attribute' => 'date', 'model'=>$model, 'name'=>'date', 'language'=> 'zh_cn', 'options' => array( 'showAnim' => 'fold', 'dateFormat' => 'yy-mm-dd', 'size'=>'1', ), ));?>
呵呵,看了一下api就找到了