Fatal error: Call to undefined function |
[eluser]Bob Puzld[/eluser]
I get the following error in one of my view pages... Fatal error: Call to undefined function mysql_to_human() in /home/rrrprogr/public_html/system/application/views/users/view.php on line 104 Here is the code from that page (line 104 is the last line)... Code: <h1>Payouts</h1> Does anyone know where this function would or should be located? I cannot find it in the controller or the model. I have recently upgraded to the latest version of codeigniter (1.7.2), and this error now appears. Any ideas would be great. Thanks.
[eluser]GIN[/eluser]
Where did you found this function mysql_to_human? I know only one function unix_to_human in Date helper. May be you forgot to load something?
[eluser]Bob Puzld[/eluser]
mysql_to_human is in my code. I found another post in the forum that relates to this... http://ellislab.com/forums/viewthread/46264/
[eluser]pistolPete[/eluser]
Did you extend the date helper and load it? http://ellislab.com/codeigniter/user-gui...lpers.html
[eluser]GIN[/eluser]
Look, if you won't solve your problem, just try to use DateTime class. There are format method that helps you. For example: Code: $now = date("F j, Y, g:i a");
[eluser]jedd[/eluser]
[quote author="Bob Puzld" date="1257220119"] mysql_to_human is in my code. [/quote] Correct - google only manages to find references to that function on this web site .. in messages written by you. I'd suggest a grep -R would be appropriate at this time.
[eluser]Bob Puzld[/eluser]
GIN, thanks to your point regarding "unix_to_human" I was able to solve my problem. I simply changed Code: mysql_to_human Code: unix_to_human -Bob |
Welcome Guest, Not a member yet? Register Sign In |