Yii Framework Forum: override a function in global - Yii Framework Forum

Jump to content

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

override a function in global

#1 User is offline   Dehghan 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 06-March 15
  • Location:Iran - Yazd

Posted 15 May 2017 - 02:45 AM

Is there any solution to override date() function?
I'm trying to modify date() function for call another function every time date() executed in project.
0

#2 User is offline   Patrick Jones 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 495
  • Joined: 14-July 12
  • Location:Berlin

Posted 15 May 2017 - 04:13 AM

It's not overriding date, but are you familiar with formatters?

http://www.yiiframew...l#date-and-time
Freelance developer for hire - send me a message!
0

#3 User is offline   Dehghan 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 06-March 15
  • Location:Iran - Yazd

Posted 15 May 2017 - 05:18 AM

View PostPatrick Jones, on 15 May 2017 - 04:13 AM, said:

It's not overriding date, but are you familiar with formatters?

http://www.yiiframew...l#date-and-time


Actually I want to convert Gregorian date to other national calendars like Jalali.I'm looking for an easy solution to convert all dates in the project.
Thanks for attention.
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