function getSomething($pId) { $this->StoreProcedure->setPlaceHolder('TABLE_PREFIX','PRE_'); $this->StoreProcedure->addData('Name'); $this->StoreProcedure->addData($pId); $this->set("someVariable",$this->Table->query($this->StoreProcedure->getSQLfrom('selSomething'))); }