Error: Alias "application.extensions.calendar.SCalendar" is invalid. Make sure it points to an existing PHP file.

Hi,

I have the extension "calendar" installed.

I downloaded it from here: http://www.yiiframework.com/extension/calendar/#hh3

…copied the code to protected/extensions/

I then included the following code in my view-file





		<?php Yii::import('application.extensions.calendar.SCalendar'); ?>


		<?php echo CHtml::activeLabelEx($model,'timeStart'); ?>

		    <?php echo CHtml::activeTextField($model,'timeStart',array("id"=>"timeStart")); ?>

		    &nbsp;(calendar appears when textbox is clicked)

		    <?php $this->widget('application.extensions.calendar.SCalendar',

			array(

			'inputField'=>'timeStart',

			'ifFormat'=>'%Y-%m-%d',

		    ));

		?>




For some reason I always get the error message:


Alias "application.extensions.calendar.SCalendar" is invalid. Make sure it points to an existing PHP file. 

Any idea what is wrong?

THX

Sure there is no typo? protected/extensions/calendar/SCalendar.php is an existing file which the webserver can read?

I just tried it, and it works out of the box.

As a sidenote: You don’t need the Yii::import, but it also souldn’t cause any problems…

why you don’t use CJuiDatePicker - its easy to use and provide better functionalities.

I don’t use it because I also want to be able to pick the time.

Or is that possible with CJuiDatePicker?

THX

THX

it was a "Read" issue!