We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Can i send data as POST data to an action using dispatcher.

By using Dispatcher i want to redirect to another action....is there way to send the params as POST data from the current action to the redirected action.

edited Dec '16
// Forward flow to another action in the current controller
// passing parameters
$this->dispatcher->forward(
    [
        "action" => "search",
        "params" => [1, 2, 3]
    ]
);

https://docs.phalcon.io/en/latest/reference/dispatching.html#forwarding-to-other-actions

In your case, do this:

$data = $this->request->getPost();

$this->dispatcher->forward(
    [
        "action" => "someAction",
        "params" => [$data]
    ]
);

As always i don't understand your questions, if you want modify or add somethind to post data then short answer is no - you can't change or add POST DATA which you shouldn't do anyway. But if it exists already then it will still exist in other action.

Ya...simply my question is whether we change/modify the POST data when dispatched to other action.. Anyways thanks for the clarification..!!

Just change logic of your app, if you need to change $_POST data then you are doing something wrong.