This task is about dividing the functionality implemented into the previous task into a view and a controller.
protected/views/gpf/index.php, going down to
<h1>Google+ Comic Book News Feed</h1>(leave the breadcrumbs where they are) into the
protected/controllers/GpfController.php. Move the line initializing
$authUrlto the top of the function. Then make some changes in the loop to store a list of entities to pass to the view, as follows (remember to replace CLIENT_ID, CLIENT_SECRET, and DEVELOPER_KEY with the correct values):
<?php Yii::import('application.vendors.*'); require_once 'google-api-php-client/src/apiClient.php'; require_once ...