in a CMS, it is a usually modul.
Evry modul placed into php files.
if you activate one module, then that will included.
In functions table, lets add a place (right or left block).
you might see how a cms system works. In drupal, or dcp-portal you can see this method easily.