how to use controller in helper?

how to use controller in helper?

Asked on February 12, 2020 in Codeigniter.
Add Comment
3 Answer(s)

Why you want to use controller in Helper..??

Helper are made to be used inside controller.  Better to follow MVC architecture.

Answered on February 13, 2020.
Add Comment

sorry, i meant vice-verse

Answered on February 14, 2020.
Add Comment


class ControllerName extends CI_Controller{
function __construct()




Answered on June 27, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.