Skip to content

Define redraw as snippet in ajax request #193

@MartkCz

Description

@MartkCz

Version: 2.5.2

Component:

	public function handleSnip(int $account): void {
		$this->redrawControl('profiles');
	}

template:

{define _xxx}
	<input n:name="xxx">
{/define}

<a n:href="snip!">Ajax</a>

In normal request _xxx is not called, but in ajax request is called by SnippetDriver. Probably name is problem (when _xxx is renamed to xxx, ajax request is ok), specifically _

PS: function name in generated php file is blockXxx instead of block_xxx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions