Set param for file to load with render method #1573

Merged
merged 1 commit into from Oct 7, 2012

Projects

None yet

3 participants

@mbabker
Member
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
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
Member
mbabker commented Oct 7, 2012

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

@mbabker
Member
mbabker commented Oct 7, 2012

OK, that's changed.

@LouisLandry LouisLandry merged commit 350b18a into joomla:staging Oct 7, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment