mirror of
				https://github.com/smarty-php/smarty.git
				synced 2025-10-31 12:21:36 +01:00 
			
		
		
		
	* Add converted docs repo * Set theme jekyll-theme-minimal * Removed BC docs, added TOC * Added TOCs, rewrote most important links in documentation. Linked README to new Github Pages site * some link fixes
		
			
				
	
	
		
			43 lines
		
	
	
		
			800 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			800 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| addPluginsDir()
 | |
| 
 | |
| add a directory to the list of directories where plugins are stored
 | |
| 
 | |
| Description
 | |
| ===========
 | |
| 
 | |
| Smarty
 | |
| 
 | |
| addPluginsDir
 | |
| 
 | |
| string\|array
 | |
| 
 | |
| plugins\_dir
 | |
| 
 | |
| 
 | |
|     <?php
 | |
| 
 | |
|     // add directory where plugins are stored
 | |
|     $smarty->addPluginsDir('./plugins_1');
 | |
| 
 | |
|     // add multiple directories where plugins are stored
 | |
|     $smarty->setPluginsDir(array(
 | |
|         './plugins_2',
 | |
|         './plugins_3',
 | |
|     ));
 | |
| 
 | |
|     // view the plugins dir chain
 | |
|     var_dump($smarty->getPluginsDir());
 | |
| 
 | |
|     // chaining of method calls
 | |
|     $smarty->setPluginsDir('./plugins')
 | |
|            ->addPluginsDir('./plugins_1')
 | |
|            ->addPluginsDir('./plugins_2');
 | |
| 
 | |
|     ?>
 | |
| 
 | |
|        
 | |
| 
 | |
| See also [`getPluginsDir()`](#api.get.plugins.dir),
 | |
| [`setPluginsDir()`](#api.set.plugins.dir) and
 | |
| [`$plugins_dir`](#variable.plugins.dir).
 |