PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Name

unregisterPlugin — dynamically unregister plugins

Description

void unregisterPlugin(string type,
                      string name);

This method unregisters plugins which previously have been registered by registerPlugin(), It uses the following parameters:

  • type defines the type of the plugin. Valid values are "function", "block", "compiler" and "modifier".

  • name defines the name of the plugin.

Example 212. unregister function plugin



<?php

// we don't want template designers to have access to function plugin "date_now" 
$smarty->unregisterPlugin("function","date_now");

?>

   

See also registerPlugin().

Smarty Template Engine