cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

Documentations inaccuracy

Open Cmssspl opened this issue 13 years ago • 1 comments

https://phalcon-php-framework-documentation.readthedocs.org/en/latest/api/Phalcon_Mvc_View.html?highlight=set%20view%20name

Title / code:

public setParamToView (string $key, mixed $value) $this->view->setParamToView('products', $products);

Is Ok, next:

public setVars (array $params) $this->view->setParamToView(array('products' => $products)); Fix: setParamToView to setVars

and

public setVar (string $key, mixed $value) $this->view->setParamToView('products', $products); Fix setParamToView to setVar

;-)

Cmssspl avatar Jan 23 '13 09:01 Cmssspl

This will be fixed in 0.9.0 docs, thanks

ghost avatar Jan 25 '13 22:01 ghost