Welcome Guest, Not a member yet? Register   Sign In
How to invoke CI function by url from facebook tabs.
#1

[eluser]bartlomiejr[/eluser]
I'm trying to make navigation in my first facebook app. How to invoke CI function by URL from facebook tabs or how to handle it on controller side. When I pase the URL from the href in address bar desired function is called correctly.
Code:
<fb:serverFbml style="height:20px; padding-bottom:20px; overflow: hidden; display: block;">
[removed]
<fb:fbml>
  <fb:tabs>
    <fb:tab-item href='http://apps.facebook.com/my_app/index.php/home/index/' title='Index' selected='true'/>
    <fb:tab-item href='http://apps.facebook.com/my_app/index.php/home/game/' title='Game'/>
  </fb:tabs>
</fb:fbml>
[removed]
</fb:serverFbml>

controller:
Code:
class Home extends CI_Controller {

    public function index()
    {
        $this->load->view('welcome_message');
    }

    public function game()
    {
        $this->load->view('game');
    }
}




Theme © iAndrew 2016 - Forum software by © MyBB