Saturday, December 17, 2011
Friday, December 16, 2011
Yii loop through Parent Model's Id
$categoryModel = Category::model();
$categoryData = $categoryModel->findAll( array('order'=>'category_name',
'condition'=>'super_category_id=:supcatid',
'params'=>array(':supcatid'=>$mySuperCategoryId)
));
foreach($categoryData as $categoryDataValue)
{
echo $categoryDataValue->category_id;
$productModel = Product::model();
$productData = $productModel->findAll( array('order'=>'product_name',
'condition'=>'product_category_id=:catid',
'params'=>array(':catid'=>$categoryDataValue->category_id)
));
}//end of foreach
Amy Adams
Born August 20, 1975 - An actress with a knack for light comedy, Amy Adams was born in Italy and raised in Castle Rock, Colorado. After high school, she studied dance and worked in regional dinner theater until age 20, when she moved to Minnesota with her family after being spotted by a visiting Minneapolis producer and recruited to work in his dinner theater there. She landed her first film role in the satiric 1999 comedy Drop Dead Gorgeous, which was, appropriately enough, set in Minnesota. After appearing in the independent comedy Psycho Beach Party, Adams made guest appearances on a number of television series, including That 70s Show, Buffy the Vampire Slayer, and The West Wing; she was also cast as a regular in Manchester Prep, a TV spin-off of the hit film Cruel Intentions. Manchester Prep, however, was never aired when its network decided that the show's sexual content was too strong for television, although several episodes were eventually re-edited into a direct-to-video feature entitled Cruel Intentions 2. 2002 proved to be a very busy year for Adams, who appeared in no fewer than four features, including the eagerly anticipated Catch Me if You Can, featuring Leonardo DiCaprio and Tom Hanks.
Subscribe to:
Posts (Atom)