bubifengyun 2015-11-09 16:50:20 9705次浏览 7条评论 2 0 0

可以在这里下载

纯英文,适合初学者。
文章结构如下。

Yii2 By Example
Credits
Ab
out the Author
Ab
out the Reviewers
www
.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Err
at
a
Piracy
Questions
1. Starting with Yii2
Requirements and tools
Installing Yii2 with Composer
Ap
plication structure
Ap
plication 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
2. Creating a Simple News Reader
Creating Controller and Action
Creating a view to display a news list
How 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
fo
r the same view
Summary
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
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 numbers
Up
lo
ading files
Example – uploading an image of a room
Summary
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 form
Setting up the GMT time zone
Using multiple database connections
Example – configuring a second DB connection to export data to a local SQLite DB
Summary
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
Mu
lt
ip
le
gr
id
s on one page
Example: managing the reservations and rooms grids in the same view
Summary
7. Working on the User Interface
Using Gii to generate CRUD
Example – using CRUD to manage rooms, reservations, and customers using Gii
Customize JavaScript and CSS
Example – using JavaScript and CSS to display advertising columns that disappear if not
enough space is available
Using AJAX
Example – reservation details loaded from the customers' drop-down lists
Using the Bootstrap widget
Example: using datepicker
Mu
lt
ip
le
mo
dels in the same view
Example – saving multiple customers at the same time
Saving linked models in the same view
Example – creating a customer and reservation in the same view
Summary
8. Log in to the App
Creating a user login
Example – a login form to access
Configuring user authorization
Example – creating an ACF to authorize the users
RBAC
Example – configuring RBAC to set permissions for users
Mixing ACF and RBAC
Example – managing users' roles to access rooms, reservations, and customers
Summary
9. Frontend to Display Rooms to Everyone
Using an advanced template to split frontend and backend
Configuring an application using init
Example – creating frontend for public access
Sharing ActiveRecord models among applications
Example – displaying available rooms in the frontend site
Customizing a URL in the advanced template
Example – using the advanced template in the same domain
How to use the advanced template in the shared hosting
Summary
10. Localize the App
Setting the default language
File-based translations
Example – using file-based translation for the entire website
Placeholders formatting
DB-based translations
Example – translating room descriptions using DB
Summary
11. Creating an API for Use in a Mobile App
Configuring a REST app in the advanced template
Creating a controller
Example – creating a controller to manage rooms
Auth
entication
Example – using authentication to get a customers list
New controller action
Example – getting a rooms list for a reservation
Customizing authentication and response
Example – status response node in data received
Other forms of export – RSS
Example – creating an RSS with a list of available rooms
Summary
12. Create a Console Application to Automate the Periodic Task
Interacting with console applications
Creating a console controller
Example – setting an alarm flag for expired reservation
Formatting the output from the console
Implementing and executing cron jobs
Example – sending an e-mail with new reservations of the day
Summary
13. Final Refactoring
Creating widgets
Example – creating a widget with a carousel
Creating components
Example – creating a component that creates a backup of the MySQL database and
sends an e-mail to the administrator
Creating modules
Generating an API documentation
Example – using an API documentation to generate a doc of app and services
Summary
Index

作为一个写代码的最讨厌别人抄袭自己的代码,连句谢谢都不说。我感觉内心好憔悴。
所以有兴趣的可以看看。

  • 评论于 2015-11-09 21:33 举报

    领悟了,只有看书才能长进,才可以写总结,常泡论坛益处不大。

  • 评论于 2015-11-11 09:37 举报

    我去下载了,先看下,不过还是得谢谢!

  • 评论于 2015-11-16 09:31 举报

    感想亲,先下载看看

  • 评论于 2016-03-02 21:32 举报

    非常不错的一本书,已经下载到了KINDLE,无意中查询了一下,亚马逊这个电子版居然要260大洋,感谢分享

    1 条回复
    评论于 2016-03-04 14:09 回复

    见者有份,分给130大洋呗。哈哈。

  • 评论于 2016-09-28 14:15 举报

    找不到了。求发一份1727728211@qq.com

    1 条回复
    评论于 2016-09-28 19:46 回复

    依旧在啊,请再次去找一下吧。http://download.csdn.net/detail/bubifengyun/9255101

  • 评论于 2016-11-15 11:55 举报

    看了CSDN下载页心,人家享某些人的评论,很寒楼主好心免费给你分资料,谢谢不说,埋怨这,埋怨那,哎

    2 条回复
    评论于 2016-11-18 18:24 回复

    这本书前两天刚看完一遍,里面有些内容还是不错的。很多地方确实冗余,废话较多。不过还是感谢作者写出这样的作品,最起码要尊重作者的劳动成果。

    评论于 2016-11-18 18:52 回复

    嗯,我下载了,还没有看啊,打算导到Kindle上,下班地铁上看,谢谢你的分享啊,赞

    觉得很赞
  • 评论于 2017-01-10 17:41 举报

    我看PDF文档里面都是英文的,瞬间感觉自己英语水平很低

    2 条回复
    评论于 2017-01-10 21:14 回复

    看完之后,我觉得没有太多内容需要掌握的。不过英语水平确实需要多练。就像文言文一样,感觉难,读多了就习惯了。

    评论于 2017-01-11 17:43 回复

    是呀,我打算有时间的时候好好研究一下。

您需要登录后才可以评论。登录 | 立即注册