Welcome Guest, Not a member yet? Register   Sign In
Class
#5

Let's say you have a library called Assets.php (in the application/libraries folder), and this class has a method called create_header() which returns a string.

In your controller:
PHP Code:
$this->load->library('assets');
$hdr $this->assets->create_header(); 

Is this the information you were looking for?
Reply


Messages In This Thread
Class - by frankenestain - 09-10-2018, 01:26 AM
RE: Class - by neuron - 09-10-2018, 01:34 AM
RE: Class - by ragingTorch - 09-10-2018, 03:17 AM
RE: Class - by ignitedcms - 09-10-2018, 06:32 AM
RE: Class - by Wouter60 - 09-10-2018, 07:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB