You have ever figure out the problem for this. I'm having similar
problems.
On Sep 27, 1:20 pm, Nigel wrote:
> I have tried it. But I will try again. Probably with a fresh install
> of apache. I'll try purging everything and reinstalling. I'm pretty
> sure its some silly mistake that I did.
ALWAYS do such things just before actual save/validate. And provide
all relevant code if you want real help.
On Oct 10, 8:38 pm, emmexx wrote:
> On 9 Ott, 22:54, emmexx wrote:
>
> > So I suppose that $this->validate is reset (by whom)? in between
> > update_div() and beforeValidate().
> > Or $
Three ways:
1. Re-run your JS.
2. Do same logic when output form.
3. When show/hide fields by JS, keep form state in some hidden field
(s) and show/hide when output form based on its value(s).
On Oct 10, 9:37 pm, emmexx wrote:
> I'm using javascript and ajax to show/hide fields in a form dependi
It is some JavaScript error. Probably in your layout.
On Oct 11, 5:26 am, "Dave Maharaj :: WidePixels.com"
wrote:
> Not sure if its a cake thing or not but maybe someone has seen this error
> somewhere along the way.
>
> In Firefox i see
>
> Warning: Expected ',' or '{' but found 'li'.
>
> But i
find("count") may return false in case of query error.
On Oct 10, 4:17 pm, rrd wrote:
> $uniqueId = md5($m['username'].mb_substr($m['message'], 0, 100));
> $isSaved = $this->Intercept->find('count',
> array(
>
You can try "RewriteBase /" in cake .htaccess. But not sure that it
will help.
On Oct 10, 2:00 am, pb wrote:
> hello,
>
> I have set up a cakephp app which works ok in a subdir main of the
> document root
>
> so I have access to the app byhttp://www.mainsite.com/main/
>
> what I would like is to
Model already have method find() that is heavely used. If you override
it you confuse a lot of internal cake methods. So the answer is "no,
you should name it other way".
On Oct 10, 8:42 pm, rlcabral wrote:
> Ok, I found the problem.
>
> Before telling you what was the problem, let me ask you so
If you use MySQL, even millions of records in table is not a problem
while there are few columns, all of them are fixed (ints, chars) and
you have good indexes. If you use other RDBMS, check out how can you
optimize such table there. I am sure that any serious RDBMS also work
fine with such table.
Not sure if its a cake thing or not but maybe someone has seen this error
somewhere along the way.
In Firefox i see
Warning: Expected ',' or '{' but found 'li'.
But its on every page i go to and line 0.
Any thoughts?
Dave
--~--~-~--~~~---~--~~
You receive
Dear Dave,
Cake combines, yes, minifies yes... caches yes...
but when you cache the minified|combines|both version of javascript,
why don't you cache the gzipped version also?
use the magic statement
gzencode($content_of_the_dot_js_file,9,FORCE_GZIP);
and put what it returns in a .js.gz filenam
I'm using $html->link() not $html->url(); I don't know why I typed
that.
I don't know what you mean by the first part of your response
On Oct 10, 5:29 pm, robust solution wrote:
> Dear Kyle Decot
>
> I think whenever you define a route in the routes.php you should not
> repeat the route paramet
Dear Kyle Decot
I think whenever you define a route in the routes.php you should not
repeat the route parameters in every url you want to show... the
shortcut is enough
this is first...
secondly
->url is for url
for hyperlink use ->link
On Oct 10, 11:21 pm, Kyle Decot wrote:
> Can someon
always you have to distinguish between static and dynamic data
static data are something like the welcome message, the forms error
messages, the contact us message/form...etc
dynamic data are everything stored in the database that may be in
multiple languages
I think CakePHP recommends you to u
Can someone please help me with this? I've tried posting on here and
on the IRC channel and no one can seem to figure this out...it this
just not possible with cake? All I am trying to do is creating a link
using reverse routing and having named params in the URL.
On Oct 9, 10:38 pm, Kyle Decot
yeah that was my idea today too... (propably much easier and cleaner
than adding support for another user-model ;))
thank you!
greets
On 9 Okt., 18:26, "Dr. Loboto" wrote:
> Users and companies have at least 3 common columns - id, login and
> password. Keep them in one table and put specific fie
Well this should help, I suggest you begin here:
http://book.cakephp.org/view/162/Internationalizing-Your-Application
On Oct 10, 4:42 am, Shaun wrote:
> I've been working on a project athttp://www.linkbump.comand I would
> like to add a Chinese language version. Users submit videos and news
>
Thank you Dave, I have fixed it in the simplest way possible:
using the var $order variable in the model.
On 10 Ott, 16:54, "Dave Maharaj :: WidePixels.com"
wrote:
> Try sort(); or another standard php sorting function.
>
> http://ca3.php.net/manual/en/function.sort.php
>
> -Original Messag
Try sort(); or another standard php sorting function.
http://ca3.php.net/manual/en/function.sort.php
-Original Message-
From: albe [mailto:radialremo...@gmail.com]
Sent: October-10-09 11:45 AM
To: CakePHP
Subject: Re: Use Set::sort
Ok I have found the answer: in my cakephp version th
I'm using javascript and ajax to show/hide fields in a form depending
on the selected values of one or more fields.
The user chooses a value from a select and some other field is shown
or hidden.
When the user submits data and there's a validation error the form
reloads and the visibility value o
Ok I have found the answer: in my cakephp version there's no sort
function in the set class!
How can I sort my array otherwise? Unfortunately I CAN'T update the
cakePHP version for this specific job.
On 10 Ott, 15:25, albe wrote:
> Hi,
> I have to sort an array and I have found out this simple w
Either your controller is doing a model`s job (eg. preprocessing some
data prior to insert/update), a component`s job, or what you really
need is to redirect the browser to /posts_controller/add/.
try this: look at the code at posts->add, extract the portion that you
need to be run in both contro
Ok, I found the problem.
Before telling you what was the problem, let me ask you something...
can I create a function called "find" in the model?
As soon as I removed this function from the model Companies,
everything was ok.
Thanks for your help :)
On 10 out, 02:11, brian wrote:
> Normally,
[SOLVED] :)
use disableCache() method and solved.
On Oct 10, 3:36 pm, persianshadow wrote:
> hi
>
> i finish my project and upload to server .with my computer everything
> is correct
> but other user need press crtl+f5 for see correct value.but my page
> contain :
>
> 1 - in first page user cl
On 9 Ott, 22:54, emmexx wrote:
> So I suppose that $this->validate is reset (by whom)? in between
> update_div() and beforeValidate().
> Or $this->Mymodel->setValidation('myrules') sets the wrong validate
> variable.
I moved the $this->Mymodel->setValidation('myrules') line to the add
function
Hi,
I have to sort an array and I have found out this simple way:
http://blogs.bigfish.tv/adam/2008/03/24/sorting-with-setsort-in-cakephp-12/
Unfortunately, when I put the sorting code in my apllication's got I
got:
"Fatal error: Call to undefined method Set::sort() in C:\...
\controller.php on
Ausgezeichnet! (My father is from München and has the bumper
sticker... I bin a Bayer! Host mi?)
Would you mind sharing that helper? Vielen dank.
On Oct 10, 4:56 am, "euromark (munich)"
wrote:
> i even use a helper funtion
>
> echo $common->yesNo($val)
>
> which results in one of 2 icons: green
hi
i finish my project and upload to server .with my computer everything
is correct
but other user need press crtl+f5 for see correct value.but my page
contain :
1 - in first page user click on product and add to shopping cart
( use session for this )
2 - after user click on product in my con
I've been working on a project at http://www.linkbump.com and I would
like to add a Chinese language version. Users submit videos and news
much like Digg or Reddit.
I would like to keep the English and Chinese content separate, so I
plan to create separate tables with a cn prefix. For those tha
i even use a helper funtion
echo $common->yesNo($val)
which results in one of 2 icons: green check mark or a red cross
(even more pleasing visual appearance)
On 9 Okt., 15:00, FrederickD wrote:
> I may not understand completely what you are trying to do. I've kept
> my boolean elements at tin
Intercept->find('count',
array(
'conditions' =>
array('there_id' => $uniqueId)
));
?>
This is the code. I chan
hi all,
i have a deep model association
handle by the containable behaviour:
ModelD hasMany ModelDF
ModelD belonsTo ModelDS
ModelDF belongsTo ModelD, ModelDSF
ModelDS hasMany ModelD, ModelDSF
var $contain = array(
'DS' => array(
'DSF' => array(
'DF
31 matches
Mail list logo