Instant Yii 1.1 Application Development Starter
By Jacob Mumm and Mark Safronov
5/5
()
About this ebook
PHP is one of the most popular languages for building web sites and applications. While the Yii framework came a little bit later to the PHP scene, it has taken a lot of the best practices from around the Web and put it all into a single, awesome framework for making custom web apps.
Yii 1.1 Application Development Starter is a straightforward, hands-on look at what is rapidly becoming one of the most revered frameworks for custom web application development. The Yii framework follows a tried and true object-oriented software development pattern called Model-View-Controller, making it quick and easy to build database driven applications.
This book takes you through everything you need to know to get set up and rolling with the Yii framework. You will learn how to plan and start your application and how to take it where you want to go with the tools and extensions available with the Yii framework.
This book will teach you how to build an application from the ground up, how to make sure you have everything you need in your hosting environment and get the Yii framework installed, how to create a strong relational database design, and how to set up model classes for your tables. You will also learn how to generate CRUD code to add/remove, view, and list records from your tables, then add custom routes, widgets, and extensions to make a robust application. Additionally, you will learn how to integrate authentication and role-based access permissions throughout your site.
With this book, you will learn everything you need to get started with web application development using the Yii PHP framework.
ApproachGet to grips with a new technology, understand what it is and what it can do for you, and then get to work with the most important features and tasks. A concise guide that delivers immediate results with practical recipes that give you useful hints and tips on avoiding the pitfalls in Eclipse 4 development.
Who this book is forThis book is aimed at developers with some basic programming experience and a general understanding of relational databases, or anyone who is ready to take their development to the next level with framework-driven development. A basic understanding of MySQL, PHP, HTML, and HTTP is expected.
Jacob Mumm
Jacob Mumm is a web developer from Upstate New York specializing in PHP and JavaScript web applications. He has worked for non-profit organizations, advertising companies, and schools using tools such as Drupal, jQuery (including UI and Mobile), AngularJS, and the Yii Framework. His interests range from outdoor activities such as hiking, camping, and kayaking, to organic food and gardening as part of a holistic, sustainable lifestyle, all the while staying up to date with the latest gadgets, gizmos, and web application technologies.One of the things he deeply enjoys is talking to people about the things for which he has the most passion. He likes to share his knowledge and experience with others. Even when incomplete, Jacob finds the act of consolidating his thoughts on a subject a great way to solidify his own understanding or to discover places where he needs to investigate further.
Related to Instant Yii 1.1 Application Development Starter
Related ebooks
Learning Firefox OS Application Development Rating: 0 out of 5 stars0 ratingsInstant Building Multi-Page Forms with Yii How-to Rating: 0 out of 5 stars0 ratingsResponsive Design High Performance Rating: 0 out of 5 stars0 ratingsInstant Hands-on Testing with PHPUnit How-to Rating: 0 out of 5 stars0 ratingsOpenCart Theme and Module Development Rating: 0 out of 5 stars0 ratingsBeginning DotNetNuke Skinning and Design Rating: 0 out of 5 stars0 ratingsBuilding a Web Application with PHP and MariaDB: A Reference Guide Rating: 0 out of 5 stars0 ratingsMeteor Design Patterns Rating: 0 out of 5 stars0 ratingsInstant Highcharts Rating: 0 out of 5 stars0 ratingsGetting Started with OpenCart Module Development Rating: 0 out of 5 stars0 ratingsSymfony2 Essentials Rating: 0 out of 5 stars0 ratingsAndroid Application Development with Maven Rating: 0 out of 5 stars0 ratingsGetting Started with hapi.js Rating: 5 out of 5 stars5/5Python Apps on Visual Studio Code: Develop apps and utilize the true potential of Visual Studio Code (English Edition) Rating: 0 out of 5 stars0 ratingsjQuery Mobile Web Development Essentials - Third Edition Rating: 0 out of 5 stars0 ratingsAgile Web Application Development with Yii1.1 and PHP5 Rating: 4 out of 5 stars4/5Flex 3 with Java Rating: 0 out of 5 stars0 ratingsSocial Media for WordPress Beginner's Guide Rating: 0 out of 5 stars0 ratingsFlash with Drupal Rating: 0 out of 5 stars0 ratingsGetting Started in: Internet Marketing Rating: 0 out of 5 stars0 ratingsWordPress MU 2.8 - Beginner's Guide Rating: 0 out of 5 stars0 ratingsMy First Webpocalypse: Beginner HTML, CSS, and Usability (Virtual Boxed Set): Undead Institute Rating: 0 out of 5 stars0 ratingsFuelPHP Application Development Blueprints Rating: 0 out of 5 stars0 ratingsD Web Development Rating: 0 out of 5 stars0 ratingsAdobe InDesign CS6 Digital Classroom Rating: 0 out of 5 stars0 ratingsWeb Development Secrets: This Book Below Will Show You Exactly What What You Need To Do To Finally Be A Success With Your Website! Rating: 0 out of 5 stars0 ratingsOpenCart Tips and Tricks Rating: 0 out of 5 stars0 ratingsBuilding Websites with OpenCms Rating: 0 out of 5 stars0 ratings
Programming For You
Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5Python: Learn Python in 24 Hours Rating: 4 out of 5 stars4/5Python: For Beginners A Crash Course Guide To Learn Python in 1 Week Rating: 4 out of 5 stars4/5SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5Excel : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Excel Programming: 1 Rating: 5 out of 5 stars5/5Python Machine Learning By Example Rating: 4 out of 5 stars4/5Python Programming : How to Code Python Fast In Just 24 Hours With 7 Simple Steps Rating: 4 out of 5 stars4/5A Slackers Guide to Coding with Python: Ultimate Beginners Guide to Learning Python Quick Rating: 0 out of 5 stars0 ratingsSQL: For Beginners: Your Guide To Easily Learn SQL Programming in 7 Days Rating: 5 out of 5 stars5/5Python Data Structures and Algorithms Rating: 5 out of 5 stars5/5Java for Beginners: A Crash Course to Learn Java Programming in 1 Week Rating: 5 out of 5 stars5/5Programming Arduino: Getting Started with Sketches Rating: 4 out of 5 stars4/5Learn SQL in 24 Hours Rating: 5 out of 5 stars5/5Learn JavaScript in 24 Hours Rating: 3 out of 5 stars3/5HTML in 30 Pages Rating: 5 out of 5 stars5/5Learn to Code. Get a Job. The Ultimate Guide to Learning and Getting Hired as a Developer. Rating: 5 out of 5 stars5/5PYTHON: Practical Python Programming For Beginners & Experts With Hands-on Project Rating: 5 out of 5 stars5/5Python QuickStart Guide: The Simplified Beginner's Guide to Python Programming Using Hands-On Projects and Real-World Applications Rating: 0 out of 5 stars0 ratingsHTML & CSS: Learn the Fundaments in 7 Days Rating: 4 out of 5 stars4/5The Unofficial Guide to Open Broadcaster Software: OBS: The World's Most Popular Free Live-Streaming Application Rating: 0 out of 5 stars0 ratingsCoding All-in-One For Dummies Rating: 4 out of 5 stars4/5The Little SAS Book: A Primer, Sixth Edition Rating: 5 out of 5 stars5/5Python for Beginners: Learn the Fundamentals of Computer Programming Rating: 0 out of 5 stars0 ratingsLearn PowerShell in a Month of Lunches, Fourth Edition: Covers Windows, Linux, and macOS Rating: 0 out of 5 stars0 ratings
Reviews for Instant Yii 1.1 Application Development Starter
1 rating1 review
- Rating: 5 out of 5 stars5/5Very clear and good written. A really good starter if You already heared something about Yii. 5 stars from me!
Book preview
Instant Yii 1.1 Application Development Starter - Jacob Mumm
Table of Contents
Instant Yii 1.1 Application Development Starter
Credits
About the Authors
About the Reviewer
www.packtpub.com
Support files, eBooks, discount offers and more
packtlib.packtpub.com
Why Subscribe?
Free Access for Packt account holders
1. Instant Yii 1.1 Application Development Starter
So, what is Yii?
Installation
Server requirements
Step 1 – Setting up Yii
Step 2 – Creating your project
And that's it!!
Quick start – creating an application
Step 1 – planning the workflow
Step 2 – linking to the database from your app
Step 3 – generating code automatically
The console way
Gii
Step 4 – looking at the components of Yii
Models
Controllers
Views
Recap
User authentication
Top 5 features you need to know about
Basic security considerations
Form components – CHtml, CActiveForm, and Zii
Adding custom views
Extensions
TinyMCE
MbMenu
Yii-User and Yii-User-Management
Yii-Shop
Cal
Fancybox
Other great extensions
Role-based access control
SRBAC
People and places you should get to know
Yii website
API
Tutorials and guides
IRC
Instant Yii 1.1 Application Development Starter
Instant Yii 1.1 Application Development Starter
Copyright © 2013 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: June 2013
Production Reference: 1300513
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78216-168-4
www.packtpub.com
Credits
Authors
Jacob Mumm
Mark Safronov
Reviewer
Sergey Malyshev
Acquisition Editor
Andrew Duckworth
Kunal Parikh
Commissioning Editor
Harsha Bharwani
Technical Editor
Varun Pius Rodrigues
Project Coordinator
Deenar Satam
Proofreader
Paul Hindle
Graphics
Abhinash Sahu
Production Coordinator
Prachali Bhiwandkar
Cover Work
Prachali Bhiwandkar
Cover Image
Conidon Miranda
About the Authors
Jacob Mumm is a web developer from Upstate New York specializing in PHP and JavaScript web applications. He has worked for non-profit organizations, advertising companies, and schools using tools such as Drupal, jQuery (including UI and Mobile), AngularJS, and the Yii Framework. His interests range from outdoor activities such as hiking, camping, and kayaking, to organic food and gardening as part of a holistic, sustainable lifestyle, all the while staying up to date with the latest gadgets, gizmos, and web application technologies.
One of the things he deeply enjoys is talking to people about the things for which he has the most passion. He likes to share his knowledge and experience with others. Even when incomplete, Jacob finds the act of consolidating his thoughts on a subject a great way to solidify his own understanding or to discover places where he needs to investigate further.
This book is dedicated to Joseph Fitzsimmons, because he has heard me explain quite a lot of things in recent years. Joe is a good friend who I have had the pleasure of watching and helping grow from someone fiddling with HTML to a degree-holding, up-and-coming web programmer. Joe embodies the target audience for this book, as he has the basis for technical understanding and is ready to take the next step into framework-driven development. This book was written largely by me pretending to be explaining things to Joe.
Mark Safronov is a professional web application developer from the Russian Federation with experience and interest in a wide range of programming languages and technologies. He has built and participated in building different types of web applications, from purely computational ones to full-blown e-commerce sites. He is also a proponent of following the current best practices for test-first development and clean and maintainable code.
He is currently employed at Clevertech, and is working on Yii-based PHP web applications and maintaining a quite popular