Web application development with Yii 2 and PHP : fast-track your web application development using the new generation Yii PHP framework /
This book is for professional PHP developers who wish to master the powerful Yii 2 application framework. It is assumed that you have knowledge of object-oriented programming. The previous version of the Yii framework is only briefly mentioned, but it''ll be even easier to grasp Yii 2 with...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Otros Autores: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham, UK :
Packt Pub.,
2014.
|
Colección: | Community experience distilled.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Authors; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Started; A basic application; Installation of a basic application template; Specifics of the basic application template; An advanced application; Installation of an advanced application template; Specifics of the advanced application template; Summary; Chapter 2: Making a Custom Application with Yii 2; The design stage; Task at hand; Domain model design; Target feature; Initial preparations; Setting up project management; Setting up the testing harness
- Setting up the deployment pipelineMaking a web application entry point visible; Introducing the Yii framework into our application; First end-to-end test; Yii 2 installation to the bare code base; Checking the requirements; An introduction to Yii conventions; Building the wireframe code; Adding a controller; Handling possible errors; Making the data and application layers; Defining the customer model at the data layer; Setting up the database; Object-relation mapping in Yii; Decoupling from ORM; Creating the user interface; The Add New Customer UI ; Routing 101; Layouts
- Finishing the Add New Customer UIWidgets; The List Customers UI; Customer Query UI; Using the application; Summary; Chapter 3: Automatically Generating the CRUD Code; Definition of the model to work with; Using Gii; Installing Gii into the application; Generating the code for the Model class; Generating the CRUD code; Finishing touches; Creating a new layout to support pages generated by Gii; An overview of the generated CRUD UI; Pros and cons of generated classes over manually created ones; Summary; Chapter 4: The Renderer; Anatomy of Yii rendering; The Yii application components
- The View componentAlgorithm to find the view files; Algorithm to search the layout file to be used; The Internal workings of rendering the view file; Custom renderers; A custom response formatter; The asset bundles; An asset bundle with files from an arbitrary folder; Asset publishing; An asset bundle with files from a web-accessible folder; Registering CSS and JavaScript files manually; Placing JavaScript in different positions in the asset bundles; Making a custom asset bundle for our application; Themes; Making a custom snowy theme; Widgets; Summary; Chapter 5: User Authentication
- Anatomy of the user login in YiiPassword-based login mechanics in general; Making the user management interface; Acceptance tests for the user management interface; Database table to store user records; Generating the model and CRUD code by Gii; Removing the password field from the autogenerated code; Hashing a password upon saving a user record; Functional tests for password hashing; Password hashing implementation inside the active record; Making a user record into an identity; Making the login interface; Specifications of user authentication; Making the authentication indicator