Welcome Guest, Not a member yet? Register   Sign In
[solved] Modules: Loading helpers
#1

[eluser]Buso[/eluser]
Is this supposed to work? (Im using Matchbox)

Code:
$this->load->helper('html');
$this->load->module_helper('users','html');

Im calling it from say, the 'blog' module, 'blog' controller.
(Im loading both, the html helper from 'blog' and the html helper from 'users')

MY_html_helper.php is in module users/helpers/



Its working for views, but not for helpers:

Fatal error: Call to undefined function login() in [..]modules\users\views\login.php on line 3



edit: problem solved. Here's the solution:

Code:
$this->load->helper('html');
$this->load->module_helper('users','MY_html');


Messages In This Thread
[solved] Modules: Loading helpers - by El Forum - 11-10-2009, 08:53 AM
[solved] Modules: Loading helpers - by El Forum - 11-10-2009, 09:01 AM
[solved] Modules: Loading helpers - by El Forum - 11-10-2009, 09:03 AM
[solved] Modules: Loading helpers - by El Forum - 11-10-2009, 09:10 AM
[solved] Modules: Loading helpers - by El Forum - 11-10-2009, 09:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB