This topic is locked

Auto Generate Header.php File

2/7/2012 9:47:32 AM
PHPRunner General questions
S
scopley author

I've just upgraded to PHPRunner 6.0. We have a database header on all of our list pages. This lets our QA personnel know which database they are testing in. I have a header.php file created and it does display the correct header information on each list page. My problem is that I have to manually add this file everytime I create a new project and if I Reset the page I have add it again.
What do I need to modify to have the header.php file included in the output when I build the project?
Thanks in advance for the help.

Sergey Kornilov admin 2/7/2012

Header is generated every time you click 'Build', this is a default behaviour.
Just in case - you can modify header file in Visual Editor. Page name is 'Header'.

S
scopley author 2/7/2012



Header is generated every time you click 'Build', this is a default behaviour.
Just in case - you can modify header file in Visual Editor. Page name is 'Header'.


So there is no way to add this to the template? Everytime I reset the page I loose my header.

Sergey Kornilov admin 2/7/2012

I don't understand your question. What 'add this to the template'?
Headers are displayed by default on all pages. Page reset does not remove the header.

S
scopley author 2/7/2012



I don't understand your question. What 'add this to the template'?
Headers are displayed by default on all pages. Page reset does not remove the header.


I have my header information saved in a header.php file. Under Visual Editor if I Click to load external file and browse to my header.php file it adds the code. While in Visual Editor on the Header page if I click the Reset This Page my header code goes away and I have to add it again. Any new project I start I have to load the file in manually. I would like to have it there for all my new projects so I don't have to remember to add it in.
Hope this makes sense.

Sergey Kornilov admin 2/7/2012

I guess I understand. You have to add your header manually to each project though you only need to do this once. Just make sure you do not reset the header page.