Hi everyone,
This question is more out of curiosity than anything - it's not horribly important.
I'm using the MVC Design Pattern for a project I'm working on. The way I've got my file tree set up is like this (for ease of explanation let's say I'm writing a piece for a calendar):
-- /
+
|--classes
| +
| |--calendar
| +
| |--Model
| |--View
| |--Controller
|
|--index.php
Now we all know it's best to have a descriptive filename so I would name the files inside the calendar folder something like:
Calendar_Model.Class.php
Calendar_View.Class.php
Calendar_Controller.Class.php
My question is this: if they were named:
Calendar.Model.php
Calendar.View.php
Calendar.Controller.php
and I tried to instantiate them, does PHP blow up because you would declare a new Calendar() and it wouldn't know which to instantiate even though they have different extensions?
I would try myself but I don't have access to PHP while I'm away for the holiday.
Thanks
Steve