I need to generate an .xml
file from my extension. Inside Namespace/Module/view/adminhtml/ui_component/
folder,
I need to do this pro-grammatically because the .xml
file will be generated based on data collection, is there a way to do this?
filemagento2xml
I need to generate an .xml
file from my extension. Inside Namespace/Module/view/adminhtml/ui_component/
folder,
I need to do this pro-grammatically because the .xml
file will be generated based on data collection, is there a way to do this?
Best Answer
For now i'm using php original function to write/create file inside my extension directory like this:
if there's more proper way to do it in Magento 2 please let me know, and i will accept the answer for this question, but for now if anyone want to use this as a solution it's working properly for me but i do not recommend it