Apakah Mecha CMS bisa menampilkan Total view dari keseluruhan halaman kang? #226
Unanswered
yuliakbard
asked this question in
Q&A
Replies: 1 comment
-
Bisa mas. Tapi kalau setiap kunjungan harus menghitung bakalan membebani situs web. Kecuali kalau total perhitungan disimpan ke dalam cache yang dapat diperbarui misalnya 24 jam sekali. $total = 0;
// v3.x.x
// foreach (g(LOT . D . 'page', 'data', true) as $k => $v) {
foreach (g(LOT . DS . 'page', 'data', true) as $k => $v) {
if ('view.data' === basename($k)) {
$total += (int) file_get_contents($k);
}
}
echo $total; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Apakah Mecha CMS bisa menampilkan Total view dari keseluruhan halaman kang? kalau ane perhatikan view yang tampil hanya sesuai sesuai halaman saja
Beta Was this translation helpful? Give feedback.
All reactions