You can use FieldsetPage to reuse fields on the same page on different sections https://processwire.com/blog/posts/processwire-3.0.73-and-new-fieldset-types/#fieldset-page-fieldtypefieldsetpage
// ready.php
$this->addHook('WireLog::save', function(HookEvent $event) {
// Prune all log files
foreach(wire('log')->getLogs() as $logFile) {
wire('log')->prune($logFile['name'], 7);
}
// Or just the current log file
wire('log')->prune($event->arguments[0], 7);
});
Not really tested ?
I saw differnt ways to handle ajax calls. I use 2. and 3.(for more complex projects)
1. Ajax folder with php files for each request, which include processwire index.php
2. URL-Hooks https://processwire.com/blog/posts/pw-3.0.173/#new-type-of-hook-for-handling-request-urls
3. AppAPI Module https://processwire.com/modules/app-api/ (Uses URL-Hooks or pageNotFound-Hook)
4. ajax.php template file https://github.com/kreativan/wirekit-core/blob/main/site-wirekit-core/templates/ajax.php
5. ajax request logic in each template file
Hi,
when i click on "Print(Email) invoice" it shows
SQLSTATE[42S02]: Base table or view not found: 1146 Table '*.padloper_download_codes' doesn't exist
Any ideas?