I am an experienced php developer, but new to prestashop and trying to learn, also cann't help you, do not know the price of build a shop with prestashop.
The best way to solve this problem is to calculate the amount of time spent function in the php code used to track the code is too time-consuming, can also be used to exclude the problem of server space
you can write a new method in address1controller.php like this:
public function runmain()
{
$this->init();
$this->preProcess();
$this->process();
$this->displayContent();
}
and in address1.php,you can call like this:
ControllerFactory::getController('Address1Controller')->runmain();
it will don't show header and footer