Skip to content
Htain Lin Shwe edited this page Mar 8, 2012 · 1 revision

Ava allow to use other library (class).

create sample.php at /system/users/plugin/

create dir folder at /system/users/plugin/

create nested.php at /system/users/plugin/dir/

###sample.php

<?php
	class sample
	{
		function test()
		{
			return "test class";
		}
	}
?>

###nested.php

<?php
	class nested
	{
		function second()
		{
			return "second dir";
		}
	}		
?>

Load the Plugins

$this->load->plugin("sample");

$mysample = new sample();

$this->load->plugin("dir/nested");

$mynested = new nested();

Clone this wiki locally