So basically i am struggling with the need of optimizing my code for some project of mine.
Currently i have pages like add_company.php, view_company.php, edit_company.php.
What i would like to do is to serve all content from just 1 PHP file company.php.
So to speak company.php?action=view, company.php?action=edit etc. Is the only way to do this with massive if else statements? That would make my company.php like mega huge.
Or maybe even better how could I serve all my pages just using index.php ?
Peki bunu gerçekleştirmek için en iyi yolu olurdu? Php guru değilim ve ben MVC veya diğer herhangi bir desenle çok deneyimi yok.
Teşekkürler.