Yii Framework Forum: Enable/Disable Controller or Method | Convert Traditional Module to Proper Yii Module - Yii Framework Forum

Jump to content

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

Enable/Disable Controller or Method | Convert Traditional Module to Proper Yii Module Rate Topic: -----

#1 User is offline   Sahil Patel 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 03-July 17
  • Location:India

Posted 06 October 2017 - 12:42 AM

Hi, All,

How do I make the current YII project for B2B kind of development? In the starting time I was making it for just one company but now I want to sell the existing module if they pay for that.

For example,

I have communication module(not the module of Yii which can enable/disable from config).

> Protected/Controller/CommunicationController.php
> Protected/Models/Communication.php
> Protected/views/Communication/*.php

How do I do it? Is there any way to convert it in the PROPER YII MODULE. If so then please let me know.

Thank you in advance.

Sahil Patel
0

#2 User is offline   Arockia Johnson SR 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 185
  • Joined: 25-June 13
  • Location:Singapore

Posted 09 November 2017 - 04:50 AM

Hi Patel,

You may try to use subdomain kind of .htaccess routes for each client! so same instance of code can be used for all clients

Or

protected/modules/YourModule/YourModule.php

and

just copy and paste the files as you mentioned there



> Protected/Controller/CommunicationController.php
> Protected/Models/Communication.php
> Protected/views/Communication/*.php




then use yourdomian/module done!


You may refer the yii site : http://www.yiiframew...n/basics.module
மகிழ்ச்சியாக குறியிடுங்கள்!..... Happy Coding!.....


Thanks & Regards,
ஜான்சன் ( Arockia Johnson SR )
www.arojohnson.tk

Hit (+) button If my replies really helped you!
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