Welcome Guest, Not a member yet? Register   Sign In
other options for not including files in ci
#1

Hi

PHP Code:
public function crate() {
   
$lib_dir dirname(__FILE__);
   require_once(
$lib_dir"/files/".$this->id."/index.php");


files/1/index.php
files/2/index/php

There many files like this.

The files will do some stuff and return an image at the end.

Is there anyway to do this without including?
Is there any ci way to do this?

Thanks
Reply
#2

The loader class can do that using "file" (like "library" or "view", etc) http://www.codeigniter.com/user_guide/li...ader::file
Reply




Theme © iAndrew 2016 - Forum software by © MyBB