Yii Framework Forum: How Do Modules Interact? - Yii Framework Forum

Jump to content

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

How Do Modules Interact? Rate Topic: -----

#1 User is offline   iScotts 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 20
  • Joined: 31-January 12

Posted 22 March 2013 - 05:55 AM

I am having some trouble wrapping my head around how it is possible to write a modular application with all modules being independent from each other?

For example if I have 2 modules blog and user. and I want to restrict the blog posting functions to admins. Doing a simple check on the blogs "actionPost" function like "Yii::app()->getModule('moduleId')->isUserAdmin();" will mean that the blog module is no longer independent, right? Or am I looking at this the wrong way?
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