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
Resources ¶
...external resources for this extension...
Hafid Mukhlasin @ milisstudio@gmail.com
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
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.
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
to
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?
$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:
so this
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
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:
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.
Demo link not working
Demo link not working
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.