Subdomain is extensions to create subdomain but not using cpanel interface. You can customize it
Requirements ¶
requirements of using this extension (e.g. Yii 1.1 or above)...
Usage ¶
- Extract the downloaded file to your application extensions directory
- Just place the following code inside your controller file:
Yii::import('ext.subdomain.Subdomain');
$sb = new Subdomain('sopwer.net'); //youdomain
$sb->setCpanelInfo('user_cpanel','pass_cpanel'); //user & pass cpanel
$sb->setCpanelSkin('x3'); //skin
$sb->setSubdomain('ramdani'); //subdomain name
$sb->execute();
Resources ¶
Don't hesitate to contact me if there are any errors.
Interesting extension
Hm... Looks very interesting and promising... Taking a loot at it :)
Thanks
Don't hesitate to contact me. if you get something wrong about the extensions
Cpanel extension
I am getting exception when i am try to include MPCpanel file into component
array(
'class'=>'MPCpanel', 'username'=>'yourUsername',//required 'url'=>'http://mydomain.com:2086/',// by default https://127.0.0.1:2087/ 'auth_type'=>'basic',//accepted = basic or whm //basic by default 'api_type'=>'json',//accepted = json or xml //json by default 'password'=>'myPassword',//required for basic type of authentication 'access_key'=>'myBiggggggggggKey',//required for whm type of authentication ),
I am also try to import file which is available in extensions folder
'import'=>array(
'application.models.*', 'application.components.*', 'application.extensions.MPCpanel', ),
I am getting the error message CException
Property "CWebUser.cpanel" is not defined.
Please help me I am new in Yii
Thank in advance
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.