-
Notifications
You must be signed in to change notification settings - Fork 0
init.php
Guilherme Barile edited this page Feb 27, 2014
·
1 revision
The application initialization file is included automatically by the framework and should define the domains, plugins and other code dependencies.
Domains are defined using the register_domain(id, params) directive. The only required parameter is which class should handle this domain's requests, other configuration parameters are handler-specific.
register_domain(<id>, array(
"handler" => <OW_HandlerImpl>
);
Objectiveweb includes the TableStore and ObjectStore handlers by default, additional handlers can be implemented by
extending the OW_Handler class.
"with" => array(<service>, ...)
Defaults to array('acl', 'attachments')
array(
"handler" => "Tablestore"
"table" => <sql table name>
"hasMany" => array(
"table" => <foreign table>
)
"hasOne" => array(
"table" => <foreign table>
)
"belongsTo" => array(
"table" => <foreign table>
)
"extends" => <primary table>