Yes, I already read some posts in the official pyrocms forums about this issue. So I have accepted that is no possible due CI architecture.
===
Said that. well, I MUST extend it ("users" module) at any cost because: The customer is always right, right? or wrong, what ever. I must do it. So please advice about the best approach to accomplished. Hopefully considering pyroCMS upgrades in the future.
Really grateful for your time, Thanks.-
Extending PyroCMS user module feature is provided by PyroCMS system. For extending User moudle, this module have provided user libraries(ion_auth and user_lib) where we can call user modules functions such as
you can simply call the module like this:
if ($id = $this->ion_auth->register($username, $password, $email, $user_data_array))
{
echo 'success';
}
else
{
echo 'error';
}
如何创建一个自定义模块,该模块使用events.php导入用户的模型,库并附加自定义函数
It really depends on what you're trying to do. Look at using helpers . Or expand on your question.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.