dtf0925
2017-09-22 10:42
浏览 50
已采纳

如何在codeigniter中调用控制器方法?

When i use URL(http://localhost/ci_framework/Temp).It successfully loaded my template.

<?php
    defined('BASEPATH') OR exit('No direct script access allowed');
     class Temp extends CI_Controller {
     public function index()
     {
        $this->load->view('index');
     }
     public function forward(){
         $this->load->view('index');
     }      
    }

?>

But when load same view(index) by adding their method name at the controller(http://localhost/ci_framework/Temp/forward). It fails to load Bootstrap files,java script files.

I have wasted 3 hours.Tell friends about possible solutions.Looking forward..

2条回答 默认 最新

相关推荐 更多相似问题