arturoliveira / yii2-checkoutprogressbar
CheckOutProgressbar
1.1
2015-06-10 02:38 UTC
Requires
This package is not auto-updated.
Last update: 2024-09-18 09:11:07 UTC
README
CheckOutProgressBar
安装
安装此扩展的首选方式是通过 Composer。
运行以下命令之一
php composer.phar require --prefer-dist arturoliveira/yii2-checkoutprogressbar "*"
或者在您的 composer.json
文件的 require 部分添加
"arturoliveira/yii2-checkoutprogressbar": "*"
。
使用方法
扩展安装完成后,只需在您的代码中通过
<?= \arturoliveira\CheckOutProgressBar::widget([
'current_step' => 1,
'current_step_done' => TRUE, # Optional if you want this step to be checked
'steps' => [
[
'label' => 1,
'title' => 'Step 1',
'url' => Url::toRoute('/step1'), # Optional if you want the label and title to be clickable
],
[
'label' => 2,
'title' => 'Step 2',
'url' => Url::toRoute('/step2'), # Optional if you want the label and title to be clickable
]
]
]);
?>