Library Hours
Monday to Friday: 9 a.m. to 9 p.m.
Saturday: 9 a.m. to 5 p.m.
Sunday: 1 p.m. to 9 p.m.
Naper Blvd. 1 p.m. to 5 p.m.
     
Limit search to available items
Results Page:  Previous Next
Author Caldarelli, Fabrizio, author.

Title Yii2 by example : develop complete web applications from scratch through practical examples and tips for beginners and more advanced users / Fabrizio Caldarelli. [O'Reilly electronic resource]

Publication Info. Birmingham, UK : Packt Publishing, 2015.
QR Code
Description 1 online resource (1 volume) : illustrations
text file
Series Community experience distilled
Community experience distilled.
Note Includes index.
Contents Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Starting with Yii2; Requirements and tools; Installing Yii2 with Composer; Application structure; Application properties; Common application components; Handling application events; The MVC pattern in Yii2; Naming convention; Configuring the debug toolbar; Using the logger; Example -- Hello world from scratch with the Yii basic template and bootstrap template; Summary; Chapter 2: Creating a Simple News Reader; Creating Controller and Action.
Creating a view to display a news listHow the controller sends data to view; Example -- create a controller to display the static news items list and details using the bootstrap template; Splitting the common view content into reusable views; Example -- render partial in view; Creating static pages; Example -- add a contact page; Sharing data between views and layout; Example -- change the layout background based on a URL parameter; Layout with dynamic block; Example -- add a dynamic box to display advertising info; Using multiple layouts.
Example -- using different layouts to create responsive and nonresponsive content layout for the same viewSummary; Chapter 3: Making Pretty URLs; Using pretty URLs; Custom URL rules; Example -- list news items by year or category; Default parameters in rules; Example -- the index page to display the links list; The complete URL rule parameters; The URL pattern to support the multilanguage view; Creating the rule class; Summary; Chapter 4: Creating a Room through Forms; Creating a Model; Example -- a Model to store room data; Using ActiveForm; Example -- creating a new room from the HTML form.
Format date, time, and numbersUploading files; Example -- uploading an image of a room; Summary; Chapter 5: Developing a Reservation System; Configuring a DB connection; Example -- creating rooms, customers, and reservations tables; Example -- test connection and executing the SQL query; Using Gii to create room, customer, and reservation models; Using ActiveRecord to manipulate data; Example -- query rooms list with ActiveRecord; Working with relationships; Example -- using a relationship to connect rooms, reservations, and customers; How to save a model from a form.
Example -- creating and updating a room from a formSetting up the GMT time zone; Using multiple database connections; Example -- configuring a second DB connection to export data to a local SQLite DB; Summary; Chapter 6: Using a Grid for Data and Relations; Introduction; DataProvider for grids; Using a grid; Custom columns in a grid; Example -- displaying a reservations list by clicking on a customer grid row; Filters in GridView; Displaying and filtering ActiveRecord relational data in a grid's column; A summarized footer row in a grid.
Example -- extending GridView to customize the footer row in a grid.
Summary 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 advan...
Subject Web applications -- Development.
PHP (Computer program language)
Applications Web -- Développement.
PHP (Langage de programmation)
PHP (Computer program language)
Added Title Develop complete web applications from scratch through practical examples and tips for beginners and more advanced users
Other Form: Print version: Caldarelli, Fabrizio. Yii2 By Example. Birmingham : Packt Publishing Ltd, ©2015 9781785287411
ISBN 9781785283673 (electronic bk.)
1785283677 (electronic bk.)
Patron reviews: add a review
Click for more information
EBOOK
No one has rated this material

You can...
Also...
- Find similar reads
- Add a review
- Sign-up for Newsletter
- Suggest a purchase
- Can't find what you want?
More Information