views не является средством оптимизации
if (ltrim($this->request->server['REQUEST_URI'], '/') == 'sitemap.xml') {
$this->request->get['route'] = 'extension/feed/google_sitemap';
return;
}
Options +FollowSymlinks
Options -Indexes
<FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
Require all denied
</FilesMatch>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.example.com.ua$ [NC]
RewriteRule ^(.*)$ http://example.ua/$1 [R=301,L]
# RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/download/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
RewriteCond %{QUERY_STRING} (^|&)route\=extension/feed/google_sitemap($|&)
RewriteRule ^index\.php$ /sitemap.xml? [L,R=301]
делаете для сервиса enable?
что говорит systemctl status yiiqueue?
● yiiqueue.service - YiiQueue
Loaded: loaded (/etc/systemd/system/yiiqueue.service; enabled)
Active: inactive (dead) since Mon 2018-06-11 04:37:56 EDT; 1h 4min ago
Process: 119131 ExecStart=/usr/bin/php /home/xxxxxxxx/yii queue/listen (code=exited, status=0/SUCCESS)
Main PID: 119131 (code=exited, status=0/SUCCESS)
Jun 11 04:37:56 debian8-x64.ipserver.su systemd[1]: Started YiiQueue.
Jun 11 05:45:35 debian8-x64.ipserver.su systemd[1]: Started ACPI event daemon.
-- Subject: Unit acpid.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit acpid.service has finished starting up.
--
-- The start-up result is done.
Jun 11 05:45:35 debian8-x64.ipserver.su systemd[1]: Listening on ACPID Listen Socket.
-- Subject: Unit acpid.socket has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit acpid.socket has finished starting up.
--
-- The start-up result is done.
-- Unit yiiqueue.service has begun starting up.
Jun 11 05:45:46 debian8-x64.ipserver.su systemd[1]: Started YiiQueue.
-- Subject: Unit yiiqueue.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit yiiqueue.service has finished starting up.
--
-- The start-up result is done.
<div class="modal modal-success" id="modal-success" style="display: none; padding-right: 17px;">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span></button>
<h4 class="modal-title">Вы завершили рабочий день!</h4>
</div>
<div class="modal-body">
<table class="table">
<thead>
<tr>
<th>Старт</th>
<th>Пауза</th>
<th>Завершил</th>
<th>Работа</th>
<th width="50">
</th>
</tr>
</thead>
<tbody>
<tr>
<td><?= $data["st"]?></td>
<td><?= $data["ps"]?></td>
<td><?= $data["ed"]?></td>
<td><?= $data["wk"]?></td>
</tr>
</tbody>
</table>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-outline" data-dismiss="modal">Close</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->
</div>
<?php
$this->registerJs("
$('#modal-success').modal('show');
$('.btn-outline, .close').on('click', function() {
location.reload();
});
");
?>
$.ajax({
type: 'POST',
url: 'time-checker/complete-comment/',
data: {
val: $(\"textarea[name='textarea']\").val()
}
})
.done(function(result) {
console.log(result);
});