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

SearchForm forTemplate() doesn't call getTemplate() #1107

Closed
stephenmcm opened this issue Oct 1, 2014 · 1 comment
Closed

SearchForm forTemplate() doesn't call getTemplate() #1107

stephenmcm opened this issue Oct 1, 2014 · 1 comment

Comments

@stephenmcm
Copy link

Search form's current forTemplate() doesn't call $this->getTemplate() making overriding the template in place impossible.
Form's current forTemplate() does, allowing the user to add new templates at an instance level.

Example snippet:

    $form = new Form();
    $form->setTemplate('CustomForm');
    $form->forTemplate(); //returns CustomForm.ss

    $searchForm = new SearchForm();
    $searchForm->setTemplate('CustomSearchForm');
    $searchForm->forTemplate(); //returns SearchForm.ss
@PonchoPowers
Copy link

Confirmed in 3.2, it looks for SearchForm.ss or just Form.ss.

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

2 participants