Cargando…

Agile Web Application Development with Yii1.1 and PHP5.

Fast-track your Web application development by harnessing the power of the Yii PHP framework.

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Winesett, Jeffrey
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Pub., 2010.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Table of Contents; Agile Web Application Development with Yii 1.1 and PHP5; Agile Web Application Development with Yii 1.1 and PHP5; Credits; About the Author; About the Reviewers; Preface; What this book cover; What you need for this book; Who this book is for; Conventions; Reader feedback; Customer support; Errata; Piracy; Questions; 1. Meet Yii; Yii is easy; Yii is efficient; Yii is extensible; MVC architecture; The model; The view; The controller; Stitching these together: Yii request routing; Blog posting example; Object-relational mapping and Active Record; Active Record.
  • The view and controllerSummary; 2. Getting Started; Installing Yii; Installing a database; Creating a new application; Hello, World!; Creating the controller; One final step; Reviewing our request routing; Adding dynamic content; Adding the date and time; Adding the date and time, a better approach; Moving the data creation to the controller; Have you been paying attention?; Linking pages together; Linking to a new page; Getting a little help from Yii CHtml; Summary; 3. The TrackStar Application; Introducing TrackStar; Creating user stories; Users; Projects; Issues; Navigation and page flow.
  • Defining a data schemeDefining our development methodology; Automated software testing; Unit and functional testing; Unit tests; Functional tests; Benefits of testing; Test-driven development; Testing in Yii; Unit tests; Installing PHPUnit; Functional tests; Installing Selenium; Running a quick example; Hello TDD!; Summary; 4. Iteration 1: Creating the Initial TrackStar Application; Iteration planning; Creating the new application; Connecting to the database; Testing the connection; Yii and databases; Adding a db connection as an application component; Summary; 5. Iteration 2: Project CRUD.
  • Iteration planningRunning our test suite; Creating the project table; Naming conventions; Creating the AR model class; Configuring Gii; Using Gii to create our Project AR class; Testing out our newly generated code; Creating the unit test file; Testing create; Testing read; Testing update and delete; Was all that testing really necessary?; Enabling CRUD operations for users; Creating CRUD scaffolding for projects; Creating a new project; Adding a required field to our form; Reading the project; Updating and deleting projects; Managing projects in admin mode; More on testing-fixtures.
  • Configuring the fixture managerCreating a fixture; Configuring this fixture for use; Specifying a test database; Using fixtures; Summary; 6. Iteration 3: Adding Tasks; Iteration planning; Running the test suite; Designing the schema; Defining some relationships; Building the database and the relationships; Creating the Active Record model classes; Creating the Issue model class; Creating the User model class; Creating the Issue CRUD operations; Using the Issue CRUD operations; Creating a new Issue; Adding the types drop-down menu; Getting the test in the ""Red""