This topic is locked
[SOLVED]

 Where does page RESET pull the template from?

6/15/2011 1:51:36 PM
PHPRunner General questions
bbarker author

After two years I am still struggling with losing some of my page templates.
When something isn't working properly, I have found (and been told by Xlinesoft) to RESET my page.
When I do this, it frequently goes to a vanilla single column listing. I totally loose all previous formatting changes.
So my question is "Where does it pull the new format from?".
---I save my projects in inetpub/wwwroot/ProjectN

That way I can always do a quick browser test of them.
So here are the normal places that I find my templates at:

  • MyDocuments/PHPRunnerProjects/ProjectN/
  • MyDocuments/PHPRunnerProjects/ProjectN/Visual
  • MyDocuments/PHPRunnerProjects/ProjectN/Visual/Original
  • inetpub/wwwroot/ProjectN/templates


Where should I save the MASTER html page so that RESET always uses it?

Sergey Kornilov admin 6/15/2011

RESET means full RESET. Your page will be re-created from scratch.
The best approach is to use source control tool like SVN and rollback to a certain version of visual template file when you need it. Here is the article that explains how to use SVN and PHPRunner together: http://xlinesoft.com/blog/2011/06/08/best-practices-multiple-developers-working-on-the-same-project/

bbarker author 6/18/2011



RESET means full RESET. Your page will be re-created from scratch.
The best approach is to use source control tool like SVN and rollback to a certain version of visual template file when you need it.


Thanks. Good suggestion. Too bad PHPR didn't have a built-in solution.
EXAMPLE:
Save Build 1 to inetpub/wwwroot/project1

Save Build 2 to inetpub/wwwroot/project2

Save Build 3 to inetpub/wwwroot/project3
Now my problem is that I overwrite Project.phpr each time. So I can't really "roll back".
But to get around that, I also save a copy of Project.phpr to each of the Build folders above.
So inetpub/wwwroot/project1 also includes a copy of Project.phpr that was created after that save.
And inetpub/wwwroot/project2 also includes a copy of Project.phpr created after this Build was saved.
Is this a possible Roll-Back opportunity?

N
nti 6/18/2011

I have also lost work with VE Reset.
I now open the phpr project folder and make backup of my project.phpr before opening with phpr...
has saved me many hours of labor many times.
My routine has now became habit.
Cheers,

bbarker author 6/18/2011



I now open the phpr project folder and make backup of my project.phpr before opening with phpr...

My routine has now become habit


Funny. I was thinking about this in bed this morning. And I realized that I was only saving the OUTPUT to the various "projectN" folders in inetpub. This allowed me to see all versions easily on my local PC. But it's NOT really saving the PROJECT files.
So... your comment is a much better "habit". I'll paraphrase.
_EASY PROJECT BACKUP

After you OPEN your project, immediately SAVE a copy of it by

clicking on PROJECT button (bottom left) and click "Save Project As".

Identify this with a "Version-or-Build number at the end of the file name (eg. project20).

This saves a full set of all of the project files, including "project.phpr".

NOTE: You are saving the Previous VERSION of your build. All changes that you make

during this cycle, will be saved in the NEXT BUILD.
EASY PROJECT VIEWING

Then if you want to be able to see these different versions locally, at the end

of the project build, on the OUTPUT page, save it to "c:\inetpub\wwwroot\projectN"

where "N" is the latest Build number that you're assigning to it (eg. 21)
TAG YOUR BUILDS_

I also add in a small font as a subtitle to my login page "Version 21 - 6/18/11".

In order to test, I then enter this URL into the browser window "http://localhost/project21";
Is there anything else?

And how can we get this to be a default (automatic) setting in a new version of PHPR? <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=58903&image=1&table=forumreplies' class='bbc_emoticon' alt=':D' />

N
nti 6/18/2011

Actually, I utilize Ctrl-C and Ctrl-V to copy my project file before opening it.
I also have setup windows to save previous versions of my project folder.
See images:
https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=58904&image=1&table=forumreplies

bbarker author 6/18/2011

Mike,

I'm VERY interested in how you do this.

I've never used the PROPERTIES - Previous Versions feature before. (never understood how it workded).
How does Ctrl-C, Ctrl-V cause it to be listed in the Properties/PreviousVersion listing?
I understand that you're copying the project folder, but in my experience, I always added a Version number to the end of the Folder Name so that it wouldn't overwrite the previous version.
Example:
Project6

Project7

Project8
where "Project" is the name of the phpr project.

N
nti 6/18/2011

Ctrl-C: window shortcut for 'Copy File' or 'Files', Ctrl-V: window shortcut keys for 'Pasting Files' or strings, and has nothing to do with 'Previous Versions'.
I simply make a copy of my project.phpr file before I open it.
Topic: Previous Versions: Based on Windows Help Contents: What are previous versions?
Previous versions are either copies of files and folders created by Windows Backup or copies of files and folders that Windows automatically saves as part of a restore point. You can use previous versions to restore files and folders that you accidentally modified or deleted, or that were damaged. Depending on the type of file or folder, you can open, save to a different location, or restore a previous version.
I have lost too much work in previous years, now I utilize redundant backups.
My PROJECT FOLDERS are backed up daily with my Windows Backup, which backs up to my external backup device.
Hope this helps, cheers.
"I wish I knew php code as well as I can protect my files, that would be very helpful".