Yii Framework Forum: how to install yii2 basic as yii2 advance - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

how to install yii2 basic as yii2 advance get yii2 advance specifications like regiseration yii2 basic Rate Topic: -----

#1 User is offline   mhmmadsa 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 15-December 16

Posted 26 December 2017 - 03:09 AM

i need to install yii 2.0 basic, then copy and import yii 2.0 advance specifications like tow table in mysql, all models and controller. is that possible?
any other ways to do this? Thanks all.
0

#2 User is offline   softark 

  • Keep It Simple
  • Yii
  • Group: Moderators
  • Posts: 3,623
  • Joined: 16-February 11
  • Location:Japan

Posted 27 December 2017 - 07:53 AM

View Postmhmmadsa, on 26 December 2017 - 03:09 AM, said:

yii 2.0 advance specifications like tow table in mysql, all models and controller


I'm not sure what you mean by that, but I would do the following:
  • Install the app-basic.
  • Write and execute a migration to create 'user' table.
  • Replace the User model of app-basic with that of app-advanced.
  • Write 'signup', 'request-reset-password' and 'reset-password' actions if necessary.
  • Create 'admin' module for the back-end pages.
  • ...


With the source code of the app-advanced in your hand, it will not be so hard to do, I hope. :)
0

#3 User is offline   newbiedo 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 91
  • Joined: 28-June 12

Posted 03 January 2018 - 04:45 PM

I did as mentioned above, it is not too hard. You will have to watch for namespace declarations in the models,
<?php
 //Change
namespace common\models;
//to
namespace app\models;
?>

Or generate new models with gii, and paste in the code borrowed from the advanced or any custom code you may have created.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users