Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Agile Web Application Development with Yii1.1 and PHP5

You're reading from   Agile Web Application Development with Yii1.1 and PHP5 For PHP developers who know object-oriented programming, this book is the fast track to learning the Yii framework. It takes a step-by-step approach to building a complete real-world application ‚Äì teaching by practice rather than theory.

Arrow left icon
Product type Paperback
Published in Aug 2010
Publisher Packt
ISBN-13 9781847199584
Length 368 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Table of Contents (19) Chapters Close

Agile Web Application Development with Yii 1.1 and PHP5
Credits
About the Author
About the Reviewers
Preface
1. Meet Yii FREE CHAPTER 2. Getting Started 3. The TrackStar Application 4. Iteration 1: Creating the Initial TrackStar Application 5. Iteration 2: Project CRUD 6. Iteration 3: Adding Tasks 7. Iteration 4: User Management and Authentication 8. Iteration 5: User Access Control 9. Iteration 6: Adding User Comments 10. Iteration 7: Adding an RSS Web Feed 11. Iteration 8: Making it Pretty - Design, Layout, Themes, and Internationalization(i18n) 12. Iteration 9: Modules - Adding Administration 13. Iteration 10: Production Readiness Index

Creating user friendly URLs


So far, throughout the development process, we have been using the default format of our Yii application URL structure. This format, discussed back in Chapter 2, uses a querystring approach. We have the main parameter, 'r', which stands for route, followed by a controllerID/actionID pair, and then optional querystring parameters as needed by the specific action methods being called. The URL we created for our new feed is no exception. It is a long, cumbersome and dare we say ugly URL. There has got to be a better way! Well, in fact, there is.

We could make the above URL look cleaner and more self-explanatory by using the so-called path format, which eliminates the query string and puts the GET parameters into the path info part of URL:

Taking our comment feed URL as an example, instead of:

http://localhost/trackstar/index.php?r=comment/feed

we would have:

http://localhost/trackstar/index.php/comment/feed/

What's more, we don't even need to always specify the entry...

lock icon The rest of the chapter is locked
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Agile Web Application Development with Yii1.1 and PHP5
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at ₹800/month. Cancel anytime
Modal Close icon
Modal Close icon