Beginning Yii

Fast track your web application development by harnessing the power of the Yii PHP framework
3.1 (5 ratings) Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
106 students enrolled
$85
Take This Course
  • Lectures 41
  • Contents Video: 2.5 hours
  • Skill Level All Levels
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works

Discover

Find online courses made by experts from around the world.

Learn

Take your courses with you and learn anywhere, anytime.

Master

Learn and practice real-world skills and achieve your goals.

About This Course

Published 9/2014 English

Course Description

Starting with the basics of installing and configuring Yii, you will learn how to use the Yii application generator to build your first fully working application with just one command. You will then move on to a step-by-step progression to tailoring this to your requirements by including database access methods and manipulating queries as well as using sub-forms and third-party plugins. This course also covers how to use the fully integrated auto-testing tools such as PHPUnit and Selenium, uploading and crunching images, using themes, user security and authentication, debugging and logging, and finally how to configure your application for deployment.

By the end of Beginning Yii, you will be fully conversant with the Yii framework, and you will be able to confidently build applications.

About the Author

Chris Backhouse is an independent web developer with 30 years of experience in Software Development. Over the past 3 years, he has specialized in optimising businesses by building customized web applications based on LAMP technologies and PHP frameworks such as Yii. He has been using web platforms for more than 10 years.

Previously, Chris provided independent consultancy to international businesses around Europe. His particular expertise lay in the management of introducing advanced technologies into the system development work place and the creation and maintenance of the processes involved. Companies such as Cisco Inc, Hyder plc, and Microsoft UK have benefited in these areas.

What are the requirements?

  • Beginning Yii is a step-by-step tutorial for developing web applications using Yii. This video course follows the iterative approach to software development while developing a photo gallery website.

What am I going to get from this course?

  • Beginning Yii is a step-by-step tutorial for developing web applications using Yii. This video course follows the iterative approach to software development while developing a photo gallery website.

What is the target audience?

  • If you are a PHP developer, either with or without previous framework experience, and you have an interest to learn Yii and to rapidly develop modern, sophisticated web applications, then this course is for you. No prior knowledge of Yii is expected.

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.

Curriculum

Section 1: Exploring Yii
02:28

In this video, you’ll be introduced to the topics that will be covered in the course.

03:35

Understand how a Framework is an architectural collection of tools

03:29

MVC architecture is important because it produces a structured and an easily maintainable code.

03:20

To better understand the flow of information and which component is responsible for what, we’ll take a look at the MVC request routing.

03:21

What makes Yii so popular?

Section 2: Getting Started with Yii
03:14

You will need to have these items installed and running before you can start development. Ensuring that your versions are current and up to date will mean that you are less likely to have incompatibility problems. You must be running PHP 5.3 or later.

04:26

Using Yii to generate the web application builds the skeleton disrectory structure and adds the necessary bootstrap and configuration files. This makes it much quicker and easier to start development.

04:17

Understanding the Yii configuration file and the flexibility it can provide will make both development and deployment of your application much easier.

03:23

By developing an application such as this, we will be able to meet a broad spectrum of everyday issues, such as specialised validation, url management and image manipulation. We will also see how we can add functionality in layers taking the development from prototype to full application.

03:53

The code generated by Gii will account for a large percentage of your final code base, thus saving you both time and money in the development lifecycle.

Section 3: Starting Development (Using Our IDE)
04:10

The CActiveRecord object is Yii's encapsulation of database manipulation, and it provides extensive functions to simplify database queries and updates.

03:45

The Yii CHtml object provides a rich functionality for generating complex HTML and JavaScript. We will see how to quickly adapt to the autogenerated forms.

04:28

Integrating server-side and client-side apps can often be complex and messy. We will see how third-party Yii extensions can easily be integrated with our application.

03:40

In this video, we'll look into adding new columns to the album's data model class, specifying new validation rules and removing unwanted search terms.

04:16

Understanding the controller processing in a create and update scenario helps you change the create and update forms and manage model validation.

04:13

Learn how to embed an existing form from one model as a subform in another model by understanding how to query and display data from other models.

Section 4: Testing
03:04

Testing often gets left or forgotten.Understand the benefits of implementing automated testing tools whatever the scale of your development.

04:13

We will demonstrate how quick and easy it is to set up a testing environment.

03:38

Learn how to produce and run PHPUnit scripts and analyze the results.

03:36

Learn how to automate the action of ensuring that you are always testing with the same data.

04:06

Automating the functional tests will quickly enable you to retest pages across your application with minimal effort.

Section 5: The Photo Application
03:42

Extensions can save a huge amount of development effort, so familiarity with the extensions library is beneficial.

03:26

How to include third-party widgets and customize them to our needs.

03:49

Learn how to process Ajax requests and manage image/binary files using the cUploadedFile class.

04:23

Understanding this powerful tool can simplify your form development.

04:32

Customize the actions available for each row to increase the flexibility of this widget.

Section 6: Themes, Layout and User Access
03:57

We will learn how theme files override application files, and also how the hierarchy of the views are displayed.

03:45

We will see how we can alter the available navigation items for authenticated and guest users.

04:02

We will show how the login process manages the relationship between the user authentication and the web user session, and how to customise this process.

04:09

We will learn how we can quickly and easily tailor the web user class for our applications.

04:21

We will learn how controller implements access rules, and how we can adapt these to suit our needs. We will also see how we can apply restrictions across multiple access rules using user-defined filters.

Section 7: Debugging, Logging and Error Handling in Yii
05:22

There are occasions when we need to step through our code line by line to find that illusive bug or to trace the value of a variable, and xDebug is the tool for this job.

04:53

Using log routes will enable us to divert the output to different files for different log levels and categories.

04:12

SQL debugging and profiling enable us to more accurately analyze and pinpoint bottlenecks and produce more efficient SQL and code.

04:43

Learn to use a tool that will be indispensable in debugging your code.

04:55

Understand how to use error handling to hide system specifics from users and hackers.

Section 8: Customizing Our Album Interface
03:34

Understand how using a cross-model functionality demonstrates how an MVC architecture holds the business rules at the model level.

03:48

We store the tags in a single text field using a comma delimited approach, so we need to present this to users in an understandable and easy-to-use manner. To this end, we will be adding an auto-complete widget to the album/update form.

04:27

Learn how to easily integrate cross-table lookups using relationships and the listData method.

04:59

When we start mixing up models in our processes, it sometimes becomes unclear about where one should add a functionality. Here we will see both, adding an addComment function to the photo model and keeping the comment forms separate.

04:41

In smaller application development teams, it is easier to keep track of the development versus production configuration but even then it is important to be aware of overwriting the production configuration. In a larger system, it becomes imperative to split the configuration file into manageable portions.

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Packt Publishing, Tech Knowledge in Motion

Over the past ten years Packt Publishing has developed an extensive catalogue of over 2000 books, e-books and video courses aimed at keeping IT professionals ahead of the technology curve. From new takes on established technologies through to the latest guides on emerging platforms, topics and trends – Packt's focus has always been on giving our customers the working knowledge they need to get the job done. Our Udemy courses continue this tradition, bringing you comprehensive yet concise video courses straight from the experts.

Ready to start learning?
Take This Course