Yii 2.0: yii2-heart

Yii2-heart is set of extension (widget, modules, wrapper, etc) to easiest developer in application development
8 followers

Yii2-heart is extension for Yii Framework version 2.0. It is set of extension (widget, modules, wrapper, etc) to easiest developer in application development.

Warning : This extension under development or PUBLIC PREVIEW :)

Roadmap

Done

  • Wrap Yii2-user (https://github.com/dektrium/yii2-user)
  • Wrap Yii2-admin (https://github.com/mdmsoft/yii2-admin)
  • Wrap Arshaw Calendar
  • Wrap PHPExcel (http://www.yiiframework.com/forum/index.php/topic/52199-how-to-load-phpexcel-in-yii-20-project/)
$objPHPExcel = new \PHPExcel();
  • Database Migration

Progress..

  • Wrap adminLTE -> create widget content (done Navbar, NavSide, Nav, Dropdown, Breadcrumbs, Box)

Waiting

  • Wrap TCPDF or FPDF
  • Wrap TinyButStrong
  • Wrap Highchart
  • Create Widget Export Excel, Word, Pdf
  • Create Widget Import Excel
  • Create Gii Improved base on this extension

Requirements

Yii2

Installation

The preferred way to install this extension is through [composer](http://getcomposer.org/download```er run

php composer.phar require hscstudio/yii2-heart "*"

or add

"hscstudio/yii2-heart": "*"

to the require section of your composer.json file.

Database migration

yii migrate migrationPath=@hscstudio\heart\migrations

Usage

Once the extension is installed, simply modify your application configuration as follows:

return [
    'bootstrap' => [        
        'heart',
        ...
    ],
    'modules' => [
        'heart' => [
            'class' => 'hscstudio\heart\Module',
            'features'=>[
                'fontawesome'=>true,
                'gii'=>true,
            ]
        ],
        ...
    ],
    ...
];

And then please read Guide - Index Guide

Resources

...external resources for this extension...

Hafid Mukhlasin @ milisstudio@gmail.com

Total 5 comments

#17833 report it
slvolz at 2014/07/26 10:50pm
migration problem

Lazlo,

The Heart extension is in development and ThePr0f3550r I am sure will be fixing the migration issue. It looks like in the migration script lines 79 to 91 should be removed. You don't have to do the individual migrations. The Heart migration script will cover it with the exception to the duplicate create table for the user. The first create is the table that the user module needs.

As for the issue at line 11. What template are you using for the heart install? Is it the Basic, Advanced or Custom? The object $authManager should be an instance of the DBManager. The template matters as to where you configure the authManager at. If it is the Advanced it should be in the /common/config/main-local.php. Basic should be the /config/web.php.

Make sure you have a clean migration before continuing.

I was unable also to create this extension with the instructions above. I finally installed it but things are not working properly with the following steps:

  1. Install Basic Template
  2. Applied the SQL found in the migration directory of the heart extension. When I ran the migration nothing happened. Migration table created and nothing else.
  3. Configured as mentioned.
  4. Was unable to log in because of no default users in the sql scripts.
  5. When I did manually create a user login did not work properly.

I am waiting for the next update to this extension in GIT. The demo appears to work (limited but is somehow working) but the developer said more updates in GIT. The Git version is not working as expected to the install instructions. So waiting. The Yii 1.1 version looks good but would like to see in Yii2.

I have gotten the user module working (advanced Template) before this module properly so I think there is something incorrect with the Heart extension. Need better instructions and script code.

#17832 report it
tihanyilaci at 2014/07/26 04:44pm
$authManager problem

Hi, i am digging into this migration file (m140719_221652_create_heart_table.php) now and i have a very strange thing at line 11:

$authManager = Yii::$app->getAuthManager();

so this

$authManager

variable is instance of a 'm140719_221652_create_heart_table' class. Like the

$this

object. I just don't get this. I did not forget to configure the authManager component:

'components' => [
        'authManager' => [
            'class' => 'yii\rbac\DbManager',
        ]
    ],

best regards

Laszlo

#17830 report it
tihanyilaci at 2014/07/26 09:26am
migration problem

Hi slvolz,

i installed both of the modules, yii2user and yii2admin. The problem still existed. But if i changed the migration command from

yii migrate migrationPath=@hscstudio\heart\migrations

to

yii migrate --migrationPath=@hscstudio\heart\migrations

there is a new mysql error message in the command line:

create table {user} - base table or view {user} already exists

And there is really 2 'create table user' command in the php file 'm140719_221652_create_heart_table'

Any suggestion?

#17818 report it
slvolz at 2014/07/24 01:39pm
migration problem

tihanyilaci,

You might need to run the migration for the Yii2-User module. Check its documentation. Also check the documentation for Yii2-admin. Check the other extensions/modules too.

#17815 report it
tihanyilaci at 2014/07/24 09:34am
migration problem

Hi, i have problem with db migration. I installed basic package with composer and i added to the required section in composer.json and updated package. But db migration does not work, i have 'user' table does not exist error message. Could you help please. Thanks Laszlo from Hungary

Leave a comment

Please to leave your comment.

Create extension
Downloads
No downloadable files yet