Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
15379 มุมมอง

Hi there,

What is the best practice to modifying and adding aditional functionality to an exisiting module?

Say for example with the project module if I wanted to add some code in the create method would I hard code it into the exisiting file or would I have to create a new module which some how inherits the project code and the create method would be over-ridden some how?

 

Many thanks

 

อวตาร
ละทิ้ง

Hi Matt, My personal suggestion is that you should create new module instead of modifying an exiting module.

คำตอบที่ดีที่สุด

Hi Matt,

As per my personal suggestion you have to create new module for extend any new functionality or feature of any available module. Because if we have done direct changes into existing module then it cause an issue while we are going to upgrade that module with new code.

อวตาร
ละทิ้ง

that depends a little on how you have done your installation. Still I think one common practice would be to add Modules 'on Top' an existing module. These new modules add the functionality you want to add. I guess it depends on how severe your addtirion or changes should be whether this is the best approach

Related Posts ตอบกลับ มุมมอง กิจกรรม
4
ต.ค. 20
8695
2
มี.ค. 15
4446
0
มี.ค. 15
3485
0
เม.ย. 25
837
3
ก.พ. 24
10167