Articles → PHP CODEIGNITER → Custom helper in codeigniter

Custom helper in codeigniter






Purpose





How to create a custom helper?










<?php

function showmessage()
{
echo "Calling showmessage";
}



Calling custom helper




$this->load->helper('test');
showmessage();





Output


Picture showing output of custom helper in codeigniter

Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Wednesday, July 22, 2020

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250