【发布时间】:2011-11-13 04:06:41
【问题描述】:
我使用canvas 进行应用程序开发和CodeIgniter 框架。
我在视图中有一个链接,<a href='http://example.com/index.php/module/controller/action'>click here</a>,我有一个控制器:
public function index() {
$user_profile = $this->facebook->api('/sujeet216');
$token = $this->session->userdata('token');
$response = $this->fb_model->checkUser($token);
if ($response->num_rows <= 0) {
if($this->fb_model->insertUser($user_profile,$token)) {
$this->load->view('intro',$user_profile);
}
}
else {
$this->load->view('index',$user_profile);
}
}
public function intro2() {
$this->load->view('intro2');
}
每当我点击一个链接时,它都会重定向到索引控制器。如何从第二个函数加载intro2 页面?
【问题讨论】:
标签: facebook url codeigniter redirect canvas