I have the following custom function, that checks if an email has a gmail.com account ... function check_email($mail) {
onto the next question about cakePHP :) In php, I am able to simulate a form submit by for example browsing to开发者_StackOverflow中文版 a url like
I have an action/view that is going to be used for reporting purposes, no saving of data involved. I want some form elements to be valid/invalid and if invalid, some errors to be shown.
I\'m using model based validation with CakePHP and if the field invalidates then the values aren\'t remem开发者_StackOverflow中文版bered in the form.
I\'ve been trying to display the data from different model in the same page but still can\'t get it working.
-- I have a serialized array开发者_开发问答 sent to another function in my application. Then I try to unserialize the data and present it in another place.
I have a Student model with a virtual field: var $virtualFields = array( \'full_name\' => \'CONCAT(Student.fname, \" \", Student.lname)\'
I\'m looking to implement http:开发者_如何学Python//ask.cakephp.org/markup/display/wiki and http://www.wikicreole.org/ into a CakePHP application to make it easier for users to write posts.
I\'m trying t开发者_运维百科o get validation error message from model and display this in json output.
I wrote a custom validation method inside my Submission model that basically allows a blank input field, but once someone enters something in it, it\'ll validate the data entered.