mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Tabs/formatting, and fix of example.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@320626 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
5684e2cbbc
commit
8319273f32
1 changed files with 12 additions and 10 deletions
|
@ -51,16 +51,18 @@
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
class Bootstrap extends Yaf_Bootstrap_Abstract{
|
||||
public function _initPlugin(Yaf_Dispatcher $dispatcher) {
|
||||
/**
|
||||
* Yaf assumes plugin scripts under [application.directory] . "/plugins"
|
||||
* for this case, it will be:
|
||||
* [application.directory] . "/plugins/" . "User" . [application.ext]
|
||||
*/
|
||||
$user = new UserPlugin();
|
||||
$dispatcher->registerPlugin($user);
|
||||
}
|
||||
class Bootstrap extends Yaf_Bootstrap_Abstract {
|
||||
public function _initPlugin(Yaf_Dispatcher $dispatcher) {
|
||||
/**
|
||||
* Yaf assumes plugin scripts under [application.directory] . "/plugins"
|
||||
* for this case, it will be:
|
||||
* [application.directory] . "/plugins/" . "User" . [application.ext]
|
||||
*/
|
||||
$user = new UserPlugin();
|
||||
$dispatcher->registerPlugin($user);
|
||||
}
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
|
|
Loading…
Reference in a new issue