• Hi,

    This is not a question, I just want to remind everybody (because is not in the documentation), that if you want to use this plugin inside your themes for example, you can’t forget to instantiate the code igniter object $ci ($ci = &get_instance();).
    Below is a basic sample that you can use into your child theme’s page.

    $ci = &get_instance();
    $ci->load->library('table');
    $data = array(
                array('Name', 'Color', 'Size'),
                array('Fred', 'Blue', 'Small'),
                array('Mary', 'Red', 'Large'),
                array('John', 'Green', 'Medium')
      );
    echo $ci->table->generate($data);

    Hope this helps everybody.

    Regards,
    Arthur Franklin

    https://wordpress.org/plugins/wp-code-igniter/

  • The topic ‘Hello World’ is closed to new replies.