Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9243753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:52:36+00:00 2026-06-18T08:52:36+00:00

exports.definition = { config : { // table schema and adapter information }, extendModel:

  • 0
exports.definition = {

    config : {
        // table schema and adapter information
    },

    extendModel: function(Model) {      
        _.extend(Model.prototype, {
            // Extend, override or implement the Backbone.Model methods                     
        });
        return Model;
    },

    extendCollection: function(Collection) {        
        _.extend(Collection.prototype, {

            // Implement the comparator method.
            comparator : function(book) {
                return book.get('title');
            }

        }); // end extend

        return Collection;
    }
}

Where should i specify url property to communicate with my rest service.

http://docs.appcelerator.com/titanium/latest/#!/guide/Alloy_Models

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:52:38+00:00Added an answer on June 18, 2026 at 8:52 am
    exports.definition = {
        config: {
                "columns": {
                    "username": "",
                    "password": ""
                },
                "defaults": {
                    "username": "-",
                    "password": "-"
                },
                "adapter": {
                    "type": "restapi",
                    "collection_name": "user"
                }
            },
    
        extendModel: function(Model) {      
            _.extend(Model.prototype, {
                **urlRoot**:'',
                checkLogin: function(){
    
                } 
            });
    
            return Model;
        },
    
        extendCollection: function(Collection) {        
            _.extend(Collection.prototype, {
                // Extend, override or implement Backbone.Collection 
            });
    
            return Collection;
        }
    }
    

    Backbone.sync method executes RESTful JSON requests to a URL specified by the Model.urlRoot or Collection.url attribute, when these classes are created. You can either specify in the Model or Collection.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Module-definition (.def) files provide the linker with information about exports, attributes, and other information
Here's the code: exports.index_post = function(req, res) { var nicks = []; if (req.body.nick)
I have a .dll library which exports a function in the following format: _Java_folder1_folder2_folder3_JavaClassName_javamethodname@16
I have a vb .net program that exports information to certain fields of an
I've got the following which points to a backbone.d.ts definition. import Backbone = module(../../../dep/backbone/backbone);
We ran into a particular issue with our Oracle table definition (DDL) and in
I have the following Backbone router definition in CoffeeScript: // appointments_router.js.coffee define [app, appointment],
I'm writing a database library of sorts. The basic function it exports is the
I find that exports.index = (req, res) -> res.render index, title: Hello compiles to
I use Unmanaged Exports to create a native .dll from .NET .dll so I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.