Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Yii Project Blueprints
  • Table Of Contents Toc
Yii Project Blueprints

Yii Project Blueprints

By : Charles R. Portwood ll
3.5 (2)
close
close
Yii Project Blueprints

Yii Project Blueprints

3.5 (2)
By: Charles R. Portwood ll

Overview of this book

This book is for intermediate-to-advanced level Yii developers who want to master the Yii framework and develop real-world applications. You should have experience of working with Yii, PHP 5, HTML, CSS, and JavaScript.
Table of Contents (10 chapters)
close
close
9
Index

Initializing the project

As we did in our tasks project, we begin the development by creating a few folders in our application web root:

nearby/
   assets/
   js/
   protected/
      commands/
      config/
      controllers/
      data/
      extensions/
      migrations/
      models/
      runtime/
      views/

In this application, we added two new folders, commands and extensions. The commands folder is a special folder in Yii that yiic will reference when running console commands. The extensions folder is a special folder in Yii, where Yii extensions or third-party classes can be placed.

Next, let's go ahead and add our Yii Bootstrap file, index.php, to the root of our application. We need to be sure to change the Yii path to the location on the system:

<?php

// change the following paths if necessary
$yii='/path/to/yii/framework/yii.php';
$config=dirname(__FILE__).'/protected/config/main.php';

error_reporting(E_ALL);
ini_set('display_errors', &apos...
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Yii Project Blueprints
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon