Create a new page from php or?

@pamtbaau I was just using some php from the suggested samples in the grav docs.
https://learn.getgrav.org/cookbook/plugin-recipes#how-do-i-read-from-and-write-data-to-the-file-system
I ended up using simple file data reading/writing, but thats not really where I wanted to go.

In your example above, this will make a page 03.dynamic in the pages parent folder?
The file_put_contents function - this is a php call, so this is effectively manually making a page?
I guess what I was wondering is if I could call something similar to what the admin “new page” call does so that it works well within the grav environment. Im probably going to need to write that :wink:

I really appreciate taking the time for the sample. I’ll post my solution once I build it.
Thanks again.