php,.htaccess,nginx,kirby,flightphp
Try replacing your location ^~ /crm block with this location /crm { try_files $uri $uri/ /crm/index.php?$args; } And if that one doesn't solve it try location /crm { try_files $uri $uri/ /crm/index.php?$uri; } ...
php,function,object,dynamically-generated,kirby
$chains = rand(1, 5) $results = $site $suffix = '' for ( $i = 1; $i <= $chains; $i ++) { if ($i != 1) { $suffix = $i } $results = $results->filterBy('a_key' . $suffix, 'a_value' . $suffix) } If you are able to pass 'a_key1' and 'a_value1' to the...
Create a variable to hold the current date - $currentDate, then check if the $projects->modified('m/d/y') matches the $currentDate and if not, set it as the $currentDate and echo it- <?php $currentDate = ''; ?> <ul> <?php foreach($page->children()->visible()->sortBy('modified', 'desc') as $projects): ?> <li> <?php if($projects->modified('m/d/y') != $currentDate) { $currentDate = $projects->modified('m/d/y');...