To add a controller extension and extend SAP Fiori, follow these steps:
Create a new controller extension file.
Implement the desired functionality in the extension, such as additional methods or event handlers.
Add the extension to the existing SAP Fiori app by referencing it in the app's configuration file.
Deploy the modified app to the SAP Fiori environment to make the extension effective.
Anubhav Online Training is a great interactive online resource for learning SAP UI5.