Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aggrosoft/oxid-object-loader

Adds methods to load objects from db inside of templates
https://github.com/aggrosoft/oxid-object-loader

Last synced: 8 days ago
JSON representation

Adds methods to load objects from db inside of templates

Awesome Lists containing this project

README

        

# oxid-object-loader
Adds methods to load objects from db inside of templates, small wrapper around oxNew for template usage

## Usage

`[{assign var=someVar value=$oViewConf->loadObject('someclass', 'oxid')]`

## Example

Load article object with oxid 123456789 into variable $myarticle

`[{assign var=myarticle value=$oViewConf->loadObject('oxarticle', '123456789)}]`