Subsequent calls to simpleview::render() return null #15521
Unanswered
quasipickle
asked this question in
Q&A
Replies: 2 comments 2 replies
-
To limp past the problem I did just what was suggested back on the old forums. I moved the code that defined the Volt service to a function. I then called that function once when defining the "Volt" service, which is used by the "View" service, and I set up my "simpleview" service to call that function each time the simpleview service is invoked. I'm still looking for a real solution. |
Beta Was this translation helpful? Give feedback.
2 replies
-
i do it this way in phalcon 5
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Upgrading from 3.4 to 4.1.2. I'm using simpleView to render plain text and HTML output for email. I'm discovering, though, that only the first call to
simpleview::render()
displays anything. Subsequent calls return NULL. Any ideas why?Here's my example code:
The rendered result only gets output once.
Here is my
simpleview
service definition:And the
volt
service definition:Beta Was this translation helpful? Give feedback.
All reactions