CakePhp – how to disable validation

Well, first you must know that almost all stuff in cakePHP is stored in arrays, from top-develop side of view.

So basic way to disable validation on some model is very simple :

  1. $this->Model->validate = array(); // Stop validation on the model

Happy coding ?

3 سال پیش

دیدگاهتان را بنویسید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *

This site uses Akismet to reduce spam. Learn how your comment data is processed.