| 1 | <?php |
||
| 11 | class Seeder |
||
|
|
|||
| 12 | { |
||
| 13 | private $CI; |
||
| 14 | protected $db; |
||
| 15 | protected $dbforge; |
||
| 16 | protected $seedPath; |
||
| 17 | |||
| 18 | public function __construct() |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Run another seeder |
||
| 29 | * |
||
| 30 | * @param string $seeder Seeder classname |
||
| 31 | */ |
||
| 32 | public function call($seeder) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Set path for seeder files |
||
| 48 | * |
||
| 49 | * @param string $path |
||
| 50 | */ |
||
| 51 | public function setPath($path) |
||
| 55 | |||
| 56 | public function __get($property) |
||
| 60 | } |
||
| 61 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.