Skip to content

spf.load return undefined #440

@TonyGao

Description

@TonyGao

Hi, there

I have a try with SPF 24 (v2.4.0), when I use spf.load api, it's return undefined, but the xhr is work normally and the response is proper for me, code below(use in background template system). The question is how can I get the response content and append it to the specific dom, perhaps like pjax way?

$('#append').click(function () {
    $('#title-body').layout('expand', 'south');
    console.log(spf.load("{{ path('admin_org_title_new') }}"));
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions