Welcome Guest, Not a member yet? Register   Sign In
Not Picking Up If Exist File
#1

[eluser]razerone[/eluser]
I am just trying something new Not picking up file if exist

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

Code:
class Welcome extends CI_Controller {

public function index() {

  if (file_exists(APPPATH . 'views/theme/' . $filename)) {
      $this->load->view('theme/'.$filename);
  }
  else {
      $this->load->view('default/template/common/welcome_message.php');
  }
}
}


Messages In This Thread
Not Picking Up If Exist File - by El Forum - 10-25-2013, 12:30 AM
Not Picking Up If Exist File - by El Forum - 10-25-2013, 02:21 AM
Not Picking Up If Exist File - by El Forum - 10-25-2013, 02:25 AM
Not Picking Up If Exist File - by El Forum - 10-25-2013, 04:14 AM
Not Picking Up If Exist File - by El Forum - 10-25-2013, 04:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB