CodeIgniter helper inside controllers
Posted
by
kapitanluffy
on Stack Overflow
See other posts from Stack Overflow
or by kapitanluffy
Published on 2010-12-23T13:51:51Z
Indexed on
2010/12/23
13:54 UTC
Read the original article
Hit count: 302
can i call helper functions inside controller classes?
let's say i have this controller with the _open_form method
class User extends Controller {
function _open_form($action){
print_r(form_open($action));
}
}
i tried echoing out the result of form_open() but it returns null. it seems that helper functions can't be called inside controllers
if your wondering why i need to use it inside the controller instead in the view because we are required to use the given template parser xD
© Stack Overflow or respective owner