0

Is it possible to put and run modules in yiiboilerplate common section? If it could, how it configured?

Thanks,

Wildan Muhlis
  • 1,553
  • 2
  • 22
  • 43

1 Answers1

0

Just configure the module with a path alias, as far as I can tell there is an alias root which points to the project root.

'foo' => array(
    'class' => 'root.common.modules.foo.FooModule',
),

You may also have a look at this config file from my boilerplate, which does the same.

schmunk
  • 4,708
  • 1
  • 27
  • 50