I'm trying to build and insert my own class file for the very first time in my Zend Framework project. Then I got that error, so I was hoping it's because of my weak understanding of OOP. Because if it's ZF specific then things can turn messy, I'm hoping it's not ZF specific.Fatal error: Call to undefined function formatMsg1() in C:\Websites\bat2\library\Customized\ZFiA_DbMetric.php on line 11
C:\Websites\bat2\public\index.php
http://pastebin.com/m4e47f439
PHP Code://______________//
// Customized //
//______________//
/* Create database metrics */
require_once '../library/Customized/ZFiA_DbMetric.php';
new ZFiA_DbMetric;
C:\Websites\bat2\library\Customized\ZFiA_DbMetric.php
http://pastebin.com/m4494e043
PHP Code:class ZFiA_DbMetric
{
public function __construct()
{
// 1. Howto call on a function in here?
formatMsg1();
}
public function formatMsg1()
{
....
....
....
}






it's not the authors fault it's Zend's fault.

Bookmarks