user-management icon indicating copy to clipboard operation
user-management copied to clipboard

Model overwriting

Open ayushpitroda opened this issue 6 years ago • 1 comments

How to overwrite models or extend base model from modules? there is need to update this changes into this model.

ayushpitroda avatar May 01 '19 09:05 ayushpitroda

'modules'        => [
		'user-management' => [
			'controllerMap' => [
				'user' => 'app\controllers\webvimarkRework\UserController',
			],
			'class'         => 'webvimark\modules\UserManagement\UserManagementModule',
		],
	],
class UserController extends \webvimark\modules\UserManagement\controllers\UserController {
	/**
	 * @var User
	 */
	public $modelClass = 'app\models\webvimarkRework\User';

	/**
	 * @var UserSearch
	 */
	public $modelSearchClass = 'app\models\webvimarkRework\UserSearch';

	/**
	 * $var Views
	 */
	public $views = '@app/views/user/';

...

Mackiavelly avatar Jun 19 '19 08:06 Mackiavelly