Okie i found the solution please refer to
http://www.php.net/manual/en/language.operators.errorcontrol.php#98895.
You can hack the cake_log.php handleError method, or create a own
error handler in bootstrap.php
Hope this help.
On Dec 20, 10:46 pm, BrendonKoz wrote:
> Oh. I didn't realize I could
Oh. I didn't realize I could move that in to my app; I figured only
app_* and cake view/layout files could be moved to the app. That makes
things much easier. Thanks, euromark!
On Dec 16, 10:25 am, euromark wrote:
> you dont have to :)
> just copy it into your /app/views/ folder
> cake will use t
you dont have to :)
just copy it into your /app/views/ folder
cake will use that file then from now on..
On 16 Dez., 15:35, BrendonKoz wrote:
> Although I've been tempted to, I don't personally like modifying the
> core unless I also try to fix the problem that made me want to modify
> it in the
Although I've been tempted to, I don't personally like modifying the
core unless I also try to fix the problem that made me want to modify
it in the first place (and then submit a ticket). I did a search on
the issue, and it seems that CakePHP is not the only "framework" or
project to suffer from t
i had my log files filled up with that crap as well
just comment those lines out - worked for me :)
On 15 Dez., 18:18, BrendonKoz wrote:
> I would like to trace down the issue I'm about to explain, but I
> unfortunately am not sure where to look. Any advice or help would be
> appreciated.
>
> I a
I would like to trace down the issue I'm about to explain, but I
unfortunately am not sure where to look. Any advice or help would be
appreciated.
I am continually getting NOTICE level error messages reported to
debug.log from media.php:
2010-12-15 11:04:50 Notice: Notice (8): ob_flush() [ref.outc
I have a typo error here. I am unable to access $this->params['url']['q']
not $this->params['url']['a']
Regards,
Shashidhar.G
On Fri, Nov 12, 2010 at 2:02 AM, Shashidhar Gampa wrote:
> Hello All,
> I have a situation with requstAction(
Hello All,
I have a situation with requstAction() that I am not sure weather it is a
bug or if its behaviour is such.
I have router rules set in my application
http://host/search/?q=xyz
This is routed tot ControllerA action searchDB. inside the method I am
able to access $this->par
to any other lookup (libs, component, ...)
and the above call to find my app vendor stuff.
Is this a cake1.3 bug?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Gr
1.3.4
I'm trying to dynamically set Auth's redirect route but something's
not right. The controller action's route:
Router::connect(
'/galleries/:year/:month/:day/:slug',
array(
'controller' => 'galleries',
'action' => 'slug'
),
array(
'year' => '2[0-9
Don't use the Html->tag method to make inputs. It won't do it
correctly, as it wasn't intended for this. Use the FormHelper, its
much better at building input tags.
-Mark
On Oct 4, 6:20 am, Adael wrote:
> Hi all, in HtmlHelper::tag() (line 728) we found this code:
>
> if ($text === null) {
>
Hi all, in HtmlHelper::tag() (line 728) we found this code:
if ($text === null) {
$tag = 'tagstart';
} else {
$tag = 'tag';
}
So, if you do the call
echo $html->tag('input', 'name', 'value');
It's output: name
I except:
Other way:
echo $html->tag('input', 'name', arra
; $this->assertFalse($this->Post->validates()); // Fails!
> }
>
> function testShouldNotBeValidWithNullName() {
> $this->Post->create(array('name' => null));
> $this->assertFalse($this->Post->validates());
> }
>
> I exp
clearly doesn't seem to be able
>> to come even close to the experience of RoR. Any yes, I know CakePHP
>> isn't RoR, and yes, I could switch (well actually, I can't)... Just my
>> 2 c€nts...
>>
>>
>>
>> On Thu, Sep 30, 2010 at 2:58 PM
the experience of RoR. Any yes, I know CakePHP
> isn't RoR, and yes, I could switch (well actually, I can't)... Just my
> 2 c€nts...
>
>
>
> On Thu, Sep 30, 2010 at 2:58 PM, euromark wrote:
> > actually it is NOT a bug
> > although many are not aware of that
isn't RoR, and yes, I could switch (well actually, I can't)... Just my
2 c€nts...
On Thu, Sep 30, 2010 at 2:58 PM, euromark wrote:
> actually it is NOT a bug
> although many are not aware of that behavior :)
>
> you need to make sure that the field is passed to the vali
actually it is NOT a bug
although many are not aware of that behavior :)
you need to make sure that the field is passed to the validation
otherwise it will be ignored
@see http://www.dereuromark.de/2010/09/21/saving-model-data-and-security/
On 30 Sep., 14:52, psybear83 wrote:
> Hi everyb
Fails!
}
function testShouldNotBeValidWithNullName() {
$this->Post->create(array('name' => null));
$this->assertFalse($this->Post->validates());
}
I expect all three of them to work, but the 2nd one fails! So why does
it validate when there truly is no va
d. (sorry of my english)
and thats ok, works fine.
And now when i change bod in index.ctp. to zof, cake create link to
show like:
http://localhost/kejk-1.3.4-0/categories/show/id:12/bod:zof
routing not match to writings because zof not match to regex .{4},
and click on it link will cause redir
Did you find the answer to this? I'm experiencing similar problems
with the lft and rght value in the ARO table sometimes being zero. I
can't reproduce this problem though, so it's hard to fix.
Vincent
On Sep 6, 4:31 pm, euromark wrote:
> What the ... is the acl behavior doing?
>
> The user just
'foreignKey' => 'foreign_id',
'conditions' => array('Icon.class' => 'Line', 'Icon.type' =>
'icon'),
'dependent' => true,
),
);
}
?>
Att,
Henr
d some friends, I concluded that I found a bug in polymorphic
> Behaviour.
>
> My Scenario:
>
> The Picture is my Polymorphic Model:
> Picture model: http://bin.cakephp.org/view/1085677267
>
> Family hasOne Banner (Banner is an alias to Picture that is polymorphic)
> Family h
Hello everybody!
After a whole day trying to make my application work correctly, asking for
help on IRC and some friends, I concluded that I found a bug in polymorphic
Behaviour.
My Scenario:
The Picture is my Polymorphic Model:
Picture model: http://bin.cakephp.org/view/1085677267
Family
What the ... is the acl behavior doing?
The user just updates his password (nothing else)
after that he cannot log in anymore because the aro/aco table gets
messed up really bad
Cake1.3.3 HEAD
Any ideas?
23 SELECT COUNT(*) AS `count` FROM `users` AS `User` WHERE
`User`.`id` = '499949c6-
r network traffic and multiple sql calls, but speed. The
> first call takes 140ms with the data I have. The joined one takes
> 74ms.
>
> This gets even worse with containable. Instead of joining the group,
> it SELECTS every group by id for every user. It's generating like 70
&g
r network traffic and multiple sql calls, but speed. The
> first call takes 140ms with the data I have. The joined one takes
> 74ms.
>
> This gets even worse with containable. Instead of joining the group,
> it SELECTS every group by id for every user. It's generating like 70
&g
all takes 140ms with the data I have. The joined one takes
74ms.
This gets even worse with containable. Instead of joining the group,
it SELECTS every group by id for every user. It's generating like 70
queries instead of one join.
I want to make sure i'm not missing something before
CakePHP 1.3.3 was unable to connect to postgres 8.2.14 server (on
CentOS 5.5 ) even though all the configuration was correct.
I fixed this editing this file: /cake/libs/model/datasources/dbo/
dbo_postgres.php
inside the function connect() remove host and port parameters within
$conn variable.
As for the quotes thing - i meant sending the slash along with it, so
the rendered, parse, printed, whatever text would _look_ like
onclick="function(\"xxx\");" more or less a work around
I agree that it needs to be something specific.. I think escape needs
to be mixed - that way it would be ba
Of course i mean at my first question: ...different options for title/
selectoptions and for attributes in future versions...
On aug. 6, 13:21, drbuzasi wrote:
> I think that's not a problem of php escaping. Using double quotes in
> javascript isn't a good idea since the code generated (assuming
I think that's not a problem of php escaping. Using double quotes in
javascript isn't a good idea since the code generated (assuming it
won't be escaped) would be
... onChange="functon("yyy")"...
which is meanless because of the wrapping double quotes.
IMHO the problem is in form.php and helper.ph
Does changing your quote pattern help?
echo $this->Form->select('field', array( '1' => '' , '2' =>
'' ),
null, array('onChange' =>
'function(\"yyy\")'));
\" (because php isn't escaping it) will get sent to the output, which
_should_ render
onclick="funct
If a button is needed that is labeled as '' and has an
'onClick' attribute with some javascript containing a text parameter
the code can't be created since when 'escape' is set to false in
options (button default) the script is OK but buttons label will not
be encoded.
Setting 'escape' to true HTML
thanks i will check this because i used the alternate mysql_insert_id()
2010/7/29 Norman Paniagua
> when you save a record the id is stored in the model.. like
>
> $this->Model->save()
> $this->Model->id() // Get the current ID of the inserted record
> ---
>
> Norman Paniagua
>
>
> 2010/7/28 Dav
when you save a record the id is stored in the model.. like
$this->Model->save()
$this->Model->id() // Get the current ID of the inserted record
---
Norman Paniagua
2010/7/28 Davor Ilic
> i can´t use getLastInsertID( )<#12a1bce91255532a_method-ModelgetLastInsertID>
> does
> anybody use this
i can´t use getLastInsertID( ) <#method-ModelgetLastInsertID> does anybody
use this and it works for him?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"C
; >http://cakephp.lighthouseapp.com/dashboard
>
> >> Ok, I added
> >> it:http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/848-s...
>
> >> Erik S.http://twitter.com/erikstarck
>
> > Cricket: I think you've misled Erik to think he has a bug.
>
dashboard
>>
>> Ok, I added
>> it:http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/848-s...
>>
>> Erik S.http://twitter.com/erikstarck
>
> Cricket: I think you've misled Erik to think he has a bug.
The point was that's the place to report bugs. As in: more like
p/tickets/848-s...
>
> Erik S.http://twitter.com/erikstarck
Cricket: I think you've misled Erik to think he has a bug.
"I've executed the individual test case: libs/model/behaviors/
tree.test.php before [] the change and it passes []".
Means to me that there's no reas
On Tue, Jun 22, 2010 at 6:56 PM, cricket wrote:
> Interesting. You should post a ticket here:
>
> http://cakephp.lighthouseapp.com/dashboard
Ok, I added it:
http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/848-save-bug-in-treebehaviorrecover
Erik S.
http://twitter.com/e
Interesting. You should post a ticket here:
http://cakephp.lighthouseapp.com/dashboard
On Tue, Jun 22, 2010 at 9:22 AM, Erik Starck wrote:
> Hi group!
> My first post to this list so here goes...
>
> I may have found a bug in the recover method in Tree.php, cake 1.3.2.
> I was
Hi group!
My first post to this list so here goes...
I may have found a bug in the recover method in Tree.php, cake 1.3.2.
I was getting an SQL error when calling recover:
SQL Error: 1062: Duplicate entry '20' for key 'PRIMARY'
Here is an example of the SQL:
UPDATE `categ
t;
> The case is, requestAction() method does not able to call actions
> start with _ in its name. Does it a bug?
>
> If it is not a bug, so how could I able to request a private action or
> _ starting action ?
You can't call a private or protected method from outside the cla
start with _ in its name. Does it a bug?
If it is not a bug, so how could I able to request a private action or
_ starting action ?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscri
The $modelClass is only created when you do not define the $uses.
On Apr 20, 8:45 am, Leonid Mamchenkov wrote:
> Hi,
>
> On Tue, Apr 20, 2010 at 18:04, jharris wrote:
>
> > Since you're using multiple models in your controller (the $uses var),
> > I think Cake is just getting confused. On constr
Hi,
On Tue, Apr 20, 2010 at 18:04, jharris wrote:
>
> Since you're using multiple models in your controller (the $uses var),
> I think Cake is just getting confused. On construct, it probably pulls
> the model name from the controller name (like how you used
> Inflector::singularize()) before it
Since you're using multiple models in your controller (the $uses var),
I think Cake is just getting confused. On construct, it probably pulls
the model name from the controller name (like how you used
Inflector::singularize()) before it loads models. Then, in the actions
it probably pulls the first
Hello,
I came across a weird behaviour that I cannot figure out. The API
documentation for Controller class (http://api.cakephp.org/class/
controller) describes the modelClass property in the following way:
"This controller's primary model class name, the
Inflector::classify()'ed version of the
Hi, actually it is not $html->link() but $form->input()
echo $form->input('ERItem.value', array('type'=>$type,
'options' =>
$ERItemsOptions,
'div' =>
false,
Copy and paste your $html->link() call for us to see please.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send em
> > How can I escape double quotes when using form helper? Imagine we have
> > this value with double quotes stored in database: 15" - 16"
>
> > How can I render a correct HTML select box? ..now it does this mess !!
>
> >
> > 15" - 16"
a correct HTML select box? ..now it does this mess !!
>
>
> 15" - 16"
>
>
> is it a bug?? is there any workaround?
>
> PS1: escape => true is not helping with quotes..
>
> PS2:
> This article tell about something similar, but I'd like to us
Hi,
How can I escape double quotes when using form helper? Imagine we have
this value with double quotes stored in database: 15" - 16"
How can I render a correct HTML select box? ..now it does this mess !!
15" - 16"
is it a bug?? is there any workaround?
PS1: e
Hello.
i have a simple app running 2 models
Order hasMany Item
Item belongsTo Order
the "code" field in in both models but in ItemModel this is a virtual
field
var $virtualFields = array("code" => "CONCAT(Order.code, '-',
Item.n)");
here's the problem:
$myItem = $this->Item->find("all", array
Hello!
I'm having problems saving multiple files through related model.
I have the following structure:
Document hasMany Item
Item belongsTo Document
Item belongsTo File
File is a generic model I created to ease attaching a file to a model.
My Document form is like following:
...
$k=0
Hello!
I'm having problems saving multiple files through related model.
I have the following structure:
Document hasMany Item
Item belongsTo Document
Item belongsTo File
File is a generic model I created to ease attaching a file to a model.
My form is like following:
$k=0;
echo $for
tence display:
> Página 1 de 1, Mostrando 3 registros de 3 total, Empezando en el 1,
> acabando en el 3 ; ?>; ?>; ?>; ?>; ?>; ?>; ?>; ?>; ?>
>
> I look for this unwanted chars in the helper's files but I haven´t
> found the bug.
>
> The table information in
pages%, Mostrando %current%
registros de %count% total, Empezando en el %start%, acabando en el
%end%', true)
));
This sentence display:
Página 1 de 1, Mostrando 3 registros de 3 total, Empezando en el 1,
acabando en el 3 ; ?>; ?>; ?>; ?>; ?>; ?>; ?>; ?>; ?>
I look
Sorry, I only meant that your issue was something similar, not the
same :)
Good luck hunting it down,
John
On Jan 17, 11:56 pm, euromark wrote:
> darn
> i was too quick
>
> after removing the model "Date" and all related models the same
> problem still occured
> so it must be something else
>
darn
i was too quick
after removing the model "Date" and all related models the same
problem still occured
so it must be something else
maybe some conflict with the php date() function?
the above link about "data" cant be the solution because this person
had a conflict with
$model->data
in my ca
you are so right
just found the problem, i guess:
I have a file date.php with a class "Date" in the models folder
this model works, though (thats why i never though about this model
name resulting in any upcoming trouble)
its just the current model and the post functionatily which screws
up...
do
Your issue may be related to the one that was discussed in:
http://groups.google.com/group/cake-php/browse_thread/thread/759c93f04a626c5b#
There it was a table named "data" that gave problems!
Your using of "date" may give issues of the same kind - kind of
reserved word :)
Enjoy,
John
On Jan 1
Baked in my current app, the field called "date" results in the
following array:
Array
(
[Ride] => Array
(
[id] =>
[datetime] => Array
(
[day] =>
[month] =>
[year] =>
)
thats it :)
actually, you need to put it in
__construct()
as beforeFilter() is not invoked on errors (404 etc)
otherwise it would print the error layout without translation
PS: i still think this is a bug as it should always fall back to the
default language set in configs
mark
On 31 Dez
add:
> security level is to low (as there are strange happening with higher
> security levels anyway)
>
> if nobody has a reason/solution i am forced to open a ticket for this
> i guess
>
> On 30 Dez., 15:47, euromark wrote:
>
> > right
> > i think this must
i should probably add:
security level is to low (as there are strange happening with higher
security levels anyway)
if nobody has a reason/solution i am forced to open a ticket for this
i guess
On 30 Dez., 15:47, euromark wrote:
> right
> i think this must be some bug in the core
> a
right
i think this must be some bug in the core
although i could not figure out where it happens
my version is the 1.3 head right now
On 30 Dez., 11:08, John Andersen wrote:
> I can confirm this. Just tried it with my development site, which
> works well in english and danish, depending
I can confirm this. Just tried it with my development site, which
works well in english and danish, depending on the language
information received from the browser.
With anonymouse.org this completely does not work, nothing is
translated.
Enjoy,
John
On Dec 29, 5:38 am, euromark wrote:
> i wou
i would have never found that out if i hadnt built myself a bot-
tracking component
it basically logs all non-js-browsing and tries to detect if it was a
known search bot
anyway
this way i found out that my website has been visited by users using
http://anonymouse.org/
i tried it out myself and w
I can't find bug in this source code? Help!
/Nothing happens when I select a client/
Thanks.
---
/views/elements/activity_filter.ctp
---
Select Activities
create('Activity', array('type' => 'get
Hello,
I don't understand my bug.
I've created a "parent_node" function on my user model that return a
role_id.
Every user have a role. When i create a new user, it create also an
ARO associated with the proper role.
The problem is that EVERY user is registred as ADMIN
Scenario:
Plan HABTM Status
Plan Belongsto Department
Plan Belongsto Element
Controller code:
$data= $this->Plan->find('all', array(
'contain' => array (
'Status.name = "approved"',
'Element',
On 21 oct, 07:59, "Ma'moon" wrote:
> You may want to open a ticket @https://trac.cakephp.org/stating the steps
> to reproduce your claims so that the core DEVs may review it and fix it.
That's pretty bad advice - why should cake devs bother filtering
through user-land problems of this nature?
On 21 oct, 06:32, Rawna wrote:
> I just found out that CakePHP saving twice when I have warnings (as I
> saw it in debug.log)
> E.g. I have $this->Model->save() in my controller
>
> And I have this in my default.ctp template:
>
>
> I think CakePHP is going through the controller action again w
"Going twice" may occur because of requestAction somewhere.
On Oct 21, 11:32 am, Rawna wrote:
> I just found out that CakePHP saving twice when I have warnings (as I
> saw it in debug.log)
> E.g. I have $this->Model->save() in my controller
>
> And I have this in my default.ctp template:
>
>
>
You may want to open a ticket @ https://trac.cakephp.org/ stating the steps
to reproduce your claims so that the core DEVs may review it and fix it.
On Wed, Oct 21, 2009 at 12:32 AM, Rawna wrote:
>
> I just found out that CakePHP saving twice when I have warnings (as I
> saw it in debug.log)
> E
I just found out that CakePHP saving twice when I have warnings (as I
saw it in debug.log)
E.g. I have $this->Model->save() in my controller
And I have this in my default.ctp template:
I think CakePHP is going through the controller action again when a
warning caused by the above is present.
--
:
"SELECT (`Statistic`.`a` - `StartImport` FROM reports..."
It's getting to Startimport and then just chopping off everything
afterwards. This is happening in DboSource::fields(), but obviously I
don't want to start hacking away at such a core function.
So my que
Hello everybody!
I am using 1.3 builds and upgrading once a week.
It worked for me ok before but on Friday I upgraded to latest version
and got this error
$a_plugins = App::Objects('plugin');
This array is empty if placed in bootstrap now. In controllers it is
still ok.
Do you have any ideas a
I have read that a method to share the session is exactly using
memcache like session_handler.
And I have to share Cake session with other web application.
On 7 Ott, 16:44, jperras wrote:
> Memcache being used as a cache configuration and Sessions have pretty
> much nothing in common, unless yo
A header() only sends a header information to the browser, it does not
stop the following php code from executing. Probably you should use a
die() or exit() after the header!
Enjoy,
John
On Oct 9, 11:44 pm, Dewald Pretorius wrote:
> Given the following scenario:
>
> a) In an app controller me
Given the following scenario:
a) In an app controller method you do a header redirect to an external
site (I did it directly with header() not with $this->redirect).
b) Since there's no view output, no ctp file exists.
c) The controller method is named somemethod(), not __somemethod().
When Co
actually i have been using 0 instead of false or null
works for me
On 8 Okt., 22:03, Miles J wrote:
> Try setting null instead of false, Cake acts weird sometimes with
> "false".
>
> On Oct 8, 12:05 pm, ben wrote:
>
> > I was able to overcome this behavior by setting this in my routes.php
>
> >
Try setting null instead of false, Cake acts weird sometimes with
"false".
On Oct 8, 12:05 pm, ben wrote:
> I was able to overcome this behavior by setting this in my routes.php
>
> Router::connect('/admin/users/login', array('controller' => 'users',
> 'action' => 'login'));
>
> It did the trick
I was able to overcome this behavior by setting this in my routes.php
Router::connect('/admin/users/login', array('controller' => 'users',
'action' => 'login'));
It did the trick for me. My only issue now is that once the user is
logged in they do not go back to the page they were attempting to
I have the same exact issue and have been searching for a solution for
several days now...
On Sep 26, 4:06 am, Marcelo wrote:
> I'm using Auth component and this is one of the settings in my
> AppController's beforeFilter() method:
>
> $this->Auth->loginAction = array(
>
Memcache being used as a cache configuration and Sessions have pretty
much nothing in common, unless you've set your session save handler
(in app/core.php) to be cache-based, which is usually not a good idea
unless you know what you're doing.
-j.
On Oct 6, 5:19 pm, "marco.rizze...@gmail.com"
wr
Have someone any suggestion about this?
On 6 Ott, 23:19, "marco.rizze...@gmail.com"
wrote:
> Hi
> I have installed memcache on my system.
> I have setted CakePHP to use memcache.
> I have setted the Configure::write('Security.level', 'medium');
> All seems to work but sometimes I lost the
out_id so
> > this should work.
> > In my models I have $hasMany = 'CmsTemplate' for CmsLayout.php and
> > $belongsTo = 'CmsLayout' in my CmsTemplate.php.
> >
> > Any thoughts?
> >
> > On Oct 7, 4:15 am, brian wrote:
> >
> >
t.php and
> $belongsTo = 'CmsLayout' in my CmsTemplate.php.
>
> Any thoughts?
>
> On Oct 7, 4:15 am, brian wrote:
>
>
>
> > On Mon, Oct 5, 2009 at 8:45 PM, MeanStudios
> > wrote:
>
> > > Greetings,
>
> > > I'm not sure if this is a b
Hi
I have installed memcache on my system.
I have setted CakePHP to use memcache.
I have setted the Configure::write('Security.level', 'medium');
All seems to work but sometimes I lost the session. In particular I
note this when I do a sequence of ajax call.
A simple example to show this err
_layout_id so
this should work.
In my models I have $hasMany = 'CmsTemplate' for CmsLayout.php and
$belongsTo = 'CmsLayout' in my CmsTemplate.php.
Any thoughts?
On Oct 7, 4:15 am, brian wrote:
> On Mon, Oct 5, 2009 at 8:45 PM, MeanStudios wrote:
>
> > Greeti
On Mon, Oct 5, 2009 at 8:45 PM, MeanStudios wrote:
>
> Greetings,
>
> I'm not sure if this is a bug or not but here it goes. If I have 3
> models (Layout, Template, Page). Layout has many Page and Template.
> Page and Template have only one Layout. If I am in the
>
Greetings,
I'm not sure if this is a bug or not but here it goes. If I have 3
models (Layout, Template, Page). Layout has many Page and Template.
Page and Template have only one Layout. If I am in the
PagesController and I do something like $this->Page->Layout->findById
($id) it
I'm using Auth component and this is one of the settings in my
AppController's beforeFilter() method:
$this->Auth->loginAction = array(
'controller' => 'users',
'action' => 'login',
Configure::read('Routing.admin') => false
Seriously? Nobody has experience with TreeBehavior's scope option?
On Sep 15, 1:45 pm, Jamie wrote:
> I'm having an issue with Cake'sTreebehavior, specifically setting ascope.
> I've created a dynamic navigation system so that clients can
> manage navigation lists and items via a CMS. The asso
1. To not receive empty records in DB you should also set fields there
to NOT NULL
2. To make cake validate not only actual POST values but all fields
that must be, you need more complex validation:
var $validate = array(
'username' => array(
'rule' => 'alphaNumeric',
'required' => true
I'm having an issue with Cake's Tree behavior, specifically setting a
scope. I've created a dynamic navigation system so that clients can
manage navigation lists and items via a CMS. The associations look
like this:
NavList hasMany NavItem
NavItem belongsTo NavList
Simple enough. NavItem uses tr
UNIQUE KEY `username` (`username`),
UNIQUE KEY `email` (`email`,`username`),
You right.
But why validation doesn't work?
On 15 сен, 14:48, Martin Westin wrote:
> If you really did set "username, email to unique" and not "username
> unique and email unique" (see the difference?) all is as i
If you really did set "username, email to unique" and not "username
unique and email unique" (see the difference?) all is as it should be.
In the first instance (one index combining the two fields) would have
to have the same username and email combination for MySQLs index to
throw an error.
Is
101 - 200 of 822 matches
Mail list logo