Index
A
- access control and filters
- reference links / There's more...
- accessRules controller method / There's more...
- actionPage method
- about / How it works...
- Active Record / How it works...
- Active Record model behavior
- implementing / How it works...
- addError method
- about / How it works...
- addInCondition method / How to do it...
- afterValidate function / There's more...
- afterValidate method / How it works...
- AJAX-requests / How it works...
- application
- profiling / Profiling an application with Yii
- AR event-like methods
- used, for processing model field / Processing model fields with AR event-like methods
- afterConstruct / There's more...
- beforeDelete/afterDelete / There's more...
- beforeFind/afterFind / There's more...
- beforeSave/afterSave / There's more...
- beforeValidate/afterValidate / There's more...
- assertRegExp method
- about / There's more...
- assertTrueassertFileExists method
- about / There's more...
- assetManager component
- about / There's more...
- assets
- managing / Managing assets, How to do it...
- assets directory
- checking / What is inside the assets directory
- publishing / Publishing an entire directory
- authManager component
- about / There's more...
- author
- setting up automatically / Setting up an author automatically, How to do it...
- autoloading
B
- Backbone.js
- URL / There's more…
- base controller
- using / Using a base controller, How to do it...
- BBCode converter / How to do it...
- beforeSave method / How it works...
- beforeValidate method / How to do it..., How it works...
- best practices
- following / Following best practices, How to do it..., How it works...
- server-side performance / Server-side performance is just a part of the big picture
- AR, versus query builder or SQL / Active Record versus query builder and SQL
- slow queries, checking / Always check for slow queries first
- heavy process , avoiding / Cache or save results of heavy processes
- too much processing, handling / Handling too much processing
- block
- loading, through AJAX / Loading a block through AJAX, How to do it..., How it works..., There's more...
- bootstrap.php
- about / How to do it...
- bundled jQuery inclusion
- preventing / Prevent including a bundled jQuery
C
- cache component
- about / There's more...
- cache dependencies
- caching
- reference links / There's more...
- CActiveDataProvider
- about / How it works...
- CActiveRecordBehavior
- CActiveRecord class / How it works...
- calculateTotalItemCount / How it works...
- calculateTotalItemCount method / How it works...
- CApplicationComponent / How it works...
- CAPTCHA
- adding / Adding CAPTCHA, Getting ready, How to do it...
- working / How it works...
- customizing / Customizing CAPTCHA, Getting ready, How to do it...
- CArrayDataProvider
- using / How it works...
- CAttributeCollection
- about / How to do it…
- CBehavior class
- getOwner method / More behavior types
- getEnabled method / More behavior types
- setEnabled method / More behavior types
- attach method / More behavior types
- detach method / More behavior types
- CCaptchaValidator / How it works...
- CClientScript / Registering linked resources
- CComponent**attachEventHandler method / How to do it...
- CController**renderPartial
- about / How it works...
- CCookieCollection class
- about / How to do it…
- CDbCriteria
- about / Using CDbCriteria
- using / Using CDbCriteria
- CEmailLogRoute
- about / How it works...
- CFileLogRoute
- about / How it works...
- CHtml and CHtmlPurifier
- used, for preventing XSS / Using CHtml and CHtmlPurifier to prevent XSS
- CHtmlPurifier
- about / How it works...
- CHttpRequest class / Working with requests
- CLI commands
- creating / Creating CLI commands, How to do it...
- working / How it works...
- clientScript component
- about / There's more...
- clips
- using / Using clips, Getting ready
- about / Using clips
- CList
- about / How to do it…
- CLogFilter class / How it works...
- CLogRouter
- about / How it works...
- CMap
- about / How to do it…
- CMarkdownParser function / How it works...
- CMessageSource**onMissingTranslation event / How to do it...
- CModel**afterValidate method
- about / There's more...
- CModelBehavior
- code
- highlighting / Highlighting code with Yii, How to do it...
- code coverage reports
- generating / Generating code coverage reports, How to do it..., How it works...
- reference links / There's more...
- commentCount / How to do it...
- Common Locale Data Repository (CLDR) / Using scopes to get models for different languages
- component
- about / Creating components
- creating / Creating components, How to do it..., How it works...
- existing application components, overriding / Overriding existing application components
- reference links / Further reading
- components
- configuring / Configuring components, How it works…
- Composer
- about / Using Composer with Yii
- using, with Yii / Using Composer with Yii, How to do it...
- installing / Getting ready
- working / How it works...
- package repository / How it works...
- features / There's more...
- configuration inheritance
- configuration parts
- moving, into seperate files / Moving configuration parts into separate files, How to do it...
- content
- rendering, at client side / Rendering content at the client side, Getting ready, How to do it..., How it works...
- context information
- controller action access
- limiting, to authorized users / How it works...
- limiting, to specific IPs / How it works...
- limiting, to specific user / How it works...
- denying, to specific browser / How it works...
- controller context
- using, in view / Using the controller context in a view, How to do it...
- controller filters
- coreMessages component
- about / There's more...
- CPagination object / How it works...
- CQueue
- about / How to do it…
- createAttribute method / How it works...
- cron jobs
- implementing / Implementing and executing cron jobs, How to do it...
- executing / How to do it...
- cross-database relations
- about / Cross-database relations
- CSort object / How it works...
- CSqlDataProvider
- using / How it works...
- CSRF
- about / Preventing CSRF
- concepts / Preventing CSRF
- preventing / Preventing CSRF, How it works...
- extra measures / Extra measures
- GET and POST, using / Using GET and POST properly
- CStack
- about / How to do it…
- CTestCase class
- about / How it works...
- CTextHighlighter class / How it works...
- CTypedList
- about / How to do it…
- custom grid column
- creating / Creating custom grid columns, How to do it..., How it works...
- custom input widget
- creating, CInputWidget used / Creating a custom input widget with CInputWidget, How to do it..., How it works...
- custom script packages
- using / Using custom script packages
- custom smart 404 handler
- implementing / Getting ready, How to do it...
- working / How it works...
- custom URL rules
- providing, at runtime / Providing your own URL rules at runtime, How to do it..., How it works..., There's more...
- custom validators
- writing / Writing your own validators, How to do it...
- about / There's more...
- custom view renderer
- creating / Creating a custom view renderer, How to do it...
- working / How it works...
- CValidator
- about / There's more...
- CViewAction
- used, for displaying static pages / Displaying static pages with CViewAction, How it works...
- CViewAction parameters
- basePath / There's more...
- defaultView / There's more...
- layout / There's more...
- renderAsText / There's more...
- viewParam / There's more...
- CWebApplication**createUrl method / How it works...
- CWebLogRoute
- about / How it works...
D
- DAO / How it works...
- data
- paginating / Paginating and sorting data, How to do it...
- sorting / Getting ready, How to do it...
- dataProvider property / How it works...
- data providers, Zii
- about / Using data providers
- using / Using data providers, Getting ready, How to do it..., How it works...
- working / How it works...
- db component
- about / There's more...
- decorators
- using / Using decorators
E
- EBBCode class
- about / How to do it...
- EE
- about / How to do it...
- Ember.js
- URL / There's more…
- errorHandler component
- about / There's more...
- error handling
- about / Implementing your own smart 404 handler
- reference links / Further reading
- error logging
- context information, using / Logging and using the context information, How to do it..., How it works...
- event-like methods / Processing model fields with AR event-like methods
- event handling
- about / There's more...
- exceptions
- about / Using exceptions
- using / Using exceptions, How to do it…
- working / How it works…
- external actions
F
- file uploads
- handling / Uploading files, Getting ready, How to do it..., How it works..., There's more...
- file validator
- about / File validation
- filter property / How it works...
- filters
- about / Creating filters
- creating / Creating filters, Getting ready
- working / How it works...
- reference links / There's more...
- fixtures
- about / Using fixtures
- using / Using fixtures, Getting ready, How to do it..., How it works...
- FlagColumn class / How it works...
- flash messages
- using / Using flash messages, How to do it...
- format component
- about / There's more...
- framework directory
- sharing / Sharing the framework directory
- full-page cache
G
- generateVerifyCode / How it works...
- getCookies method
- about / How to do it…
- getCsrfToken() / How it works...
- getIsAjaxRequest method / How to do it…
- getIsPostRequest method / How to do it…
- getOwner method / How it works...
- getPreferredLanguage
- about / How to do it…
- getRequestType method / How to do it…
- getSupportedLanguages function / How it works...
- getters and setters
- using / Using getters and setters, How to do it...
- getText method / How it works...
- Gii
- using / Using grids, Using lists
H
- hierarchy, RBAC
- role node / How it works...
- operation node / How it works...
- task node / How it works...
- HTTP caching
- implementing / Leveraging HTTP caching, Getting ready, How to do it...
- working / How it works...
- filters, optimizing / Optimizing filters
- reference link / Further reading
I
- image resizing
- Kohana used / Using Kohana inside Yii
- about / There's more...
- isRemoved method / How it works...
- IViewRenderer interface / How it works...
J
- JavaScript
- configuration, passing from PHP / Passing configuration from PHP to JavaScript
- jQuery
- reference link, for documentation / Introduction
- JSON
- about / Working with JSON
- working with / Working with JSON, How to do it..., How it works...
- JSON response / How it works...
K
- KnockoutJS
- URL / There's more…
- Kohana 3
- working / How it works...
- Kohana framework
- using, in Yii / Using Kohana inside Yii, How to do it...
L
- linked resources
- registering / Registering linked resources
- logging
- about / Using different log routes
- log messages
- handling / Using different log routes, How to do it..., How it works...
- flushing / Log messages immediately
M
- maintenance mode
- about / Maintenance mode, How it works...
- markdown
- converting, to HTML / Applying markdown and HTML, How to do it...
- markdown and HTML
- applying / Applying markdown and HTML, How to do it..., There's more...
- markdown syntax
- messages component
- about / There's more...
- meta tags
- registering / Registering meta tags
- model behaviors
- creating / Creating model behaviors, How to do it..., How it works...
- CActiveRecordBehavior / CActiveRecordBehavior and CModelBehavior
- CModelBehavior / CActiveRecordBehavior and CModelBehavior
- model fields
- processing, with AR event-like methods / Processing model fields with AR event-like methods, How to do it..., How it works...
- modules
- creating / Creating modules, How to do it...
- working / How it works...
- reference links / There's more...
- ModuleUrlManager**collectRules method / How it works...
- multiple DB connections
- defining / Defining and using multiple DB connections, Getting ready, How to do it...
- using / How to do it...
- working / How it works...
- multiple layouts
- defining / Defining multiple layouts, How to do it..., How it works...
N
- native PHP template
- about / Creating a custom view renderer
- Notifier class / How to do it...
O
- ob_gzhandler function / How to do it...
- onBeginRequest event / How it works...
- operation, RBAC hierarchy
- about / How it works...
P
- PEAR
- using, in Yii / Using PEAR inside Yii
- working / How it works...
- reference links / There's more...
- PHP
- configuration, passing to JavaScript / Passing configuration from PHP to JavaScript, How to do it..., How it works...
- PHPUnit
- installing / How to do it...
- features / There's more...
- PHPUnit teardown method / There's more...
- profiling
- application, with Yii / Profiling an application with Yii
- reference links / There's more...
Q
- queryInternal / How it works...
R
- RBAC
- using / Using RBAC
- hierarchy / How it works...
- avoiding / Avoiding RBAC
- RBAC hierarchy
- permissions, testing / How it works...
- recommendations / A way to keep the hierarchy simple and efficient
- RBAC nodes
- naming / Naming RBAC nodes
- registerAutoloader method / How it works...
- regular expressions
- using, in URL rules / Using regular expressions in URL rules, Getting ready, How to do it..., How it works...
- renderDataCellContent method / How it works...
- renderFile method / How it works...
- renderPartial
- about / How it works...
- request
- working with / Working with requests, How to do it…, There's more...
- request component
- about / There's more...
- resources
- including, in page / Including resources in the page, How to do it..., How it works...
- reusable controller actions
- creating / Creating reusable controller actions, Getting ready, How to do it..., How it works...
- reference links / Further reading
- reusable controllers
- creating / Creating reusable controllers, How to do it...
- working / How it works...
- reference links / There's more...
- role, RBAC hierarchy
- about / How it works...
- assigning / How it works...
- router rules
- about / Configuring URL rules
S
- Sakila sample database Version 0.8
- URL / Introduction
- scopes
- using, for getting blog posts for different languages / Using scopes to get models for different languages, How to do it..., How it works...
- security
- about / Introduction
- controller filters, using / Using controller filters
- XSS, preventing with CHtml and CHtmlPurifier / Using CHtml and CHtmlPurifier to prevent XSS
- SQL injections, preventing / Preventing SQL injections
- CSRF, preventing / Preventing CSRF
- RBAC, using / Using RBAC
- securityManager component
- about / There's more...
- Selenium server
- installing / How to do it...
- sendFile
- about / How to do it…
- session component
- about / There's more...
- session handling
- about / Speeding up session handling
- changing / Speeding up session handling, How to do it...
- working / How it works...
- reference links / There's more...
- setPathOfAlias / How it works...
- setUpBeforeClass method
- about / How it works...
- setUpdateOnCreate property / How it works...
- single table inheritance
- Smarty view renderer
- reference link / There's more..., Further reading
- soft delete
- about / Creating model behaviors
- SPL ArrayAccess
- implementing / How to do it…
- SQL injections
- preventing / Preventing SQL injections, How to do it..., How it works...
- reference links / There's more...
- Stack Overflow
- URL / There's more...
- statePersister component
- about / There's more...
- static pages
- URL rules, creating / Creating URL rules for static pages, Getting ready, How to do it...
- displaying, with CViewAction / Displaying static pages with CViewAction, How it works...
T
- tableName method
- about / How it works...
- task, RBAC hierarchy
- about / How it works...
- connecting, to role / How it works...
- TDD
- about / Introduction
- testing environment
- setting up / Setting up the testing environment
- PHPUnit, installing / How to do it...
- PEAR, setting up / How to do it...
- Selenium server, installing / How to do it...
- Xdebug, installing / How to do it...
- Text_Highlighter
- about / More code highlighters
- themeManager component
- about / There's more...
- timestamps
- automating / Automating timestamps, How to do it...
- todo.bindEvents()
- about / How it works...
- todo.initLoader()
- about / How it works...
- todo.initRefs()
- about / How it works...
- todo.reload()
- about / How it works...
U
- unit testing
- about / Writing and running unit tests
- unit tests
- writing / Writing and running unit tests, How to do it...
- running / How to do it...
- updateAttribute method / How it works...
- urlManager component
- about / There's more...
- URL rules
- configuring / Configuring URL rules, How to do it..., How it works...
- regular expressions, using / Using regular expressions in URL rules, Getting ready, How to do it..., How it works...
- creating, for static pages / Creating URL rules for static pages, Getting ready, How to do it...
- URLs
- generating by path / Generating URLs by path, Getting ready, How to do it...
- user component
- about / There's more...
V
- validateAttribute method
- about / There's more...
- variable inputs
W
- web application components
- coreMessages / There's more...
- db / There's more...
- messages / There's more...
- errorHandler / There's more...
- securityManager / There's more...
- statePersister / There's more...
- format / There's more...
- cache / There's more...
- session / There's more...
- request / There's more...
- urlManager / There's more...
- assetManager / There's more...
- user / There's more...
- themeManager / There's more...
- authManager / There's more...
- clientScript / There's more...
- widgetFactory / There's more...
- WebTestCase.php
- about / How to do it...
- widget
- about / Creating a widget
- creating / Creating a widget, How to do it...
- working / How it works...
- reference links / There's more...
- widget defaults
- configuring / Configuring widget defaults
- widgetFactory component
- about / There's more...
X
- Xdebug
- installing / How to do it...
- XSS
- about / Using CHtml and CHtmlPurifier to prevent XSS
- preventing, CHtml and CHtmlPurifier used / Using CHtml and CHtmlPurifier to prevent XSS, Getting ready, How to do it..., How it works...
- HTML Purifier, configuring / Configuring the HTML Purifier
- HTML Purifier performance / HTML Purifier performance
- XSS types
Y
- Yii
- URL, official guide / Introduction
- getters and setters, using / Using getters and setters, How to do it...
- features / Using getters and setters
- autoloading / Using import and autoloading
- import feature / Using import and autoloading
- exceptions / Using exceptions
- components, configuring / Configuring components, How it works…
- widget defaults, configuring / Configuring widget defaults
- request, working with / Working with requests
- URLs, generating by path / Generating URLs by path, Getting ready, How to do it...
- base controller, using / Using a base controller, How to do it..., How it works...
- external actions, using / Using external actions, How to do it...
- flash messages, using / Using flash messages, How to do it...
- clips, using / Using clips, Getting ready
- decorators, using / Using decorators
- multiple layouts, defining / Defining multiple layouts, How to do it..., How it works...
- custom validators, writing / Writing your own validators, How to do it...
- files, uploading / Uploading files
- CAPTCHA, adding / Adding CAPTCHA
- CAPTCHA, customizing / Customizing CAPTCHA
- custom input widget, creating with CInputWidget / Creating a custom input widget with CInputWidget, How to do it...
- testing environment, setting up / Setting up the testing environment, How to do it...
- code coverage reports, generating / Generating code coverage reports, How to do it..., How it works...
- extending / Introduction
- native PHP template / Creating a custom view renderer
- Prado-like template / Creating a custom view renderer
- Smarty templates / Creating a custom view renderer
- error handling / Implementing your own smart 404 handler
- custom smart 404 handler, implementing / Implementing your own smart 404 handler, How to do it..., How it works...
- security / Introduction
- best performances / Following best practices
- session handling, speeding up / Speeding up session handling
- cache dependencies, using / Using cache dependencies and chains
- full-page cache, using / Using cache dependencies and chains
- application, profiling / Profiling an application with Yii
- HTTP caching, leveraging / Leveraging HTTP caching
- Zend framework, using / Using Zend Framework from Yii, Getting ready, How to do it...
- Kohana, using / Using Kohana inside Yii, How to do it...
- PEAR, using / Using PEAR inside Yii
- Yii**app()->db component / How it works…
- Yii**beginProfile
- and, Yii**endProfile / Yii::beginProfile and Yii::endProfile
- Yii**import
- Yii**trace
- versus, Yii**log / Yii::trace versus Yii::log
- Yii Active Record scopes
- using / How it works...
- Yii application
- testing, functional tests used / Testing the application with functional tests, Getting ready, How to do it..., How it works...
- moving out of webroot / Moving an application out of webroot, How to do it..., How it works...
- framework directory, sharing / Sharing the framework directory
- configuration parts, moving into seperate files / Moving configuration parts into separate files, How to do it..., How it works...
- configuration inheritance, implementing / Using multiple configurations to simplify the deployment
- maintenance mode / Maintenance mode, How to do it...
- Yii autoloader
- customizing / Customizing the Yii autoloader, Getting ready, How to do it...
- working / How it works...
- Yii autoloading
- reference links / Further reading
- Yii blog demo application
- bottlenecks, finding / Profiling an application with Yii, Getting ready, How to do it...
- Yii code highlighter
- Yii core collections
- using / Using Yii core collections, How to do it…
- CList / How to do it…
- CTypedList / How to do it…
- CMap / How to do it…
- CAttributeCollection / How to do it…
- CStack / How to do it…
- CQueue / How to do it…
- Yii database
- about / Introduction
- data, getting from / Getting data from a database, How to do it..., How it works...
- Yii directories layout
- Yii directory paths
- reference links / There's more...
- Yii error stack trace
- Yii events
- about / Using Yii events
- using / Using Yii events, How to do it...
- declaring / How to do it...
- event handler, attaching / How to do it...
- event handlers, managing / How to do it...
- event handlers, adding / How to do it...
- event handlers, deleting / How to do it...
- Yii extension
- model behaviors, creating / Creating model behaviors, How to do it...
- components, creating / Creating components, How to do it...
- reusable controller actions, creating / Creating reusable controller actions, How to do it..., How it works...
- reusable controllers, creating / Creating reusable controllers, How to do it..., How it works...
- widget, creating / Creating a widget, How to do it...
- CLI commands, creating / Creating CLI commands, How to do it..., How it works..., There's more...
- filters, creating / Creating filters, How it works...
- modules, creating / Creating modules, How to do it..., How it works...
- custom view renderer, creating / Creating a custom view renderer, How to do it..., How it works...
- sharing / Making extensions distribution-ready, Getting ready, How to do it..., How it works...
- Yii markdown wrapper and usage
- Yii URL router
- about / Configuring URL rules
- Yii views
- about / Using the controller context in a view
- controller context, using / Using the controller context in a view, How to do it...
- working / How it works...
- resuing, with partials / Reusing views with partials, How to do it...
Z
- Zend framework
- working / How it works...
- reference links / There's more...
- Zend Framework
- using, from Yii / Using Zend Framework from Yii, Getting ready, How to do it...
- Zend_Loader_Autoloader / Customizing the Yii autoloader
- Zii
- about / Introduction
- features / Introduction
- data providers / Using data providers
- Zii grids
- about / Using grids
- generating, Gii used / Using grids, How to do it...
- working / How it works...
- data, using from AR models / Using data from related Active Record models
- online resources / Further reading
- Zii lists
- about / Using lists
- generating, Gii used / Using lists
- working / How it works...
- sorting, adding / Adding sorting
- templates, customizing / Customizing templates
- markup and templates, customizing / Customizing markup and data displayed