Welcome Guest, Not a member yet? Register   Sign In
Bug in extended helpers?
#11

[eluser]olof84[/eluser]
Thanks for taking time to check the problem. I don't know why I donĀ“t get any error. Here is my code:

MY_string_helper.php
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

if ( ! function_exists('this_bug_test'))
{
    function this_bug_test()
    {
        echo 'Inside this bug test.';
    }
}

My controller:
Code:
public function index($adv_slug)
    {
        
        echo this_bug_test();
}
When I run it this shows up: 'Inside this bug test.'.

Here are my autoload files:
Code:
$autoload['packages'] = array();
$autoload['libraries'] = array('database', 'session');
$autoload['helper'] = array('url', 'sh_basic_helper');
$autoload['config'] = array();
$autoload['language'] = array();
$autoload['model'] = array('model_user');

EDIT:
I see now that only some of my extended helpers are available (without me adding them to autoload). The MY_string_helper and MY_url_helper are available, but not MY_text_helper/MY_array_helper. The first two helpers have I used before in my project, but removed from the autoload file. The last two have I never used before.


Messages In This Thread
Bug in extended helpers? - by El Forum - 07-01-2014, 05:16 AM
Bug in extended helpers? - by El Forum - 07-01-2014, 07:17 AM
Bug in extended helpers? - by El Forum - 07-02-2014, 12:23 AM
Bug in extended helpers? - by El Forum - 07-02-2014, 06:33 AM
Bug in extended helpers? - by El Forum - 07-02-2014, 09:29 AM
Bug in extended helpers? - by El Forum - 07-02-2014, 09:55 AM
Bug in extended helpers? - by El Forum - 07-04-2014, 01:20 AM
Bug in extended helpers? - by El Forum - 07-04-2014, 09:54 AM
Bug in extended helpers? - by El Forum - 07-04-2014, 11:12 AM
Bug in extended helpers? - by El Forum - 07-04-2014, 02:19 PM
Bug in extended helpers? - by El Forum - 07-07-2014, 02:54 AM
Bug in extended helpers? - by El Forum - 07-07-2014, 12:42 PM
Bug in extended helpers? - by El Forum - 07-08-2014, 02:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB