Re: Javascript funktion call from html -> link

2009-01-14 Thread nomex
27;. > $article['article']['id'], array('onmouseover' => 'alert(\'test > \';)')); ?> > > On Jan 14, 2:40 pm, nomex wrote: > > > Hey, maybe a stupid question, but i'm stuck. > > > i want to create a link with

Javascript funktion call from html -> link

2009-01-14 Thread nomex
Hey, maybe a stupid question, but i'm stuck. i want to create a link with this output: a onmouseout="mymouseout()" onmouseover="mymouseover(0)" href="...">Marker One i tried this with this: link($article['article']['name'], '/articles/view/'. $article['article']['id'], array('onmouseover' => '

Saving extra fields in the join table (for HABTM models)

2008-10-28 Thread nomex
Hey guys, sorry to bother you again, but i'm spending hours on this problem and can't find the solution: teknoid has this nice blog, where he describes his metode so save some extra data to the HABTM table by binding them as hasMany. http://teknoid.wordpress.com/2008/09/24/saving-extra-fields-in

Re: More Fields in the HABTM Table

2008-10-28 Thread nomex
me > time to learn. > > On Oct 28, 11:55 am, nomex <[EMAIL PROTECTED]> wrote: > > > > > i don't look through. > > > how can i create an insert? > > > $this->data['File']['id'] = '99'; > > $this->data[

Re: More Fields in the HABTM Table

2008-10-28 Thread nomex
a look here, hopefully it'll help: > > http://teknoid.wordpress.com/2008/07/03/notes-on-cakephp-habtm-part-1... > > On Oct 28, 7:11 am, nomex <[EMAIL PROTECTED]> wrote: > > > > > Hello, i have a DB Design like this > > > Table: Users (id, ) > >

More Fields in the HABTM Table

2008-10-28 Thread nomex
Hello, i have a DB Design like this Table: Users (id, ) Table: Files (id,...) Table files_users(id, user_id, voucher_id) now i want to extend the files_users table with folowing fields: uploaded and viewed (each a datetime) how can i do this? didn't know where to start! thanks for your hel

Re: Foreach loop with data from other model

2008-10-17 Thread nomex
That's all off the top of my head, but it should work. > > HTH, > hydra12 > > On Oct 17, 4:22 pm, nomex <[EMAIL PROTECTED]> wrote: > > > > > Hey, > > > I have 2 Tables: > > > pictures > > ratings > > > every rating belongs to a

Foreach loop with data from other model

2008-10-17 Thread nomex
Hey, I have 2 Tables: pictures ratings every rating belongs to a picture and every picture has many ratings. (just a normal rating DB) i want to make a list of every picture with it's average rating in the picture view. Therefor i had made a avgRating function (gets the id of the picture and r

startpage with different layout

2008-10-15 Thread nomex
hey, i want to make a startpage with completly different layout from the other pages. i found some infos to change the layout with $this->layout = 'xyz_layout'; but i don't know how to implement this function in the home controller! thx for your help! greetings! --~--~-~--~~--