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

Putting It All Together

We will make a link on each volume in the volume search that shows the issues in that volume.

Engage Thrusters

At this point, all we have to do to accomplish this is to make some changes in the view.

  1. Change protected/views/cv/issues.php:
        foreach($result['content']->results as $rec){
            echo("<div class = 'result_row'>\n");
            echo("<div class = 'result_name'>\n");  
            echo("$rec->name\n");  
            echo("</div>\n");  
            echo("<div class = 'result_details'>\n");  
            echo("<a href='" . $rec->site_detail_url . 
             "' target='_blank'>". 'View Details' . "</a>\n");  
            echo("</div>\n");  
            echo("<div class = 'result_issues'>\n"); 
            echo("<a href='" . Yii::app()->request->getScriptUrl() .
               '/cv/issues?title=' . urlencode($rec->name) .
     '&volume_id=' . $rec->id . ...

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