Skip to content

Define redraw as snippet in ajax request #193

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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