Welcome Guest, Not a member yet? Register   Sign In
It is possible to create new helper instead of extending them ?
#2

[eluser]davidbehler[/eluser]
Sure, just place a file with the name of your helper in /application/helpers and add it to the autoload config file/load it manually.

E.g. place a file called debug_helper.php in /application/helpers with this content:
Code:
<?php
  function pre($var)
  {
    echo '<pre>';
    if(is_array($var)) {
      print_r($var);
    } else {
      var_dump($var);
    }
    echo '</pre>';
  }
?&gt;
Now you can either load the helper via $this->load->helper('debug'); or add it to application/config/autoload.php config.


Messages In This Thread
It is possible to create new helper instead of extending them ? - by El Forum - 05-07-2011, 10:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB