At first, create a class named SmartyRenderer under application/components or any directory you want.