在Yii2 Ckeditor中,我正在使用
use dosamigos\ckeditor\CKEditor;
Run Code Online (Sandbox Code Playgroud)
这个扩展用于在表单中显示ckeditor
<?= $form->field($model, 'cmsdetails_ar')->widget(CKEditor::className(), [
'options' => ['rows' => 6],
'preset' => 'basic', 'contentsLangDirection'=>'rtl'
]) ?>
Run Code Online (Sandbox Code Playgroud)
我添加了一个额外的选项'contentsLangDirection'=>'rtl'来显示阿拉伯语文本.
但contentsLangDirection不能使用此扩展,
请帮我 .谢谢
我想Dynamic Routing在yii2中的Cms页面中设置url.当我添加Cms页面时,我将添加页面别名aboutus,faq,management等,这些别名将保存在db中.
当我给URL规则静态时它会工作,[检查下面的代码]
'urlManager' => [
'showScriptName' => false,
'enablePrettyUrl' => true,
//'enableStrictParsing' => true,
'rules'=>array(
'aboutus'=>'cms/index/1',
'faq'=>'cms/index/2',
'termacondition'=>'cms/index/3',
'management'=>'cms/index/4',
),
],
Run Code Online (Sandbox Code Playgroud)
但我想动态添加网址规则.
我需要在yii2中的config/main.php URL规则中添加所有动态页面别名.请帮帮我.
我想使用 css 修剪字符串。例如我的字符串是
“嗨,谷歌,你好吗”
我想获得输出
“你好”
得到前两个字母。使用 Css 是否可以修剪字符串。
我需要PHP中的时间倍增
$maritime ='01:10:00';
Run Code Online (Sandbox Code Playgroud)
我需要将此$maritime 增加到5
我想得到这样的答案
01:10:00*5 = 05:50:00
Run Code Online (Sandbox Code Playgroud) 我需要在使用 Jquery 时隐藏一个 Div,它包含特定的 title 。我的两个 div 中的示例有标题停止绘制并绘制一个圆圈
<div draggable="false" title="Stop drawing" ></div>
<div draggable="false" title="Draw a circle" ></div>
Run Code Online (Sandbox Code Playgroud)
请帮我。