Questions tagged [yii-modules]

Yii-Modules is first of all a series of standard classes you can use to distribute the work of your project across modules. It is built on top of the Yii framework.

Yii-Modules is first of all a series of standard classes you can use to distribute the work of your project across modules.

It is built on top of the Yii framework, and thus it is highly reliable.

Just like the Yii framework, it also tries to keep things as slim as possible.

Over time, standard modules will be provided, like "blog", "admin", "users", etc, which should adapt automatically as you plug in or out different modules.

See InstallationInstructions for how to "install". Reading DesignPrinciples should get you a nice overview. There's also a list of TODOs.

I will try to fill the wiki with general ideas which should help you understand the code easily. Please check it regularly.

Please note:

  1. I think it has a great potential, but it cannot reach it without you.
  2. You shouldn't think of it as being even in the alpha stage. It's merely a pilot project for now, a prototype.
  3. There is much room for improvement.
  4. I know many of you had already tried to create modular applications on top of yii. The "yii modules" project tries to unify the needs of such modular applications.
  5. At its core lies a very lightweight messaging system (LMS) for use across modules. I doubt it can get any lighter than that.
  6. Ever wondered how to create navigation menus from independent, stand-alone, completely individual modules? It uses LMS to do just that.
  7. It's worth taking a look at it. The LMS is much more powerful and multi-purpose than "building navigation menus from modules".
  8. Did I say there's much room for improvements? VERY much! But please look at the general ideas behind the code and try figuring out if its worth contributing with patches, ideas, bug reports. Patches are highly appreciated.
  9. I would be glad if some people would join me. However I won't simply call out for new members, because very often in the OSS world it happens people come by, submit a patch, and then you never hear from them. I've done that myself with other people's projects and I know the ones who do that are not malevolent. Neither was I. If you'd like to contribute because you consider you can benefit from it too, submit patches. "Excessively" active patch submitters will be granted commit access.
  10. I don't "feel the yii way of doing things" yet, thus there may be some inflection points which are poorly designed. Feel free to point them out.

Homepage | Google code

56 questions
4
votes
1 answer

Yii 2: Module class not found

In the backend/config/main file, there is a reference to the module class: 'modules' => [ 'cropk' => [ 'class' => 'app\modules\cropk\CropK', ] ], In the vendor/xxx/cropk directory, there is the following class CropK: namespace…
felipe.zkn
  • 2,012
  • 7
  • 31
  • 63
4
votes
3 answers

Yii - renderpartial from module to root folder

i am trying to render the view from module to project base view but it gives error. I tried below combinations without any luck. It gives the error "DefaultController cannot find the requested view "appsMenu"." echo…
Mohd Shahid
  • 1,538
  • 2
  • 33
  • 66
3
votes
1 answer

Yii 2: Using module's image declared as asset

I have a image in a module within the following structure: vendor/myvendorname/mymodulename/assets/img/delete-icon.png I need to add an to the page via JavaScript, and it may have the src attribute pointing to that…
felipe.zkn
  • 2,012
  • 7
  • 31
  • 63
3
votes
1 answer

Yii 2: Load a module's view as a partial view on another application view

I need to load a module's view as a partial view inside another view of the application. I find no clue about how to do this in the manual. The view is completely independent of the module:
felipe.zkn
  • 2,012
  • 7
  • 31
  • 63
3
votes
1 answer

MbMenu.css doen't synchronize with the page

I have a problem with the extension mbmenu YII. I set everything up properly and now I have the default theme. I want to change the theme and therefore go into the mbmenu.css and change what I need but nothing changes on the page. When I made ​​the…
mortiped
  • 869
  • 1
  • 6
  • 28
3
votes
1 answer

yii - how to create a completely independant extension using nusoap 0.9.5 in yii 1.1.13

SOLVED Thanks to @JPR and tuned-up thanks to @PeterM /* The only dependance is when */ class NuSoap extends CApplicationComponent v-Below, the initial question -v I would like to know how to create a basic extenstion in yii 1.1.13 using nusoap…
Truefalse
  • 794
  • 5
  • 16
3
votes
3 answers

Override Yii Login Url for Module

How to override Yii Login URL Modul for module? here is the main configuration for base application: return array( ......... // application components 'components'=>array( 'user'=>array( //…
GusDeCooL
  • 5,639
  • 17
  • 68
  • 102
2
votes
0 answers

Yii2 login not working when debug module is not loaded

We have a working Yii2 app that was Frankensteinized using Yii1's old version as a base then updated to Yii2. Of course there were a lot of problems and I managed to fix most, however there is a problem that keeps evading me. As soon as we switch…
NaturalBornCamper
  • 3,675
  • 5
  • 39
  • 58
2
votes
1 answer

Yii2. Override module class

Is it possible to override module Module.php class to add some additional configs? I've extended some views and controllers and want to add a few additional configs for them.
D.R.
  • 2,540
  • 3
  • 24
  • 49
2
votes
1 answer

How to access css/js file for layout of a module in Yii2

I have a module named social with the directories like this : frontend -- modules -- social -- assets -- SocialAsset.php -- controllers -- views -- default -- layouts --…
Bhazk
  • 182
  • 1
  • 21
2
votes
1 answer

Yii2: $loadedModules does not show all modules

Created module "forum" - exactly as written here. Then created nested module "admin": //"Module.php" in '@app/modules/forum' namespace app\modules\forum; class Module extends \yii\base\Module { public function init() { parent::init(); …
Boolean_Type
  • 1,146
  • 3
  • 13
  • 40
2
votes
1 answer

how to remove module name from url in yii

I try to remove module name from url in YII http://testdomail.com/demo/user/create I want http://testdomail.com/user/create Where demo is my module name. How can I do this?
Hasibur
  • 205
  • 1
  • 10
2
votes
3 answers

User management hybrid auth setup

I'm trying to setup hybrid auth on the Yii user management addon, the docs are here https://github.com/thyseus/yii-user-management/blob/master/user/docs/hybridauth.txt according to this step Take the modules/user/vendors/index.php, rename it to…
user2636556
  • 1,905
  • 4
  • 32
  • 61
2
votes
1 answer

Yii Modules and createUrl

I'm trying to set up an Ajax call function actionAjaxDialog within my Module's DefaultController.php Originally, I didnt have this set up as a module so I had to convert it. Now that it's converted however it no longer works. I keep getting 404…
James
  • 69
  • 3
  • 12
2
votes
5 answers

How to set up layout for all controllers in Yii module?

in my Yii app I have one module called admin, so the module class is AdminModule, it extends the CWebModule class and is located in the AdminModule.php file. According the documentation the CWebModule has a layout property which is shared among all…
petiar
  • 1,047
  • 2
  • 14
  • 31
1
2 3 4