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
1
vote
1 answer

roxymce file manager using in yii2

I am a newbie in yii2. I want to use roxymce file manager in my yii2 project. I followed these docs for use in yii but when using this section, I get Undefined variable: form error and when use ActiveForm::begin() in I get Getting unknown property:…
Farshid Shekari
  • 2,391
  • 4
  • 27
  • 47
1
vote
1 answer

How to enabled and disabled modules in Yii2?

In google no more information about modules enabled and disabled so I am troubling here. I have build some modules in yii2 like users, payments, subscriptions, news etc. I want to disabled subscriptions modules. Is it possible? Edit: Enable and…
Chinmay235
  • 3,236
  • 8
  • 62
  • 93
1
vote
1 answer

Yii2: uniqueID and id modules properties

Class yii\base\Module has 2 properties: id and uniqueId. The former "uniquely identifies this module among other modules which have the same parent", while the latter - just unique id. But I still don't understand the diff. Why need we id to…
Boolean_Type
  • 1,146
  • 3
  • 13
  • 40
1
vote
1 answer

How publish my module's assets in Yii2

I have a module with two views, I need that each view have its own assets files, because of this I wrote a AssetBundle called DashboardAsset for my dashboard view, this is the code. class DashboardAsset extends AssetBundle { public $sourcePath…
JCF
  • 368
  • 3
  • 15
1
vote
1 answer

How to create a Enom component in Yii framework

I am new to yii and i have to create a yii component for Enom api .I have followed this url Enom application for refrence . It is in core php and i want to implement this in yii as component or module .I have done in this way put the files…
Manoj Dhiman
  • 5,096
  • 6
  • 29
  • 68
1
vote
2 answers

Yii - How to use different model name from model directory?

I want to use a specific folder name for my module, but I don't really want it's name shown to the end user (ie: in the URL). I have tried to set the class name, but it tells me it doesn't exist when it is anything OTHER than what it's supposed to…
Wade
  • 3,757
  • 2
  • 32
  • 51
1
vote
1 answer

Yii user migration issues

i am new to yii and i need to install yii user module i am stuck at the migration command : Run command: yiic migrate --migrationPath=user.migrations I searched for help and i found this command : yiic migrate…
Pepito C
  • 21
  • 1
1
vote
2 answers

Inherit layout from parent module in submodules Yii

In my Yii application I want to create a admin module. So far I've created a module called 'admin' and created a login page that uses the layout: layout.php. Inside the admin module I want to add all my submodules. So I've created the submodule…
kipzes
  • 694
  • 2
  • 10
  • 27
1
vote
1 answer

Organize directories for applications with front-end and back-end in Yii

I am using technique to separate back end from front end in yii using following directory structure: wwwroot/ index.php backend.php assets/ images/ js/ protected/ config/ main.php components/ controllers/ models/ views/ …
Sheraz Ali
  • 315
  • 6
  • 19
1
vote
1 answer

Yii modules not working on my site

I have a website powered by yii framework. Yii Version: 1.1.14 Php version: above 5.4 I tried to install a forum module from the following location http://www.yiiframework.com/extension/bbii I added the modules in the main.php as specified in the…
Vasanthan.R.P
  • 1,277
  • 1
  • 19
  • 46
1
vote
0 answers

returnurl() always return index.php in yii

I created a module Admin in yii. If I request any page in this module before login it will redirect to login page. But after successful login it rediect to the site/index. This is the code for redirection. if($model->validate() &&…
pckabeer
  • 686
  • 6
  • 27
1
vote
1 answer

Yii bootstrap inside module

I'm trying to include yii bootstrap from module. I want to keep it in /modules/myModule/extensions/bootstrap and all config params outside main config. Is it possible? Currently in myModule init i…
1
vote
5 answers

how and where to include js and css for modules?

I have modules for category: +modules/ +category/ +assets/ +css/ +js/ +images/ +components/ +controllers/ +models/ +views/ -CategoryModule.php What is the best way to includes the css and jss to all views?
CodeManiac
  • 974
  • 8
  • 34
  • 56
1
vote
1 answer

Unload bootstrap in error view of main site controller

My admin module is using bootstrap: 'admin'=>array( 'preload'=>array('bootstrap'), 'components'=>array( 'bootstrap'=>array( 'class'=>'ext.bootstrap.components.Bootstrap', ), ) …
keeg
  • 3,990
  • 8
  • 49
  • 97
1
vote
2 answers

How to switch locales/languages for different users

I have designed a web application, It works for two different users say user1 and user2, and both of the users need the view in different languages. I have studied about yii:t() but by that method we have to define language in main.config, which set…
Rohitashv Singhal
  • 4,517
  • 13
  • 57
  • 105