<DIV>Thanks, that's what i meant.</DIV>
<DIV>Another question that I hope i can get the answer from the expert:</DIV>
<DIV>- I have a DB of quite a few tables. Running scaffold is no problem with every single table. Using has_a, has_many (not really work) to display data is ok. But if I want to:</DIV>
<DIV>- Add an Artist (this is done by the add.tt created by Scaffold) and then add Cds that belong to that artist. My question is:</DIV>
<DIV>1- Using CDBI can I call another sub in different Controller (e.g. call [sub add_cd] in music::C::CDBI:: cd from music::C::CDBI::artist in any sub using $c->foward(...) , not sure what to put in ). I'm sure that I read this somewhere, but cannot remember</DIV>
<DIV> </DIV>
<DIV>2- From add.tt in /Artist I add an artist, then how can I pass the artistid to the add.tt in /Cd.</DIV>
<DIV> </DIV>
<DIV>These are just simple relationship question, but I just can't figure out. Please help</DIV>
<DIV> </DIV>
<DIV>Thanks <BR><BR><B><I>Marcus Ramberg <marcus@thefeed.no></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><BR><BR>
<DIV><SPAN class=gmail_quote>On 10/5/05, <B class=gmail_sendername>Will Smith</B> <<A href="mailto:willbelair@yahoo.com">willbelair@yahoo.com</A>> wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>hi,</DIV>
<DIV>Can i pass a param from an html page into te search method:</DIV>
<DIV>----------</DIV>
<DIV>$c->stash->{artist} = music::M::CDBI::Artist->search_like(name=>'%$my_parameter%'); ### my_parameter is the name field from an html page that call the sub</DIV>
<DIV>---------</DIV>
<DIV>Thanks</DIV></BLOCKQUOTE></DIV><BR>$c->stash->{artist} = music::M::CDBI::Artist->search_like(name=>$c->req->param('my_parameter').'%');<BR><BR>Like this?<BR><BR>-- <BR>With regards<BR>Marcus Ramberg _______________________________________________<BR>Catalyst mailing list<BR>Catalyst@lists.rawmode.org<BR>http://lists.rawmode.org/mailman/listinfo/catalyst<BR></BLOCKQUOTE><p>
                <hr size=1>Yahoo! for Good<br>
<a href="http://store.yahoo.com/redcross-donate3/">Click here to donate</a> to the Hurricane Katrina relief effort.