Hello,
I created an dynamic drop down menu with prototype and scriptaculous.
It's working fine but there is a little problem. If an topcategory
doesn't have an subcategory (subcategories) the topcategory-link has
to link to an /controller/action and I don't need an -Element.
Topcategory with subc
Hi,
I have a cakephp app that has started to throw a Fatal Memory
allocation error. Strangely it only happens on the production server
(Cpanel, php 5.2.12) but not on either dev machines (php 5.2.11). This
is with CakePHP version 1.2.4.8284.
It has only started recently, nothing in the script cha
I've tried to use saveAll with the 'validate' property set to true in
hopes that the definition in the API ("true to validate each record
before saving") meant that it would validate each record, and upon
being valid it would save the record.
I believe I was mistaken now that I've actually attempt
What happens if you change SisField::$hasMany to var $hasMany =
array('SisQueue');?
On Mar 6, 9:02 pm, mathaios wrote:
> yes Paul this is the problem!
>
> $this->SisField->SisQueue->belongsTo does return an empty array
> instead of the real one. Clearly Cake is auto-creating the model.
> I have t
yes Paul this is the problem!
$this->SisField->SisQueue->belongsTo does return an empty array
instead of the real one. Clearly Cake is auto-creating the model.
I have tested all other model related to SisField and none of them is
the "real one": all are re-created by Cake.
Maybe it's related of t
This is how I do it in my InstantMessenger plugin which relates to the
User model of the App.
//plugins/instant_messenger/models/im_chat.php
var $belongsTo = array(
'ImSession' => array(
'className' => 'InstantMessenger.ImSession',
'dependant' => true
),
'User' => array(
Hi Michael,
Thanks for looking at this. I've tried switching the order, to tasks
goes before events, but still no joy. I've even taken out all the
deeper contained data, and it still won't find anything. Maybe
something is going wrong with 'recursive', but I thought that wasn't
used with 'contain.
Hi Brenda,
I just experienced a similar problem, and it seems that the first find
influences the second, if the containment is too deep. Looks like a
bug for me, but I am not sure and I also don't use the latest CakePHP
version.
As workaround in your case, it might help to change
'ProjectStatus.p
I have a couple different subdomains on my site but I am having some
problems w/ the Auth Component. I login fine under the standard www
subdomain but then if I go to a different subdomain, then I am no
longer logged in. How do I make sure that my Auth login persists
across all of my subdomains?
C
Not sure if this is what you are looking for but I show the username
and logout link by creating an if statment with isAuthed
So
show user name and show log out link
show log in link
hope that helps
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePH
Continuing to work on this I have found that when I comment out my
var $hasMany = array( in my User model, then this searchable plugin
works fine.
I tried to comment out the individual keys for this array but that
did not help. When I remove the hasMany array then I am able to
successfully add c
I think
$cityList = $this->find('list');
$form->input($cityList);
also I think the pluralization of city is cities
- S
On 6 March 2010 06:06, adeveloper guy wrote:
> Hi,
>
> am a newbie in cakephp and trying to understand how things work.
>
> i want to display list of city in a select
I've been scratching my head for hours and can't figure out why this
doesn't work. Any help would be appreciated.
Projects hasMany Tasks
Projects hasMany Events
Projects belongsTo ProjectStatus
Tasks hasMany TaskVendors
Events hasMany EventVendors
TaskVendors belongsTo Vendors
EventVendors belo
This might be elementary for some, but I haven't quite wrapped my head
around how I can build a hasMany relationship from my app model to a
model in a plugin (one I'm also writing).
The basic gist looks something like this:
/** App's User Model **/
class User extends AppModel {
var $name
Hi,
am a newbie in cakephp and trying to understand how things work.
i want to display list of city in a select box and the values will
come thru a table
how to do that ?
i have done following
in model ...
in controller ...
set('cityList', $this->City->find('all'));
}
}
?
Hello together,
i tryed this tutorial (
http://komunitasweb.com/2009/03/cakephp-acl-tutorial-what-and-how/
) as an example. But now i want to show the username and the logout
link if the user is logged. how do i this?
How can i show the username and the link on the ctp files?
Many greetings, ni
If you absolutely don't want to use AJAX you can write your pagination
conditions to a session variable.
On 6 mar, 04:02, WebbedIT wrote:
> I'm pretty certain it would require AJAX to maintain state for both
> the models being paginated, otherwise you would have to pass through
> the variables f
Many thanks Jeremy! You were quite right.
I've got to take a look to the debug options with more attention.
Thanks again!
Cya :)
On Mar 6, 10:30 am, André Cardoso wrote:
> Ha, that might as well work :)
> I've set debug to 0.
>
> I'll try it right away :)
>
> On Mar 6, 9:16 am, Jeremy B
Ha, that might as well work :)
I've set debug to 0.
I'll try it right away :)
On Mar 6, 9:16 am, Jeremy Burns wrote:
> Have you cleared the files in /app/tmp/cache/models and set debug to 2? It
> sounds like your model could be cached, hence the new fields not being
> recognised or sav
Have you cleared the files in /app/tmp/cache/models and set debug to 2? It
sounds like your model could be cached, hence the new fields not being
recognised or saved.
Jeremy Burns
jeremybu...@me.com
On 6 Mar 2010, at 08:37, André Cardoso wrote:
> And btw again :( (sorry),
> I did try to save
And btw again :( (sorry),
I did try to save the form with only 39 fields, in the sense that the
form did not always had 102 fields! When I was writing the form,
iteratively, I reached, sometime, the point when the form had only 39
fields, and I was able to save it successfully. I can't recall if wh
Oh, by the way, the data is saved till the "[parteii_6_12]" entry.
The view, is just one big piece of html in the middle of "echo $form-
>create(..." and "echo $form->end('Submit');"
Whatever the html I put in there it can't interfere with data saving,
can it?
On Mar 6, 8:25 am, André Cardoso wr
The controller:
function stalking(){
if($this->Session->check('Agreed')){
if($this->Session->read('Agreed') == true){
if(!empty($this->data)){
$this->log($this->data, LOG_DEBUG);
if($this->Survey->save($this->data)){
23 matches
Mail list logo