salehasadi/yii2-slidercategory

javascript cylce2 yii2 wrapper

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Type:yii2-extension

dev-master 2016-07-13 11:38 UTC

This package is not auto-updated.

Last update: 2020-08-12 11:15:57 UTC


README

Complete category management module for Yii2 based web application, Ready to integrate

  • Easy to install
  • Create Unlimited Multilevel categories
  • Category tree structure to visualize category depth
  • Category Image
  • Category SEO Meta (Title, keywords, Description)

1. Download

Yii2-categories can be installed using composer. Run following command to download and install Yii2-categories:

php composer.phar require salehasadi/yii2-imageslidercategory "dev-master"

2. Configure

Add following lines to your main configuration file to access this module via web URL:

NOTE: Along with category module you also need to configure redactor Module which installed as dependency in category module as below to add wysiwyg editor in category description.

'modules' => [
	'redactor' => 'yii\redactor\RedactorModule',
    'slider-module' => [
        'class' => 'salehasadi\imageslidercategory\Module',
    ],
],

3. Update database schema

The last thing you need to do is updating your database schema by applying the migrations. Make sure that you have properly configured db application component and run the following command:

$ php yii migrate/up --migrationPath=@vendor/salehasadi/yii2-slidercategory/migrations

4. add Widget to view file

<?= salehasadi\slidercategory\SliderWidget::widget(['category_id' => 1]) ?>