Welcome Guest, Not a member yet? Register   Sign In
Making a helper/plugin
#11

[eluser]Maglok[/eluser]
To do what? That points to my CI root which looks like this:

Code:
CI/
CI/forum
CI/system/ <-- normal CI dirs
CI/images
etc

At the moment I tried to create a library. I can autoload it, but I cannot use any of the functions in it, like so:

Code:
&lt;?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* Wrapper class for SSI.php to call functions from within CI by loading as a library
*/
class SMF {

    require_once('forum/SSI.php');

    /**
     * Constructor
     */
    function SMF()
    {    
        log_message('debug', "SMF library Initialized");
    }
    
    // --------------------------------------------------------------------

    /**
     * SSI_welcome wrapper
     */    
    function smf_welcome($output_method = 'echo') {
        ssi_welcome($output_method);
     }
    
    // --------------------------------------------------------------------

}

// END SMF library

I can't call it after I autoload the library and then use smf_welcome() though.


Messages In This Thread
Making a helper/plugin - by El Forum - 07-01-2009, 06:50 AM
Making a helper/plugin - by El Forum - 07-01-2009, 07:03 AM
Making a helper/plugin - by El Forum - 07-01-2009, 07:04 AM
Making a helper/plugin - by El Forum - 07-01-2009, 07:19 AM
Making a helper/plugin - by El Forum - 07-01-2009, 07:58 AM
Making a helper/plugin - by El Forum - 07-01-2009, 08:16 AM
Making a helper/plugin - by El Forum - 07-01-2009, 03:11 PM
Making a helper/plugin - by El Forum - 07-02-2009, 02:06 AM
Making a helper/plugin - by El Forum - 07-03-2009, 06:36 AM
Making a helper/plugin - by El Forum - 07-03-2009, 06:52 AM
Making a helper/plugin - by El Forum - 07-03-2009, 07:01 AM
Making a helper/plugin - by El Forum - 07-03-2009, 07:09 AM
Making a helper/plugin - by El Forum - 07-03-2009, 07:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB