Yii Framework Forum: Hijri Extension Problem - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Hijri Extension Problem Rate Topic: -----

#1 User is offline   codex 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 28-November 12

Posted 28 November 2012 - 06:10 PM

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.
0

#2 User is offline   codex 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 28-November 12

Posted 29 November 2012 - 04:01 AM

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?
0

#3 User is offline   Abdulrhman A 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 12-October 11

Posted 07 December 2012 - 06:57 PM

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
0

#4 User is offline   codex 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 28-November 12

Posted 19 December 2012 - 03:37 AM

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.
0

#5 User is offline   InsafiaN 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 95
  • Joined: 02-February 14
  • Location:Islamabad, Pakistan

Posted 05 June 2014 - 09:48 AM

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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users