![]() |
Proper use of HTMX - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Best Practices (https://forum.codeigniter.com/forumdisplay.php?fid=12) +--- Thread: Proper use of HTMX (/showthread.php?tid=88970) |
Proper use of HTMX - ozornick - 12-12-2023 The question requires a bit of reasoning. How do I use templates in a standard request/response cycle? I generally understood how it works, but I can't figure out how to structure it correctly. I have reviewed the michalsn Demo HTMX example and forum-example. I don't like that classic CRUD pages are disappearing. In their place, only the HTMX fragment is returned. Can you suggest different ways to fix the situation? I understand that as a developer I have the right to apply any approach. I would like to know your opinion. What should I do if the user needs direct links like /books/edit/33? Or clicking on a link from different places: sidebar, profile, mail? Do I need to write alternative controllers like Controllers/Ajax/? How do I create templates for both classic and HTMX cases? |