-
Book Overview & Buying
-
Table Of Contents
Programming with CodeIgniter MVC
By :
In this example, we will use the CI built-in model to retrieve data from Facebook.
The example displays a Facebook user name and picture and displays the user's Facebook friends.
This example uses Facebook PHP SDK as a CI library. It can be downloaded from https://github.com/facebook/php-sdk. For more information, refer to Chapter 4, Libraries.
This example will be constructed from the following controllers, model, and view:
application/controllers/fbpage.php: This controller loads the model fbmodel
$this->load->model('fbmodel'): This controller renders the view fbview, which displays the user's Facebook picture and name, and table, which contains the user's friends' names and links to their profiles
application/models/fbmodel.php: This model contains functions that retrieve data from Facebook
application/views/fbview.php: This view displays Facebook data
Let us assume the URI to the project root is http://mydomain.com/myproject and http://mydomain...
Change the font size
Change margin width
Change background colour