Cargando…

PHP 5 CMS Framework Development.

Expert insight and practical guidance to create an efficient, flexible, and robust web oriented PHP 5 framework.

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Brampton, Martin
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Pub., 2010.
Edición:2nd ed.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • PHP 5 CMS Framework Development; PHP 5 CMS Framework Development; Credits; About the Author; Acknowledgement; About the Reviewers; Preface; What this book covers; What you need for this book; Who this book is for; Conventions; Reader feedback; Customer support; Errata; Piracy; Questions; 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 XHTMLModel, view, and controller; The CMS environment; Hosting the CMS; Basic browser matters; Security of a CMS; Some CMS terminology; Summary; 2. Organizing Code; The problem; Discussion and considerations; Security; Methods of code inclusion; Practicality in coding; Exploring PHP and object design; Autoloading; Namespaces and class visibility; Singletons; Objections to use of singletons; Framework solution; Autoloading; The smart class mapper; Finding a path to the class; Populating the dynamic class map; Saving map elements; Obtaining class information; Summary.
  • 3. Database and Data ObjectsThe problem; Discussion and 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; Handling databases easily; Prefixing table names in SQL; Making the database work; Getting hold of data; Higher level data access; Assisted update and insert; What happened?; Database extended services; Getting data about data; Easier data about data.
  • Aiding maintenanceData objects; Rudimentary data object methods; Data object input and output; Setting data in data objects; Sequencing database rows; Database maintenance utility; Summary; 4. Administrators, Users, and Guests; The problem; Discussion and considerations; Who needs users?; Secure authentication; Secure storage of passwords; Blocking SQL injection; Login; Managing user data; User self service; Customizing for users; Extended user information; Exploring PHP-arrays and SQL; Framework solution; The user database table; Indexes on users; Keeping user tables in step; Achieving login.
  • Administering usersGenerating passwords; Summary; 5. Sessions and Users; The problem; Discussion and considerations; Why sessions?; How sessions work; Avoiding session vulnerabilities; Search engine bots; Session data and scalability; Exploring PHP-frameworks of classes; Framework solution; Building a session handler; Creating a session; Finding the IP address; Validating a session; Remembering users; Completing session handling; Session data; Session data and bots; Retrieving session data; Keeping session data tidy; Summary; 6. Caches and Handlers; The problem; Discussion and considerations.