Fetch function from any Model

If you have a developed function and wants to display on any view page.

than need to call it. like

for example you have customer.php file in model folder it’s having Customer class

and having function getLoggedCustomerName($cId).

so now you have call it $c = new Customer(); (class name)

                    $name = $c->getLoggedCustomerName($cId);