Welcome Guest, Not a member yet? Register   Sign In
Question on include() in a module [newbie!!]
#6

(This post was last modified: 04-19-2025, 09:17 PM by grimpirate.)

Assuming you followed the appropriate autoloading namespacing as per here the code you wrote works as expected.
PHP Code:
<?= $this->include("Admin\Views\Users\\form"?>
Implies that you're escaping \V (is not an escape sequence) you're escaping \U (is not an escape sequence) and you're escaping \\ (is an escape sequence and is functionally equivalent in a double-quoted string to a single backslash). You should instead use single quoted strings:
PHP Code:
<?= $this->include('Admin\Views\Users\form'?>
Double quoted strings behave differently than single quoted strings when using backslash.
Reply


Messages In This Thread
RE: Question on include() in a module [newbie!!] - by grimpirate - 04-19-2025, 09:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB