diff --git a/user_guide_src/source/outgoing/view_decorators.rst b/user_guide_src/source/outgoing/view_decorators.rst index 83f3154f54c5..f0b2239b0f65 100644 --- a/user_guide_src/source/outgoing/view_decorators.rst +++ b/user_guide_src/source/outgoing/view_decorators.rst @@ -9,7 +9,7 @@ prior to being cached, and allows you to apply custom functionality to your view Creating Decorators ******************* -Creating your own view decorators requires creating a new class that implements ``CodeIgniter\Views\ViewDecoratorInterface``. +Creating your own view decorators requires creating a new class that implements ``CodeIgniter\View\ViewDecoratorInterface``. This requires a single method that takes the generated HTML string, performs any modifications on it, and returns the resulting HTML. diff --git a/user_guide_src/source/outgoing/view_decorators/001.php b/user_guide_src/source/outgoing/view_decorators/001.php index be05e93b5818..bdde6a19060c 100644 --- a/user_guide_src/source/outgoing/view_decorators/001.php +++ b/user_guide_src/source/outgoing/view_decorators/001.php @@ -2,7 +2,7 @@ namespace App\Views\Decorators; -use CodeIgniter\Views\ViewDecoratorInterface; +use CodeIgniter\View\ViewDecoratorInterface; class MyDecorator implements ViewDecoratorInterface {