O'Reilly logo

Yii Rapid Application Development Hotshot by James R. Hamilton III, Lauren J. O'Meara

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Integrating with Comic Vine – The Details

We have a way to search for volumes, which are collections of issues. However, we don't have a way to browse and select individual issues. Let's fix that.

Engage Thrusters

We need to start by making an action for listing issues in CvController. Then, we will make a view. Sounds familiar? Let's go.

  1. Change CvController to look like the following code snippet:
    <?php
    Yii::import('application.vendors.*');
    require_once 'comicvine/comicvine.php';
    
    class CvController extends Controller
    {
      public $layout='//layouts/column2';
    
      public static function newCv()
      {
        return new  CbdbComicVine('39aed1911b2cbffd08f19b4bf5922fd96ccf3b4f'); 
        //Replace this with your API key
      }
    
      public static function errorHandler($result, $view) {

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required