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

Doesn't work without url rewrite #32

Open
maxxer opened this issue Feb 2, 2018 · 1 comment
Open

Doesn't work without url rewrite #32

maxxer opened this issue Feb 2, 2018 · 1 comment

Comments

@maxxer
Copy link

maxxer commented Feb 2, 2018

The $baseUrl property assumes /sort/ url is accessible, but if you don't have enablePrettyUrl = true it won't work

@maxxer
Copy link
Author

maxxer commented Feb 2, 2018

More than this with the current behavior it won't work if the Yii app is not in the root of the webserver. I've changed the OrgSortableColumn initialization this way:

        $this->_origSortableColumn = Yii::createObject([
            'class' => OrigSortableColumn::className(),
            'grid' => $this->grid,
            'template' => $this->template,
            'buttons' => $this->buttons,
            'gridContainerId' => $this->gridContainerId,
            'confirmMove' => $this->confirmMove,
            'baseUrl' => Url::to([$this->baseUrl])."/",
        ]);

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