Welcome Guest, Not a member yet? Register   Sign In
Dojo with CI Help needed
#2

[eluser]Jason Stanley[/eluser]
Can you describe your problem some more?

As I understand it your view file is in the views folder? So you need a url like this to call it?

Quote:site_path/app/views/viewfile.php

Is this correct?

To get around this you could just call a controller.

Quote:site_path/util/view/viewfile

Code:
class Util extends CI_Controller {
  public function view($file) {
    $valid_files = array('a', 'b');
    if (in_array($file, $valid_files)) {
      $this->load->view($file);
    }
  }


Messages In This Thread
Dojo with CI Help needed - by El Forum - 01-30-2012, 05:05 AM
Dojo with CI Help needed - by El Forum - 01-30-2012, 05:44 AM
Dojo with CI Help needed - by El Forum - 01-30-2012, 06:08 AM
Dojo with CI Help needed - by El Forum - 01-30-2012, 11:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB