> Just a guess, but are you passing the auto-generated password to the
> view when validation fails, so that it can be used in your form's
> action attribute when re-POSTing another attempt at a new password?
I don't think so. I am not doing anything. I am new to cakePHP. How
do I do that? he
On Mar 25, 3:41 pm, dubiousandrew wrote:
> If I enter an invalid password on the form, then it does validate it
> correctly and displays the error message but the new address becomes:
> example.com/user/resetPassword/45
> and it truncates the password parameter and then it no longer
> functions l
I have an edit form that takes in two parameters, an id of the user
and user password. It is designed for the first time log in so the
user is forced to create a password after following a link (that
contains the automatically generated password and their id).
For example: example.com/user/res
$this->Post->create($this->data);
if ($this->Post->validates()) {
// Data is good
}
else {
// Data contains errors
}
On May 15, 9:21 pm, Wojtek <[EMAIL PROTECTED]> wrote:
> I have a problem with validating data without saveing anything in
> database.
> For example this script work good
> if
I have a problem with validating data without saveing anything in
database.
For example this script work good
if ($this->Post->save($this->data)) {
$this->flash('blabla.','/posts');
}
but when I use some my function form is not validating
if ($this->Post->myFuncti
This:
class UserAppModel extends AppModel{
should be:
class UserModel extends AppModel{
On Jan 30, 2008 8:04 PM, Pq2son2 <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> First Thanks, I'm a newbaby andI read a lot of manuals and the API but
> I don't found the reason because the CakePHP (ve
Hi,
First Thanks, I'm a newbaby andI read a lot of manuals and the API but
I don't found the reason because the CakePHP (version 1.2.0.6311)
doesn't validate any parameter. Here I write the simple exemple that I
try for test the validation in this framework.
Model:
array(
On 8/1/07, Pablo Viojo <[EMAIL PROTECTED]> wrote:
>
> Tryarray('rule' => array('alphaNumeric')) (note => instead of ,)
Ah... that fix it. What a miss :P
Thanks Pablo !
>
> --
> Pablo Viojo
> [EMAIL PROTECTED]
> http://pviojo.net
>
>
Regars,
Feris
http://www.phi-integration.com
--~--~
Tryarray('rule' => array('alphaNumeric')) (note => instead of ,)
--
Pablo Viojo
[EMAIL PROTECTED]
http://pviojo.net
On 8/1/07, Feris Thia <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> I've read about data validation in CakePHP 1.2 version and I change my
> model $validate var as below :
>
>
Hi All,
I've read about data validation in CakePHP 1.2 version and I change my
model $validate var as below :
var $validate = array(
'username' => array('rule', array('alphaNumeric')),
'password' => array('r
this is the code:
/***MODEL***/
class Note extends AppModel
{
var $name = 'Note';
var $validate = array(
'title' => VALID_NOT_EMPTY,
'body' => VALID_NOT_EMPTY,
);
}
/VIEW***/
Add Note
" method=
On 3/29/07, christianandradet <[EMAIL PROTECTED]> wrote:
>
>
> hi i am trying to do the validation that this page teaches:
> http://manual.cakephp.org/chapter/validation
> it works but the messages do not appear:
> tagErrorMsg('Post/title', 'Title is required.')?>
> I do not know whatis the problem
Do you have your model set up correctly to handle data validation?
On Mar 29, 12:49 pm, "christianandradet" <[EMAIL PROTECTED]>
wrote:
> hi i am trying to do the validation that this page
> teaches:http://manual.cakephp.org/chapter/validation
> it works but the messages do not appear:
> tagError
hi i am trying to do the validation that this page teaches:
http://manual.cakephp.org/chapter/validation
it works but the messages do not appear:
tagErrorMsg('Post/title', 'Title is required.')?>
I do not know whatis the problem, maybe it's something that needs to
be configured,
Please help
Thanks
14 matches
Mail list logo