Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model overwriting #202

Open
ayushpitroda opened this issue May 1, 2019 · 1 comment
Open

Model overwriting #202

ayushpitroda opened this issue May 1, 2019 · 1 comment

Comments

@ayushpitroda
Copy link

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

@Mackiavelly
Copy link

'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/';

...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants