Share data into modules

Hi folks,

I’d like know if there are some method to share data into

modules?

I’m making a application that have a module called “auth” that

manage the users access on my application and I intend to do

another called ‘blog’ where the access is managed by auth

module.

How can I verify on blog controllers if the user

has or no authorization to request some action?

Thanks.

You may use filters to verify authorization:


public function filters()

	{

		return array(

			'accessControl', // perform access control for CRUD operations

		);

	}

If you want something more your module could provide services.

Hi Angelica, this is the idea.

Thanks.