So, I am creating a CMS gallery gallery through object oriented PHP. In any case, the problem is that I have a basic layout for objects and such to such an extent that I need to start collecting, I'm at a dead end on how to do this.
I have a navigation, data, gallery and module class. The module indicates pages, categories, etc. The problem is that Gallery displays images, the module provides data for pages, navigation creates navigation (you assume). You get an image.
On the index page, I end up doing this (this WILL change, but this is illustrative of how I started setting it up):
$navigation = new Navigation();
$navigation->top();
$page = new Module();
$page->basicPage($_GET['m']);
BasicPage () does a few things, but first of all it is a problem:
$gallery = new Gallery();
$gallery->setGallery($id);
$gallery->thumbGallery();
So, so on.
, basicPage(), , . , thumbGallery, , ( , ).
, . , , , Wordpress. , , . , , . , ": " , , , , Wordpress.
: ?
, . .
EDIT: . , , if/else .., , , . ., , . , , . , thumbGallery, , , ( ). , , , , , php, , php, . ( . , ).