What is the best way to code all the website necessary files ? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 2

What is the best way to code all the website necessary files ?

its one of the most questions asked by everyone's. how to limite coding the same code in different files. ?

27th Sep 2016, 8:03 AM
Driss Baidou
Driss Baidou - avatar
2 Respuestas
+ 1
First make your layout in HTML/CSS without PHP or choose a HTML Framework/Template (Bootstrap/Themeforest). Then integrate you PHP. Later you may want to use Template Engines for PHP or PHP Frameworks like Yii/CakePHP to handle stuff like output. But one step after the other ...
27th Sep 2016, 8:59 PM
Franz Alt
Franz Alt - avatar
+ 1
Thank you Franz Alt. my question is how to code ALL files. without losing time coding the same codes for different files. My answer is to Create a functions.php file and config.php then code all the rest of website of cours we have already the html codes pages. then call the functions file in header.php that's the edea to win time.
27th Sep 2016, 9:16 PM
Driss Baidou
Driss Baidou - avatar