Skip to content

Commit

Permalink
Updating Requestion Elements from Plugin for 2.0 compliance. Plugin s…
Browse files Browse the repository at this point in the history
…yntax doesn't work and plugin option was moved out of data options into its own array. So there's no documentation from 1.3 to 2.0 for requesting elements from Plugins.
  • Loading branch information
webtechnick committed Jan 13, 2012
1 parent a6d0cea commit f3db626
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions en/views.rst
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,16 @@ is given.
Requesting Elements from a Plugin
---------------------------------

2.0
---

To load an element from a plugin, use the `plugin` option (moved out of the `data` option in 1.x)

<?php echo $this->element('helpbox', array(), array('plugin' => 'Contacts')); ?>

2.1
---

If you are using a plugin and wish to use elements from within the
plugin, just use the familiar :term:`plugin syntax`. If the view is being
rendered for a plugin controller/action, the plugin name will automatically
Expand Down

0 comments on commit f3db626

Please sign in to comment.