How to pass models method value to Views

no Sir it worked fine with this but i dont thnk it is a good practice