Good morning,
I'm making a website in PHP, the "classic way" (mixing html and php). However as the website grows, the code gets ugly. So I was wondering if making the whole website with DOM is a good idea. DOM produces, I think, cleaner code, allow faster modifications in the code . etc.
"DOM" refers to the functions you can find here : http://php.net/manual/en/book.dom.php (createElement, getElementById ...)
Is it a good idea to use only DOM ? Or is it a crazy idea ?
Thanks.