Book description
Develop complete web applications from scratch through practical examples and tips for beginners and more advanced users
About This Book
- Improve your programming experience and become a full stack developer
- Master real-life web applications, and create and manage four different projects
- Step-by-step guidance to develop real-world web applications smoothly
Who This Book Is For
This book is for anyone who wants to discover and explore Yii Framework. Basic programming experience with PHP and object oriented programming is assumed.
What You Will Learn
- Understand basic concepts, along with the installation and customization of Yii
- Discover models, controllers, and views-concepts applied in a web context-and how they are employed in Yii
- Use ActiveRecord to manipulate a database
- Add access control to your web application through authentication and authorization
- Install and customize an advanced template for multiple applications in the same project
- Create a RESTful Web Service to allow remote access to data
- Develop a console application to launch a command in the console as an automated task (cron job)
- Make code reusable through widgets and components and localize text messages to make a multilanguage web app
In Detail
Yii is a high-performance PHP framework best for developing Web 2.0 applications. It provides fast, secure, and professional features to create robust projects, however, this rapid development requires the ability to organize common tasks together to build a complete application. It's all too easy to get confused; this is where this book comes in.
This book contains a series of practical project examples for developers starting from scratch. Each section contains the most relevant theories for every topic as you walk through developing each project, focusing on key aspects that commonly confuse users.
The book starts with all the framework's basic concepts, such as controllers and views, to introduce you to Yii and creating your first application, a simple news reader. You will be learn to configure URL rules to make a pretty URL, essential for search engine optimization. Next, you will walk through Model and ActiveRecord, key concepts in database interaction.
The second application you will develop is a reservation system that allows you to manage rooms, customers, and reservations. For this, you will use database connection through SQL and ActiveRecord. More complex than the first one, this application will introduce you to the advanced template of Yii 2, splitting the app into two parts: a frontend for all visitors and a backend for the admin. Finally, you will move on to the last two applications: one that allows connections from remote clients, through RESTful components of Yii 2, and another that creates and organizes automatic tasks using the console application structure of Yii 2.
Style and approach
This is a step-by-step guide with each topic introduced in the context of real-world applications, highlighting common cases where users may encounter difficulties.
Table of contents
-
Yii2 By Example
- Table of Contents
- Yii2 By Example
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
- 1. Starting with Yii2
- 2. Creating a Simple News Reader
- 3. Making Pretty URLs
- 4. Creating a Room through Forms
- 5. Developing a Reservation System
- 6. Using a Grid for Data and Relations
- 7. Working on the User Interface
- 8. Log in to the App
- 9. Frontend to Display Rooms to Everyone
- 10. Localize the App
- 11. Creating an API for Use in a Mobile App
- 12. Create a Console Application to Automate the Periodic Task
- 13. Final Refactoring
- Index
Product information
- Title: Yii2 By Example
- Author(s):
- Release date: September 2015
- Publisher(s): Packt Publishing
- ISBN: 9781785287411
You might also like
book
Yii2 Application Development Cookbook - Third Edition
Discover 100 useful recipes that will bring the best out of the Yii2 framework and be …
book
Mastering PHP Design Patterns
Develop robust and reusable code using a multitude of design patterns for PHP 7 About This …
video
WordPress for Developers LiveLessons
4+ Hours of Video Instruction Description These easy video tutorials show how to unleash the full …
book
Building RESTful Web Services with PHP 7
Learn how to build RESTful API and web services in PHP 7 About This Book Leverage …