Skip to content
This repository has been archived by the owner on Nov 26, 2017. It is now read-only.

Set param for file to load with render method #1573

Merged
merged 1 commit into from Oct 7, 2012
Merged

Set param for file to load with render method #1573

merged 1 commit into from Oct 7, 2012

Conversation

mbabker
Copy link
Contributor

@mbabker mbabker commented Oct 7, 2012

This change to JApplicationWeb::render() allows downstream users to set a file to load using the same methods as the template and params values are set with. For example, in the CMS, we would have to override this method to use the tmpl=component URL param. Now, it's just another param to set.

@pasamio
Copy link
Contributor

pasamio commented Oct 7, 2012

Why not default it to index.php instead of requiring each implementation to define a default? Theme path I can understand as being needed to be configured, but index.php is a pretty safe bet for a file name.

@mbabker
Copy link
Contributor Author

mbabker commented Oct 7, 2012

I forgot get allows a default value. I'll fix it in a bit.

@mbabker
Copy link
Contributor Author

mbabker commented Oct 7, 2012

OK, that's changed.

LouisLandry added a commit that referenced this pull request Oct 7, 2012
Set param for file to load with render method
@LouisLandry LouisLandry merged commit 350b18a into joomla:staging Oct 7, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants