PHP 5 CMS Framework Development potx

416 1.3K 2
PHP 5 CMS Framework Development potx

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... Administering RBAC The general RBAC cache Asking RBAC questions Summary 151 151 153 153 153 154 155 156 157 159 159 161 166 168 172 The problem Discussion and considerations An extension ecosystem 173 174 1 75 Templates in the ecosystem Modules in the ecosystem Components in the ecosystem Component templates Modules everywhere 1 75 176 177 177 178 More on extensions 178 Templates Modules Components 178... succinctness Framework solution Using "heredoc" to define XHTML Using templating engines Some widgets Building page control Supporting editors Cleaning up XHTML Administrator database management Customization through subclassing Summary The problem Discussion and considerations Parsing XML Configuration handling 249 250 250 252 253 254 255 256 257 258 258 259 260 261 267 270 273 274 274 2 75 277 278 280... considerations Database dependency The role of the database Level of database abstraction Ease of development Keeping up with change Database security Pragmatic error handling Exploring PHP indirect references Framework solution Class structure Connecting to a database 53 53 53 55 56 57 58 59 60 61 63 64 64 65 Handling databases easily 66 Database extended services 73 Data objects 77 Prefixing table names... critical design issues and programming techniques required for a web-oriented framework in PHP5 , this book will be invaluable Whether you want to build your own CMS style framework, want to understand how such frameworks are created, or simply want to review advanced PHP5 software development techniques, this book is for you As a former development team leader on the renowned Mambo open source content management... metadata Exploring PHP PHP and HTTP Framework solution Efficient lookup of very long keys Cache and database transformation Looking at SEF transformation code Decoding an incoming URI Encoding an outgoing URI Direct URI handling 281 282 282 283 283 284 284 2 85 286 287 288 288 291 293 296 297 300 304 3 05 3 05 306 307 308 309 310 311 312 313 314 314 3 15 317 321 323 The future of direct URIs 3 25 Summary 326... categories Exploring technology—accessibility 339 340 340 341 343 343 344 3 45 346 347 347 348 349 Framework solution A simple blog application 351 351 Summary 370 The database table for blog A blog data object Administering blog items—controller Administering blog items—viewer Showing blogs to visitors Menu building 351 352 353 359 364 367 Appendix A: Packaging Extensions The XML setup file Parameters... Wow! eBook Table of Contents Exploring PHP and object design Autoloading Namespaces and class visibility Singletons 40 40 41 42 Framework solution Autoloading Finding a path to the class Populating the dynamic class map Saving map elements 45 45 49 50 51 Summary 52 Objections to use of singletons 43 Obtaining class information 51 Chapter 3: Database and Data Objects The problem Discussion... Chapter 1, CMS Architecture: This chapter introduces the reasons why CMS frameworks have become such a widely used platform for websites and defines the critical features The technical environment is considered, in particular the benefits of using PHP5 for a CMS Some general questions about MVC, XHTML generation, and security are reviewed Chapter 2, Organizing Code: Before we go further with CMS development, ... this book Code requires PHP version 5 and some sections will require at least version 5. 1.2 Increasingly, version 5. 2.3 (released May 2007) is regarded as the oldest version that should be supported by advanced software systems At the time of writing the code is believed to run on all released PHP versions up to 5. 3.2 Examples of SQL assume MySQL of at least version 4.1 although development will increasingly... orientation in the building of a new CMS framework Strangely, despite all the talk of "Internet years" and rapid change, the move to PHP5 has been extremely slow, taking about five years from first release to widespread deployment Leveraging PHP5 Software developers can argue at length about the relative merits of different languages, but there is no doubt that PHP has established itself as a very . restrictions 153 Some special roles 154 Implementation efficiency 155 Where are the real difficulties? 156 Exploring SQL—MySQL and PHP 157 Framework solution 159 Database. Objects 53 The problem 53 Discussion and considerations 53 Database dependency 55 The role of the database 56 Level of database abstraction 57 Ease of development

Ngày đăng: 06/03/2014, 05:22

Từ khóa liên quan

Mục lục

  • Cover

  • Copyright

  • Credits

  • About the Author

  • About the Reviewers

  • Table of Contents

  • Preface

  • Chapter 1: CMS Architecture

    • The idea of a CMS

      • Critical CMS features

      • Desirable CMS features

      • System management

      • Technology for CMS building

        • Leveraging PHP5

        • Some PHP policies

        • Globalness in PHP

        • Classes and objects

        • Objects, patterns, and refactoring

        • The object-relational compromise

        • Basics of combining PHP and XHTML

        • Model, view, and controller

        • The CMS environment

          • Hosting the CMS

          • Basic browser matters

Tài liệu cùng người dùng

Tài liệu liên quan