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

Issue on view

Sometimes On view i got error like

Wrong number of parameters but sometimes working fine

On Controller : public function indexAction() {

    $data=TblTest::find();
    $this->view->setVar("breadcrumb", "Test Page");
    $this->view->setVar("data", $data);
}

you can also asign a value directly and this shouldn't give you any more errors

$this->view->breadcrumb = "test page";


3.0k
Accepted
answer

Thanks for comment bro, it seem happen because i upgrade phalcon version (2.0) .

On that version i cannot load 2 query on controller