This topic is locked
[SOLVED]

Creating new views

7/28/2026 13:29:57
PHPRunner General questions
C
Chris Whitehead author

Previously in v10.91 when I created a new view by copying an another view, The filename became the one I used in the name field, this shows in the admin section where permissions are set but not in the url so for redirects this is a bit of back and forth..

For example, I have a blank page which I've copied a few times and renamesd as oc_users_2026, the file name is now.
chapters7_list.php, so it takes to original name and tags a number on it.

I had to go back into v10.91 as I thought it might just be me and I'd I had faulty memory due to my vast age, I copied a view, then renamed it
from upcoming_activities to upcoming_activities_2026

The file name is
/upcoming_activities_2026_list.php

Is it possible to change a setting so phprunner uses the same custom filenames which match the table name that we had in v10.91, if so how?

I have to add, I'm not really a power user so don't use PHPRunner on a daily basis and only recently started to use v11 more, but going back to v10.91, the speed difference to v11 is night and day, well done the Xlinsoft team.

ChatGPT 7/28/2026

In PHPRunner, the behavior of file naming for views can sometimes differ between versions, and it can be a bit confusing, especially when transitioning from one version to another. In version 11, PHPRunner introduced some changes which might have altered how file names are generated when you create new views or pages.

As of my knowledge cutoff in October 2023, you do not have a specific setting in PHPRunner that allows you to change how filenames are generated directly. However, you can manually rename the files after creating them. Here's how you can do that:

  1. Create Your View: First, create your view as you normally would. This will generate the default filename (e.g., chapters7_list.php).


  2. Rename the File: After creating the view, you can manually rename the generated file in the file system:

    • Locate the generated file in your project directory (e.g., chapters7_list.php).
    • Rename it to your desired name (e.g., upcoming_activities_2026_list.php).


  3. Update the PHPRunner Project: After renaming the file, you will need to update your PHPRunner project to reference the new filename:

    • Open PHPRunner and go to the "Pages" section.
    • Find the view you just created and edit its properties.
    • In the properties, look for the "File name" field and change it to match the new filename you assigned (e.g., upcoming_activities_2026_list.php).


  4. Adjust Redirects: If you have any redirects or links pointing to the old filename, make sure to update them as well.


  5. Test Your Changes: After making these changes, test your application to ensure that everything works as expected and that the new URLs are functioning correctly.



If you frequently need custom filenames that match your naming conventions, this manual method may be the most straightforward approach. It can be a bit of extra work, but it should give you the control you need over your file names.

Also, keep an eye on any updates or documentation from the PHPRunner team, as they may introduce new features or settings in future releases that could address your needs more directly.

C
Chris Whitehead author 7/28/2026

Sorry Mr ChatGPT, your solution seems complicated, you want to me to build the project then rename the files?

You say "It can be a bit of extra work". I'll admit, I'm not a lover work full stop, let alone a bit extra.

I have a question, or three,
How does this affect the menu which the url changes?
How does this affect the permissions?
Do I have to do this after every build, wouldn't this become a pain in the bum?

I know this is a minor moan, I'm just messing with an older project to bring it up to v11.

I'm open to suggestions Mr Chat, please fix it for me Mr Chat. Don't be like Jim

Sergey Kornilov admin 7/28/2026

On 'Datasource tables' screen choose the context menu of the view or table in question, select 'Advanced' and change filename prefix.

img alt

C
Chris Whitehead author 7/29/2026

Cheers Sergey, that works and it's so much simpler than ChatGPTs solution. Hopefully one day AI will know as much as you but that looks to be a long time off at the moment.