This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function set_custom_style($names, $paths) | |
{ | |
$paths = (is_string($paths)) ? array($paths) : $paths; | |
$names = (is_string($names)) ? array($names) : $names; | |
// Set as __main__ namespace | |
$this->twig->getLoader()->setPaths($paths); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parameters: | |
- tables: | |
- %core.table_prefix%my_first_table | |
- %core.table_prefix%my_second_table | |
and maybe (but i'm not sure): | |
parameters: | |
- tables: | |
- [ table1, %core.table_prefix%my_first_table ] | |
- [ table2, %core.table_prefix%my_second_table ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* | |
* @package phpBB3 | |
* @copyright (c) 2011 phpBB Group | |
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 | |
* | |
*/ | |
namespace phpbb\di; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$configuration = new \ProxyManager\Configuration(); | |
$configuration->setProxiesTargetDir($this->phpbb_root_path . '/cache'); | |
spl_autoload_register($configuration->getProxyAutoloader()); | |
$factory = new \ProxyManager\Factory\LazyLoadingValueHolderFactory($configuration); | |
$twig = $this->twig; | |
$lexer = $factory->createProxy( | |
'phpbb\template\twig\lexer', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a:8:{s:5:"token";s:6:"3997eb";s:6:"parent";N;s:8:"children";a:0:{}s:4:"data";a:6:{s:6:"config";C:62:"Symfony\Component\HttpKernel\DataCollector\ConfigDataCollector":420:{a:16:{s:8:"app_name";N;s:11:"app_version";N;s:5:"token";s:6:"3997eb";s:15:"symfony_version";s:6:"2.3.12";s:4:"name";s:3:"n/a";s:3:"env";s:3:"n/a";s:5:"debug";s:3:"n/a";s:11:"php_version";s:6:"5.5.12";s:14:"xdebug_enabled";b:1;s:14:"eaccel_enabled";b:0;s:11:"apc_enabled";b:0;s:14:"xcache_enabled";b:0;s:16:"wincache_enabled";b:0;s:20:"zend_opcache_enabled";b:0;s:7:"bundles";a:0:{}s:9:"sapi_name";s:14:"apache2handler";}}s:6:"events";C:61:"Symfony\Component\HttpKernel\DataCollector\EventDataCollector":3653:{a:2:{s:16:"called_listeners";a:5:{s:91:"kernel.request.Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelRequest";a:7:{s:5:"event";s:14:"kernel.request";s:4:"type";s:6:"Method";s:5:"class";s:59:"Symfony\Component\HttpKernel\EventListener\ProfilerListener";s:6:"method";s:15:"onKernelRequest";s:4:"file";s:136:"C:\Users\Tristan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mapping: | |
- "logical name" (the one used by the backend) used as a fallback if there isn't any mapping or if the mapped file isn't found | |
- done by namespace: | |
- The global namespace (__main__ is always a copy of an existing namepsace => the mapping is also copied) | |
- The 'core' namespace uses the mapping of the user style | |
- The '<style_name>' namespace uses the mapping of the style | |
- The '<vendor_ext_name>' namespace uses the mapping of the user style | |
- the mapping of a style is the combination of its mapping file and of all its parents (the oldest parent is merged first, so the more specific can override it) | |
Namespaces: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
As you probably know, the 3.1 brings radical changes to the whole system of phpBB MOD. In fact what we call a MOD today no longer exist and will be replaced by a new extension system based on a simple concept: | |
[list][*][b][color=#008000]The extensions do not change the code of phpBB [/color] [/b], they are located in a separate folder (one per extension) and use a number of mechanisms to interact with the heart of phpBB.[/list] | |
But a new system that uses any new mechanisms can be difficult to understand, so I will try to present the general architecture of an extension and then explain how the different mechanisms and concepts used by the function extensions. | |
[list=1] | |
[*] [size=150] [color=#800080] [b] Templates [/b] [/color] [/size] | |
As you may know, with the 3.1 template engine change: instead of using a template engine developed internally used [b] Twig [/b](http://twig.sensiolabs.org) but actually it changes what? | |
And ben [u] it does not change anything [/u]. Of course it is possible to use all the feat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tab > catégorie > module | |
module : | |
class: | |
- title | |
- route | |
- perms (or expression language with auth and other info available ?) | |
- handle() | |
definition: | |
- tag : module => <category_name> && order |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/phpBB/language/en/acp/attachments.php b/phpBB/language/en/acp/attachments.php | |
index cf2f0a4..5ff904f 100644 | |
--- a/phpBB/language/en/acp/attachments.php | |
+++ b/phpBB/language/en/acp/attachments.php | |
@@ -70,9 +70,6 @@ $lang = array_merge($lang, array( | |
'CAT_FLASH_FILES' => 'Flash files', | |
'CAT_IMAGES' => 'Images', | |
- 'CAT_QUICKTIME_FILES' => 'Quicktime media files', | |
- 'CAT_RM_FILES' => 'RealMedia media files', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/phpBB/styles/prosilver/style.cfg b/phpBB/styles/prosilver/style.cfg | |
index 13433c3..33547c3 100644 | |
--- a/phpBB/styles/prosilver/style.cfg | |
+++ b/phpBB/styles/prosilver/style.cfg | |
@@ -21,8 +21,8 @@ | |
# General Information about this style | |
name = prosilver | |
copyright = © phpBB Limited, 2007 | |
-style_version = 3.1.6 | |
-phpbb_version = 3.1.6 |
OlderNewer