Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danschmidt5189/yii-backbone-js
Quickly integrate Backbone, Marionette, and RequireJS in your Yii application.
https://github.com/danschmidt5189/yii-backbone-js
Last synced: about 1 month ago
JSON representation
Quickly integrate Backbone, Marionette, and RequireJS in your Yii application.
- Host: GitHub
- URL: https://github.com/danschmidt5189/yii-backbone-js
- Owner: danschmidt5189
- Created: 2014-01-07T23:31:34.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-08T00:13:39.000Z (almost 11 years ago)
- Last Synced: 2024-10-14T11:55:09.088Z (3 months ago)
- Language: PHP
- Size: 133 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Yii + Backbone.js
==============Quickly integrate Backbone, Marionette, and RequireJS in your Yii application. The default configuration gets you up and running immediately using [cdnjs](http://cdnjs.com/).
(Note: This component is really more of a RequireJS quick-start than anything else.)
# Run your backbone app
1. Configure the Backbone component
2. Tell backbone which app to load
3. Pass initialization options to backbone
4. Call start()
5. You're done. All assets have been published and the necessary files included.```php
Yii::app()->backbone->app = 'MyApp';
Yii::app()->backbone->options = array('key' => 'value');
Yii::app()->backbone->start();
```# Requirements
* RequireJS is required for module loading.
* By default, this assumes there's a require.js file in your backbone app's root directory.
* Customize the path to require js using `Backbone::$requireJsUrl`