Hi guys,
I’ve downloaded and installed the extension UserCounter ( http://www.yiiframework.com/extension/usercounter) to monitor the access to my website.
I followed the documentation then I created /protected/views/site/pages/counter.php:
<?php $this->pageTitle=Yii::app()->name; ?>
<?php
// Execute the counter before you use the getter-funtions!
Yii::app()->counter->refresh();
?>
<p>online: <?php echo Yii::app()->counter->getOnline(); ?><br /></p>
<p>today: <?php echo Yii::app()->counter->getToday(); ?><br /></p>
<p>yesterday: <?php echo Yii::app()->counter->getYesterday(); ?><br /></p>
<p>total: <?php echo Yii::app()->counter->getTotal(); ?><br /></p>
<p>maximum: <?php echo Yii::app()->counter->getMaximal(); ?><br /></p>
<p>date for maximum: <?php echo date('d.m.Y', Yii::app()->counter->getMaximalTime()); ?></p>
but when I access it, I get a PHP error:
include(UserCounter.php) [<a href=‘function.include’>function.include</a>]: failed to open stream: No such file or directory
What can I do?
Thaaanks!