Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Cakephp api POST request , saving data without validation

$validator
    ->requirePresence('title', 'create') // required on create, optional on update
    ->scalar('title')
    ->notEmptyString('title');
 
PREVIOUS NEXT
Tagged: #Cakephp #api #POST #request #saving #data #validation
ADD COMMENT
Topic
Name
8+5 =