Apigility Error after installation and creation of first service of demoHow does Zend Framework 2 render partials inside a module?Unable to render template zf2ZF2 EdpModuleLayoutsHow to get a column in tableRendering Template in ZF2zend framework 2 setTemplate not work on host : error Unable to render template … resolver could not resolve to a fileApigility test returns page not found errorApigility API path is not correct when installed with XAMPPZend Framework, PhpRenderer unable to render template adds controllers into the template nameZend 2 : Unable to render template
Python 3 - simple temperature program
Seeing 2 very different execution plans for an UPDATE between test & prod environments
How can I get people to remember my character's gender?
Change in "can't be countered" wording
Will 700 more planes a day fly because of the Heathrow expansion?
How can internet speed be 10 times slower without a router than when using a router?
Should homeowners insurance cover the cost of the home?
Why does sound not move through a wall?
Which sphere is fastest?
Is an HNN extension of a virtually torsion-free group virtually torsion-free?
To kill a cuckoo
Can there be a single technologically advanced nation, in a continent full of non-technologically advanced nations?
Why did the Apollo 13 crew extend the LM landing gear?
Hostile Divisor Numbers
Is Soreness in Middle Knuckle of Fretting Hand Index Finger Normal for Beginners?
Are there terms in German for different skull shapes?
Importing a Part of the JSON
Where are the "shires" in the UK?
Prove that a definite integral is an infinite sum
Find magical solution to magical equation
What do I do if my advisor made a mistake?
How to pass hash as password to ssh server
Using Im[] and Re[] Correctly
What are the advantages of luxury car brands like Acura/Lexus over their sibling non-luxury brands Honda/Toyota?
Apigility Error after installation and creation of first service of demo
How does Zend Framework 2 render partials inside a module?Unable to render template zf2ZF2 EdpModuleLayoutsHow to get a column in tableRendering Template in ZF2zend framework 2 setTemplate not work on host : error Unable to render template … resolver could not resolve to a fileApigility test returns page not found errorApigility API path is not correct when installed with XAMPPZend Framework, PhpRenderer unable to render template adds controllers into the template nameZend 2 : Unable to render template
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
i have just installed Apigility and following the tutorials i have an error. When i try with Postman to call my service i get an error like this
ZendViewRendererPhpRenderer::render: Unable to render template "status/v1/rpc/ping/ping/ping"; resolver could not resolve to a file
My call on postman is like this.
http://localhost/demo/api/public/ping
How to solve this problem?
zend-framework2 apigility
add a comment |
i have just installed Apigility and following the tutorials i have an error. When i try with Postman to call my service i get an error like this
ZendViewRendererPhpRenderer::render: Unable to render template "status/v1/rpc/ping/ping/ping"; resolver could not resolve to a file
My call on postman is like this.
http://localhost/demo/api/public/ping
How to solve this problem?
zend-framework2 apigility
Soooo... what's the issue? Obviously something's not rendering. But, what is the config? What is the route? Why are you usingpublic/in the URL? Have you debugged your code, is your Controller executed? What is your response, a rendered view or should it be JSON (as you're using Apigility I'm assuming a JsonResponse), have you extended your Controller from the correct ZF provided Controller? Please read How to create a Minimal, Complete, and Verifiable example so we can properly help you out.
– rkeet
Mar 25 at 11:15
I simply follow the Getting Started of Apigility. apigility.org/documentation/intro/getting-started. I don't do anything else. I run it under xampp , right create the Api and the Fields. Right have "error" response if i set wrong content on the request.
– Massimiliano Oreto
Mar 25 at 11:38
So, if you go to your local address, do you see the admin panel? Have you used that to create your new "ping" ? Asking, because if you followed the example there, then you would have "Status" and not "ping" as the module name (though the service is ping). Have you created the Controller & Action? Please add all of this info in your question. Same goes for the Request and Response (use the Postman Console for the response).
– rkeet
Mar 25 at 12:39
Yes, i see the panel and i create the element as the example. At the end, i find a part of solution. If i don't use ViewModel on the Return but simple return the result, it works. So is the ViewModel construct that make the error. Maybe the example is not so clear. I must create Control and Action to work with the example. I'm wrong thinking the example si fine :) . So the question is solved
– Massimiliano Oreto
Mar 25 at 13:43
add a comment |
i have just installed Apigility and following the tutorials i have an error. When i try with Postman to call my service i get an error like this
ZendViewRendererPhpRenderer::render: Unable to render template "status/v1/rpc/ping/ping/ping"; resolver could not resolve to a file
My call on postman is like this.
http://localhost/demo/api/public/ping
How to solve this problem?
zend-framework2 apigility
i have just installed Apigility and following the tutorials i have an error. When i try with Postman to call my service i get an error like this
ZendViewRendererPhpRenderer::render: Unable to render template "status/v1/rpc/ping/ping/ping"; resolver could not resolve to a file
My call on postman is like this.
http://localhost/demo/api/public/ping
How to solve this problem?
zend-framework2 apigility
zend-framework2 apigility
edited Mar 23 at 13:07
Massimiliano Oreto
asked Mar 23 at 1:08
Massimiliano OretoMassimiliano Oreto
36
36
Soooo... what's the issue? Obviously something's not rendering. But, what is the config? What is the route? Why are you usingpublic/in the URL? Have you debugged your code, is your Controller executed? What is your response, a rendered view or should it be JSON (as you're using Apigility I'm assuming a JsonResponse), have you extended your Controller from the correct ZF provided Controller? Please read How to create a Minimal, Complete, and Verifiable example so we can properly help you out.
– rkeet
Mar 25 at 11:15
I simply follow the Getting Started of Apigility. apigility.org/documentation/intro/getting-started. I don't do anything else. I run it under xampp , right create the Api and the Fields. Right have "error" response if i set wrong content on the request.
– Massimiliano Oreto
Mar 25 at 11:38
So, if you go to your local address, do you see the admin panel? Have you used that to create your new "ping" ? Asking, because if you followed the example there, then you would have "Status" and not "ping" as the module name (though the service is ping). Have you created the Controller & Action? Please add all of this info in your question. Same goes for the Request and Response (use the Postman Console for the response).
– rkeet
Mar 25 at 12:39
Yes, i see the panel and i create the element as the example. At the end, i find a part of solution. If i don't use ViewModel on the Return but simple return the result, it works. So is the ViewModel construct that make the error. Maybe the example is not so clear. I must create Control and Action to work with the example. I'm wrong thinking the example si fine :) . So the question is solved
– Massimiliano Oreto
Mar 25 at 13:43
add a comment |
Soooo... what's the issue? Obviously something's not rendering. But, what is the config? What is the route? Why are you usingpublic/in the URL? Have you debugged your code, is your Controller executed? What is your response, a rendered view or should it be JSON (as you're using Apigility I'm assuming a JsonResponse), have you extended your Controller from the correct ZF provided Controller? Please read How to create a Minimal, Complete, and Verifiable example so we can properly help you out.
– rkeet
Mar 25 at 11:15
I simply follow the Getting Started of Apigility. apigility.org/documentation/intro/getting-started. I don't do anything else. I run it under xampp , right create the Api and the Fields. Right have "error" response if i set wrong content on the request.
– Massimiliano Oreto
Mar 25 at 11:38
So, if you go to your local address, do you see the admin panel? Have you used that to create your new "ping" ? Asking, because if you followed the example there, then you would have "Status" and not "ping" as the module name (though the service is ping). Have you created the Controller & Action? Please add all of this info in your question. Same goes for the Request and Response (use the Postman Console for the response).
– rkeet
Mar 25 at 12:39
Yes, i see the panel and i create the element as the example. At the end, i find a part of solution. If i don't use ViewModel on the Return but simple return the result, it works. So is the ViewModel construct that make the error. Maybe the example is not so clear. I must create Control and Action to work with the example. I'm wrong thinking the example si fine :) . So the question is solved
– Massimiliano Oreto
Mar 25 at 13:43
Soooo... what's the issue? Obviously something's not rendering. But, what is the config? What is the route? Why are you using
public/ in the URL? Have you debugged your code, is your Controller executed? What is your response, a rendered view or should it be JSON (as you're using Apigility I'm assuming a JsonResponse), have you extended your Controller from the correct ZF provided Controller? Please read How to create a Minimal, Complete, and Verifiable example so we can properly help you out.– rkeet
Mar 25 at 11:15
Soooo... what's the issue? Obviously something's not rendering. But, what is the config? What is the route? Why are you using
public/ in the URL? Have you debugged your code, is your Controller executed? What is your response, a rendered view or should it be JSON (as you're using Apigility I'm assuming a JsonResponse), have you extended your Controller from the correct ZF provided Controller? Please read How to create a Minimal, Complete, and Verifiable example so we can properly help you out.– rkeet
Mar 25 at 11:15
I simply follow the Getting Started of Apigility. apigility.org/documentation/intro/getting-started. I don't do anything else. I run it under xampp , right create the Api and the Fields. Right have "error" response if i set wrong content on the request.
– Massimiliano Oreto
Mar 25 at 11:38
I simply follow the Getting Started of Apigility. apigility.org/documentation/intro/getting-started. I don't do anything else. I run it under xampp , right create the Api and the Fields. Right have "error" response if i set wrong content on the request.
– Massimiliano Oreto
Mar 25 at 11:38
So, if you go to your local address, do you see the admin panel? Have you used that to create your new "ping" ? Asking, because if you followed the example there, then you would have "Status" and not "ping" as the module name (though the service is ping). Have you created the Controller & Action? Please add all of this info in your question. Same goes for the Request and Response (use the Postman Console for the response).
– rkeet
Mar 25 at 12:39
So, if you go to your local address, do you see the admin panel? Have you used that to create your new "ping" ? Asking, because if you followed the example there, then you would have "Status" and not "ping" as the module name (though the service is ping). Have you created the Controller & Action? Please add all of this info in your question. Same goes for the Request and Response (use the Postman Console for the response).
– rkeet
Mar 25 at 12:39
Yes, i see the panel and i create the element as the example. At the end, i find a part of solution. If i don't use ViewModel on the Return but simple return the result, it works. So is the ViewModel construct that make the error. Maybe the example is not so clear. I must create Control and Action to work with the example. I'm wrong thinking the example si fine :) . So the question is solved
– Massimiliano Oreto
Mar 25 at 13:43
Yes, i see the panel and i create the element as the example. At the end, i find a part of solution. If i don't use ViewModel on the Return but simple return the result, it works. So is the ViewModel construct that make the error. Maybe the example is not so clear. I must create Control and Action to work with the example. I'm wrong thinking the example si fine :) . So the question is solved
– Massimiliano Oreto
Mar 25 at 13:43
add a comment |
1 Answer
1
active
oldest
votes
For anyone have this problem, in the example of Apigility change the example code from this:
namespace StatusV1RpcPing;
use ZendMvcControllerAbstractActionController;
use ZFContentNegotiationViewModel;
class PingController extends AbstractActionController
public function pingAction()
return new ViewModel([
'ack' => time()
]);
to this
namespace StatusV1RpcPing;
use ZendMvcControllerAbstractActionController;
class PingController extends AbstractActionController
public function pingAction()
return ['ack' => time()];
Doing this the example is fine.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55309654%2fapigility-error-after-installation-and-creation-of-first-service-of-demo%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
For anyone have this problem, in the example of Apigility change the example code from this:
namespace StatusV1RpcPing;
use ZendMvcControllerAbstractActionController;
use ZFContentNegotiationViewModel;
class PingController extends AbstractActionController
public function pingAction()
return new ViewModel([
'ack' => time()
]);
to this
namespace StatusV1RpcPing;
use ZendMvcControllerAbstractActionController;
class PingController extends AbstractActionController
public function pingAction()
return ['ack' => time()];
Doing this the example is fine.
add a comment |
For anyone have this problem, in the example of Apigility change the example code from this:
namespace StatusV1RpcPing;
use ZendMvcControllerAbstractActionController;
use ZFContentNegotiationViewModel;
class PingController extends AbstractActionController
public function pingAction()
return new ViewModel([
'ack' => time()
]);
to this
namespace StatusV1RpcPing;
use ZendMvcControllerAbstractActionController;
class PingController extends AbstractActionController
public function pingAction()
return ['ack' => time()];
Doing this the example is fine.
add a comment |
For anyone have this problem, in the example of Apigility change the example code from this:
namespace StatusV1RpcPing;
use ZendMvcControllerAbstractActionController;
use ZFContentNegotiationViewModel;
class PingController extends AbstractActionController
public function pingAction()
return new ViewModel([
'ack' => time()
]);
to this
namespace StatusV1RpcPing;
use ZendMvcControllerAbstractActionController;
class PingController extends AbstractActionController
public function pingAction()
return ['ack' => time()];
Doing this the example is fine.
For anyone have this problem, in the example of Apigility change the example code from this:
namespace StatusV1RpcPing;
use ZendMvcControllerAbstractActionController;
use ZFContentNegotiationViewModel;
class PingController extends AbstractActionController
public function pingAction()
return new ViewModel([
'ack' => time()
]);
to this
namespace StatusV1RpcPing;
use ZendMvcControllerAbstractActionController;
class PingController extends AbstractActionController
public function pingAction()
return ['ack' => time()];
Doing this the example is fine.
answered Mar 25 at 13:48
Massimiliano OretoMassimiliano Oreto
36
36
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55309654%2fapigility-error-after-installation-and-creation-of-first-service-of-demo%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Soooo... what's the issue? Obviously something's not rendering. But, what is the config? What is the route? Why are you using
public/in the URL? Have you debugged your code, is your Controller executed? What is your response, a rendered view or should it be JSON (as you're using Apigility I'm assuming a JsonResponse), have you extended your Controller from the correct ZF provided Controller? Please read How to create a Minimal, Complete, and Verifiable example so we can properly help you out.– rkeet
Mar 25 at 11:15
I simply follow the Getting Started of Apigility. apigility.org/documentation/intro/getting-started. I don't do anything else. I run it under xampp , right create the Api and the Fields. Right have "error" response if i set wrong content on the request.
– Massimiliano Oreto
Mar 25 at 11:38
So, if you go to your local address, do you see the admin panel? Have you used that to create your new "ping" ? Asking, because if you followed the example there, then you would have "Status" and not "ping" as the module name (though the service is ping). Have you created the Controller & Action? Please add all of this info in your question. Same goes for the Request and Response (use the Postman Console for the response).
– rkeet
Mar 25 at 12:39
Yes, i see the panel and i create the element as the example. At the end, i find a part of solution. If i don't use ViewModel on the Return but simple return the result, it works. So is the ViewModel construct that make the error. Maybe the example is not so clear. I must create Control and Action to work with the example. I'm wrong thinking the example si fine :) . So the question is solved
– Massimiliano Oreto
Mar 25 at 13:43