This topic is locked

Modify generated include/header.php code

12/29/2008 2:15:03 PM
PHPRunner General questions
vin7102 author

Hi,
Where can I modify the code that generates the include/header.php code so that when I build a project the header does not regenerate "Use admin/admin to login. This header can be found in include/header.php file"
Thanks

R
randall 12/29/2008

Hi,

Where can I modify the code that generates the include/header.php code so that when I build a project the header does not regenerate "Use admin/admin to login. This header can be found in include/header.php file"
Thanks


The two files, include/header.php and include/footer.php do not exist until you create them They do not get overwritten.

vin7102 author 12/29/2008

Hello Randall,
I created a footer.php file and a header.php file in the c: program files/phprunner5.0/source/include folder

the footer works perfect but whenever I rebuild the project after some modifications, the footer remains intact but the header returns to the same old default "admin" header.

I have messed with this for hours and dont know why that header keeps re-appearing while the footer stays put!.. They are both in that same "include" folder.
Any Ideas or something I'm Missing??
Thanks

Vince

R
randall 12/29/2008

Hello Randall,

I created a footer.php file and a header.php file in the c: program files/phprunner5.0/source/include folder

the footer works perfect but whenever I rebuild the project after some modifications, the footer remains intact but the header returns to the same old default "admin" header.

I have messed with this for hours and dont know why that header keeps re-appearing while the footer stays put!.. They are both in that same "include" folder.
Any Ideas or something I'm Missing??
Thanks

Vince


Don't put them in the source\include folder. Put them in the output\include folder.

vin7102 author 12/29/2008

Hi,
I've also tried putting them in the output\include folder and it works fine until I have to re-build the project.

once I hit the "build" button to apply other modifications, I have to keep manually re-creating the header as it goes right back to the initial "use admin\admin" script.

I just dont know where its coming from or how to get rid of it.

Like i said, The footer works fine and never changes, Its just the header that changes.

Maybe I have to just leave it alone until publishing to the site and change it at the very end, but its nice to be able to see my header when creating and testing pages.

J
Jane 12/30/2008

Hi,
do you use PHPRunner business template in your project?

Try to remove header.php file in the generated <project name>/source/include directory.

vin7102 author 12/30/2008

Hi Jane,
Yes.. It was coming from the calendar template.

went to the Calendar template/source/include folder and found the header
Finally....What a relief

Thank You Very Much!!