Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

Commit 99a59ba

Browse files
committed
✨ add formData method as alias to set_data
Signed-off-by: otengkwame <[email protected]>
1 parent ceccaa9 commit 99a59ba

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

framework/libraries/Form_validation.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,19 @@ public function set_data(array $data)
267267

268268
return $this;
269269
}
270+
271+
// --------------------------------------------------------------------
272+
273+
/**
274+
* Alias to the above method
275+
*
276+
* @param array $data
277+
* @return CI_Form_validation
278+
*/
279+
public function formData(array $data)
280+
{
281+
return $this->set_data($data);
282+
}
270283

271284
// --------------------------------------------------------------------
272285

0 commit comments

Comments
 (0)