Hi,
This may be a very basic question, but I've been struggling with a
design problem in hasAndBelongsToMany relationship.
I have a "Seminar" model that represents seminar information, and each
of the seminar can have many payment methods like in Cash, CreditCard,
Bank Transfer, etc.
I have defi
So I think this might be easier just to write using jquery on its
own. Cake has written the bind for me, and ive given the button an id
so it won't regenerate a random id each time.
i nipped into the souce, stole what cake had done so far. made the
submit a simple Form->submit rather than Js->su
Rad!
I hope your wind filled sail takes you to fantastic places!
good job.
On Sat, Nov 13, 2010 at 8:40 PM, Dave Maharaj wrote:
> That will do it.
>
>
>
> Success. So case closed J
>
>
>
> Dave
>
>
>
> *From:* Angel Robert Marquez [mailto:angel.marq...@gmail.com]
> *Sent:* November-14-10 1:06
That will do it.
Success. So case closed J
Dave
From: Angel Robert Marquez [mailto:angel.marq...@gmail.com]
Sent: November-14-10 1:06 AM
To: cake-php@googlegroups.com
Subject: Re: Brainstom Idea needed
sounds like a good plan. let me know if the solution from you're deductive
logic
sounds like a good plan. let me know if the solution from you're deductive
logic yields the desired result : )
952589m
410058f
On Sat, Nov 13, 2010 at 8:31 PM, Dave Maharaj wrote:
> I just checked and the 2 that will not save and they are all numeric
> 952589 and 410058 and my Route has 'pos
I just checked and the 2 that will not save and they are all numeric 952589
and 410058 and my Route has 'post_id' => '[-_A-Za-z0-9]+', so my guess is
since it does not have a letter in there its failing? Only thing I can think
of since all the other id's have a letter tossed in there
Id's are c
what are the post_id numbers for the anomalies?
On Sat, Nov 13, 2010 at 8:10 PM, Dave Maharaj wrote:
> Ok this is a weird one.
>
> I made my “star” favourites icon click sends ajax request and saves the
> post as favourite to favorite_posts table. Nothing over the top there.
>
>
>
> So I added
Ok this is a weird one.
I made my "star" favourites icon click sends ajax request and saves the post
as favourite to favorite_posts table. Nothing over the top there.
So I added 100 dummy posts and went thru bookmarking everyone as a favourite
only to see 98 saved. There are 2 Posts that will
This can't be the first time this has been tried?
On Nov 12, 5:12 pm, "Arak Tai'Roth" wrote:
> Anyone have any other ideas?
>
> On Nov 12, 12:56 am, "Arak Tai'Roth" wrote:
>
> > That doesn't work, it actually disabled the working pagination on the
> > Image model.
>
> > I know there is a model o
Also, have you tried to generate code with bake? it could be helpful or you
could see what are you doing wrong at least
http://book.cakephp.org/view/1522/Code-Generation-with-Bake
Pablo E. Terradillos
On Sun, Nov 14, 2010 at 12:43 AM, Pablo Terradillos wrote:
> I'm not sure if i understand co
I'm not sure if i understand correctly your first issue...
Have your associated model the corresponding foreign key and, also, a
primary key?
For example,
Questions
id
text
Answers
id
question_id
text
Regarding the second issue,
remember to enclose modelName.$i.field with double quotes so $i
Hi,
I have a simple submit button magicly turning my form into ajax:
echo $this->Js->submit('Add', array('update' => '#update-zone-phone',
'class'=>'zebidee', 'url'=>'/phones/add'));
works really well.
But, how do i add to what happens when that button is clicked?
I'd like to reset the form an
Thank you for your response, I in fact did do what you said about the
first problem and resolved that error. I was passing the parameter to
a page that has a form. The create function in the view, would recall
the same action using the $options as 'action'. I added the 'url tag
to the' $options arr
The CakePHP core team is proud to announce the immediate availability
of CakePHP 1.3.6 and 1.2.9. These releases are recommended for all
users as they fix a security issue. Since the release CakePHP 1.3.5
less a month ago, there have been over 25 commits[1] and 10 tickets
resolved. The 1.2 branch h
already cleared up
@see
http://stackoverflow.com/questions/4163605/unable-to-use-any-component-in-my-controller-cake-php
On 12 Nov., 08:55, Jawwad Alam wrote:
> Hello All,
>
> I am trying to use different components in my controller;
>
> I declare the use of Components as following in my control
are you using 1.3?
because with cake 1.3 this is possible and already implemented
all errors are logged to /logs/error.log etc
if you want to add your own stuff - or (like me) trace the error:
http://cakephp.lighthouseapp.com/projects/42648/tickets/267-tracing-should-be-available-in-productive-er
Have your model the corresponding associations?
Questions have many answers?
if so, you could check what your form is POSTing using debug($this->data);
in order to check if you are making all in a the correct way
You may not have any problems putting the form generator in a loop, as long
as your
Group,
I am facing this problem on a new install.
windows 7, WAMP install
MySql - 5.1.52
PHP - 5.3.3
Cake- 1.3.5
With this fresh install, I get the correct page ( saying tmp is
writable) database configuration file is NOT present.
But on renaming the database.php.bak to a .php , and creating a new
On Sat, Nov 13, 2010 at 8:28 AM, Björn N wrote:
> Hi!
> I want to use a label "Lägg till" on a submit button, using the code:
> end('Lägg till'); ?>, but that renders a button with
> no text in it. If I change the 'ä' to an 'a' the label shows up fine,
> but without the dots above the a. I've trie
Hi!
I want to use a label "Lägg till" on a submit button, using the code:
end('Lägg till'); ?>, but that renders a button with
no text in it. If I change the 'ä' to an 'a' the label shows up fine,
but without the dots above the a. I've tried 'ä" to no avail.
I'm pretty sure that the problem exists
I can't believe you are connecting to MySQL from PHPMYADMIN with
absolutely the same details. The error means that the application
cannot connect to the MySQL server on that port. By default on decent
Ubuntu MySQL listens only on the local interface 127.0.0.1 and not on
all IPs. You can check it wi
I am new to cake php so please bear with me. I am trying to create a
survey for which i can create multiple choice questions. i am running
into two issues
1) for multiple choice questions i have a form that takes all the
answer choices and saves them as separate entries inside the answers
database
Hello everyone, i need to keep track of the errors in my cakephp app
even when it's in production (debug = 0 ). the Debugger class has this
errorHandler function, which only works when debug > 0. I want to call
this function even when debug is 0 so the function can write in the
debug.log. The thing
Hello All,
I am trying to use different components in my controller;
I declare the use of Components as following in my controller:
var $components = array('Email');
but when I try to use the Email component in my code, I get the
"Undefined index: email [APP\controllers\cip_surveys_controller.
On Sat, Nov 13, 2010 at 9:12 AM, marco.rizze...@gmail.com
wrote:
> Hi
> I have downloaded cakephp 1.3.5.0 and I have PHP 5.3.3
> I have unzip cake and I try to see if it works correctly and I get
> this errors :
>
> Warning (2): strtotime() [function.strtotime]: It is not safe to rely
> on the sys
MySQL is probably not listening for TCP connections. Try changing the
host param to 'localhost', which will use a UNIX socket connection.
On Fri, Nov 12, 2010 at 3:56 PM, rogwei wrote:
> The subject search phrase returns 0 items in this group which
> surprises me a little, and google isn't. Anywa
On Sat, Nov 13, 2010 at 6:08 AM, dtemes wrote:
> just playing by ear here, but are you certain that your database field
> is defined with the right type and length to hold the data you are
> trying to put in?
I was just thinking the same. Check the column.
Also, set debug to 2 and comment out yo
On Fri, Nov 12, 2010 at 8:20 PM, huoxito wrote:
> I have this in my app_controller
>
> var $components = array('Session', 'Auth');
The order of those should be reversed:
var $components = array('Auth', 'Session');
At least, at one time that was important. I don't know if it's still necessary.
Thanks...i will give that a go. Y
our right in your reply with the sub_query after looking at what I was
trying.
Dave
-Original Message-
From: Mattijs [mailto:mattijsmeib...@hotmail.com]
Sent: November-13-10 6:37 AM
To: CakePHP
Subject: Re: Help with Joins
You are actually joining recor
One of the main reasons it was changed to a view property, was that
people had the propensity to make view variables that shared the name
of their helpers. Bad things ensued. There were frequent enough
issues that it was changed. Unlike PHP and CakePHP rails benefits
from ruby magic, in the form
Also App::import() returns false when an import fails. If you are
interested in whether or not things succeed, you could check the
return value of the method.
-Mark
On Nov 12, 5:05 am, psybear83 wrote:
> Hi all
>
> I don't get it why CakePHP doesn't complain about stuff like when one
> specifie
Thanks Mattijs!!!
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 email to cake-php@googlegroups.com
To unsubsc
Hi
I have downloaded cakephp 1.3.5.0 and I have PHP 5.3.3
I have unzip cake and I try to see if it works correctly and I get
this errors :
Warning (2): strtotime() [function.strtotime]: It is not safe to rely
on the system's timezone settings. You are *required* to use the
date.timezone setting or
just playing by ear here, but are you certain that your database field
is defined with the right type and length to hold the data you are
trying to put in?
David
On 13 nov, 03:35, laduree wrote:
> So, after trying everything I could think of, I baked a new project
> with as fewer code as possibl
you want to show all offers that the user not rejected? Your SQL
statement returns only all offers that the user rejected. Thats not
what you want? please correct me, when i do misunderstand you.
Your SQL statement returns a table with rows of offers combinded with
rejects where offer id = reject
The html::link function will remove special characters by default, you
could try setting the escape option to false.
Html->link('Работы', array('controller' =>
'art_works', 'action' => 'show'), array('escape' => false)) ?>
On 13 nov, 00:04, Dobrogor wrote:
> Hi all!
> I have a little problem.
>
You are actually joining records in your example, while you want the
records without a join. You could use a subquery with NOT IN instead:
SELECT * FROM Offers WHERE Offer.id NOT IN (SELECT Reject.offer_id
FROM Rejects WHERE Reject.profile_id =
'4b4ff09c-2580-4e21-9dbf-36b74adcd75b')
On 12 nov, 2
thank you
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 email to cake-php@googlegroups.com
To unsubscribe fro
38 matches
Mail list logo