Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snippet isn't in payload.snippets[snippet] #279

Open
Olicek opened this issue Jul 13, 2016 · 0 comments
Open

snippet isn't in payload.snippets[snippet] #279

Olicek opened this issue Jul 13, 2016 · 0 comments

Comments

@Olicek
Copy link

Olicek commented Jul 13, 2016

Nevím jak za jiných okolností, jinak to nepoužívám, ale pokud mám Grid ve 2 vnořených komponentách, tak se jako snippet name nepředá jedna komponenta. Pro příklad

// HistoryPresenter
protected function createComponentHistoryGrid()
{
    return $this->history->create();
}

// HistoryGrid
public function createComponent($name)
{
    $this->grid = new Grid($this, $name);
    // ...
}

Potom se nastavuje tady název snippetu, který ale tady v payload.snippets[snippet] už není. V tom payload.snippets je property snippet-historyGrid-grid-grid, zatímco název snippetu se vytvoří bez toho historyGrid.

Jinými slovy:
snippet = snippet-grid-grid
payload.snippets = {snippet-historyGrid-grid-grid: ...}

Problém podle mě bude někde v Grid.php. Respektive možná někde jak vytvářím tu komponentu. Funguje při tom ajax, ale už se nic nepushuje do URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant