'username' = array(
'notEmpty' = array(
'rule' = 'notEmpty',
'message' = 'This field cannot be blank',
'last' = true
),
'username' = array(
'rule' = 'isUnique',
On Dec 18, 2010, at 03:01, John Maxim wrote:
'username' = array(
'notEmpty' = array(
'rule' = 'notEmpty',
'message' = 'This field cannot be blank',
'last' = true
),
'username' =
Hi Thanks very much it works like a charm.
However, I have a question, please take a look at the code below:
'email' = array(
'notEmpty' = array(
'rule' = 'notEmpty',
'message' = 'This field cannot be blank',
I think I understand now. Is it because the first name is the array
name, and the following is the first array key ? therefore, subsequent
is second keyand on... ?
On Dec 18, 6:29 pm, John Maxim goog...@gmail.com wrote:
Hi Thanks very much it works like a charm.
However, I have a
On Dec 18, 2010, at 04:36, John Maxim wrote:
On Dec 18, 6:29 pm, John Maxim wrote:
It works with the same array key 'email' ? I tried, it works. May I
know why ?
I think I understand now. Is it because the first name is the array
name, and the following is the first array key ?
Yes Ryan I understand, the clearest explanation I can ever find.
Thanks!
On Dec 18, 7:03 pm, Ryan Schmidt google-2...@ryandesign.com wrote:
On Dec 18, 2010, at 04:36, John Maxim wrote:
On Dec 18, 6:29 pm, John Maxim wrote:
It works with the same array key 'email' ? I tried, it works. May I
Why not just extend the View Class itself and add in all the
functionality to that class, then you don't clutter up the global
namespace and you keep your view files tidy as well then.
create /app/views/app.php
?php
class AppView extends View{
function getLink($x){
return
Sounds like a server with a Plesk control panel?
There is an option to serve both standard and SSL pages from the same
directory. If you can't set that, you'll have to duplicate your code in both
httpdocs and httpsdocs folders. Now, that perhaps might have some
consequences in regards to cache
I am trying to design the form like this.
http://skoizumi.com/cakephp/complicated-form.gif
you can add categories to a survey, add questions to a category, and
add selection values to a question.
I saw some of documents where you can define the array of records by
using classname and index
@ryan
a while ago I proposed in the cake tickets that last=true should be
the default value because it makes more sense.
i hope it will be this way in 2.0^^
On 18 Dez., 12:21, John Maxim goog...@gmail.com wrote:
Yes Ryan I understand, the clearest explanation I can ever find.
Thanks!
On Dec
Hello.
I have the following questions.
Let's suppose I have, say, a person model which has an id, a name and a
boolean that tells whether this person is native from a specific country or
not (for example, native from Argentina or not).
In the case of being native, he has a national document,
So I added that to the tasks_controller.php:
function index() {
$this-Task-recursive = 1;
$this-set('tasks', $this-paginate());
$projects = $this-Task-Project-find('list'); // HERE
}
To test I added ?php debug($projects); ? to
On Dec 18, 2010, at 09:18, Steve Mallett wrote:
So I added that to the tasks_controller.php:
function index() {
$this-Task-recursive = 1;
$this-set('tasks', $this-paginate());
$projects = $this-Task-Project-find('list'); // HERE
}
Ok, you
On 18 Dec 2010, at 15:18, Steve Mallett wrote:
So I added that to the tasks_controller.php:
function index() {
$this-Task-recursive = 1;
$this-set('tasks', $this-paginate());
$projects = $this-Task-Project-find('list'); // HERE
}
To test I
Yep Plesk. I did see that option and did set it to use same directory and
problem solved!
Thanks.
Dave
From: LightDot [mailto:light...@gmail.com]
Sent: December-18-10 9:10 AM
To: cake-php@googlegroups.com
Subject: Re: SSL help
Sounds like a server with a Plesk control panel?
If you called the virtual field 'name,' wouldn't the automagic take
care of everything else (the select box) from there?
On Dec 17, 8:26 pm, cricket zijn.digi...@gmail.com wrote:
On Fri, Dec 17, 2010 at 6:25 PM, eldorado2768
davidbrotman2...@gmail.com wrote:
I am having a lot of difficulty
On Sat, Dec 18, 2010 at 1:01 AM, ionatan ipiona...@gmail.com wrote:
And in what controller should I use this paginator?! I'm still a bit
confuse.
For the third time, it could be in either. However, from the way that
you described the requirement for doing this, it probably makes more
sense to
On Sat, Dec 18, 2010 at 2:47 AM, John Maxim goog...@gmail.com wrote:
Thanks Solved. But I have a question, with that said, 1.3 version and
the newer--it all seem much easier than the older version, seems like
less codes required...
Or is it I'm missing something ?
All I have to do is just
I'm currently setting up a site and and being made to use a host which
has Zeus rather than Apache. They provide a very basic example of how
to convert an htaccess file to a 'rewrite.script' file, but don't say
much about what to do with the file once you have it, and don't
provide much in the
On Sat, Dec 18, 2010 at 7:48 AM, cake-learner sh.koiz...@gmail.com wrote:
I am trying to design the form like this.
http://skoizumi.com/cakephp/complicated-form.gif
you can add categories to a survey, add questions to a category, and
add selection values to a question.
I saw some of
On Fri, Dec 17, 2010 at 11:20 PM, Andr?s Manikis
andresmani...@gmail.com wrote:
Hello.
I have the following questions.
Let's suppose I have, say, a person model which has an id, a name and a
boolean that tells whether this person is native from a specific country or
not (for example, native
Hello,
I am very very very new on CakePHP.
I tried to do a blog using the CakePHP. I did it :).
but I found a problem:
when I want to use $this-Session-setFlash(Write whatever);
it doesn't work.
I don't see the sentences that I write inside setFlash. They doesn't
occur when I run the
Make sure you have declared both the Session Component and the Session Helper
in your app_controller. setFlash only places the message into the session. To
show it, use echo $this-Session-flash() in a view, element or layout.
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
and if you do use beforeValidate
dont return false!
you need to return true in order to validate the other fields as well
cake will automatically stop after the validation as soon as one field
invalidates
so there is no reason to abort before that.
On 18 Dez., 20:00, cricket
Perhaps, but I don't know why you would want to.
On Nov 22, 2010 10:55 AM, Kevin Davis kevindavis...@gmail.com wrote:
Hi there,
Can CakePHP work on IIS??
Check out the new CakePHP Questions site http://cakeqs.org and help others
with their CakePHP related questions.
You received this
Thanks guys, I need more time to improve my php/cakephp skills. Like I
said earlier it's not my talent. I have to do this because of a
project. Thanks for teaching !
On Dec 19, 7:12 am, euromark dereurom...@googlemail.com wrote:
and if you do use beforeValidate
dont return false!
you need to
Modified function code: (NEW)
function register()
{
if (!empty($this-data))
{
$this-data['User']['password'] = md5($this-data['User']
['password']);
if ($this-User-save($this-data))
First, why you are not using Auth component? this will make your life a lot
easier!
Second, what are your validation rules?
On Sun, Dec 19, 2010 at 8:12 AM, John Maxim goog...@gmail.com wrote:
Modified function code: (NEW)
function register()
{
if
You said:
Make sure you have declared both the Session Component and the
Session Helper in your app_controller.
How to do that ?!?!
What shill I do exactly Jeremy ?
On Dec 19, 12:27 am, Jeremy Burns | Class Outfit
jeremybu...@classoutfit.com wrote:
Make sure you have declared both the Session
What are Auth component ?
My validation rules are here:
http://groups.google.com/group/cake-php/browse_thread/thread/85c3f1b39c7a1ed9
On Dec 19, 2:37 pm, Ma'moon phpir...@gmail.com wrote:
First, why you are not using Auth component? this will make your life a lot
easier!
Second, what are
Better to use Cakephp Association.
On Fri, Dec 17, 2010 at 9:17 PM, Stephen step...@ninjacodermonkey.co.ukwrote:
I find the best way to deal with User hasOne Profile to find a users own
profile is to check the $this-Auth-user('id') against Profile.user_id;
Other than that, you'd need to find
31 matches
Mail list logo