06.05
php
saved
perilousapricot
Note
test
test
- - DataSources
- - Introduction
- - Why
- While most CakePHP applications only access SQL databases, you can integrate other sources of data as well by creating a new DataSource subclass. A properly written DataSource will allow the application to query and have relations within and between different data. For instance, with the proper data sources, one could link an iCal calendar to an LDAP employee database and extract a colleague's email address (iCal HABTM LDAP).
- - Core Datasources?
- Currently, CakePHP provides datasources for:
- adodb
- db2
- firebird
- mssql
- mysql
- odbc
- oracle
- postgres
- sqlite
- sybase
- If the datasource you would like to use isn't listed, then you will need to create your own to integrate it with CakePHP.
- - Creating Your Own
- The easiest way to create your own datasource is to begin with one of the core datasources and modify it to read from the proper datasource. The core datasources are stored in cake/libs/model/datasources/dbo. I
- LDAP example?
Parsed in 0.027 seconds, using GeSHi 1.0.7.14