Hijri Extension Problem

Hi all,

I’m using this extension which displays the hijri date.

My config file looks like this :




'components'=>array(

		'bootstrap'=>array(

			'class'=>'ext.bootstrap.components.Bootstrap',

			'responsiveCss'=>true,

		),

		'hdate' => array(

            'class' => 'ext.hdate.HijriDateTime',

		),



on my view i want just to display the date with this extension like this :


Yii::app()->hdate->date("H:i A l, d F Y",time())

I got the following error :

include(HijriDateTime.php) [<a href=‘function.include’>function.include</a>]: failed to open stream: No such file or directory

How to fix this?what’s the cause of that?

Thanks for your help.

Is there any suggestion?

I think the problem is not specefic to this extension but how to load it.

The error is raised on YiiBase.php in


public static function autoload($className)

on the line


include($className.'.php');

.

My extension is installed on "myApplication/protected/extensions/hdate/HijriDateTime.php"

Is there something to change to point to the right path?

Hey, Could u check if it’s seeing the hdate folder. This ext. was tested on 1.1.10 only. Check if the ext. loading in Yii has changed or not.

Coz It seems that the problem is in Yii not able to load the file "Class".

Cheers

Abdulrhman A

I solved the problem.

The script ‘HijriDateTime.php’ starts by the php opening tag “<?” so I changed it to “<?php” and it works perfectly.

I confirm that it works with current version of Yii.

How to display the database table date field value using hijridatetime extension ?