Code |
Context
$country = Set::classicExtract($project['ReachingCountry'], '{n}.id');
$country = $country[rand(0, (count($country) - 1))];
$id = "3061"
$project = array(
"Project" => array(
"id" => "3061",
"user_id" => "0",
"title" => "",
"proponent_organization" => "",
"leaders" => "",
"founder_oganizations" => "",
"start_year" => "0",
"finish_year" => "0",
"type_id" => "0",
"goal_id" => "0",
"country_id" => "0",
"city" => "",
"address" => "",
"responsible" => "",
"phone" => "",
"fax" => null,
"articles" => "",
"prizes" => "",
"summary" => "",
"facebook" => null,
"linkedin" => null,
"twitter" => null,
"youtube" => null,
"links" => null,
"image" => null,
"pitch" => "",
"votes" => "12",
"created" => "2011-08-14 01:42:14"
),
"Country" => array(
"id" => null,
"code" => null,
"name" => null
),
"Type" => array(
"id" => null,
"description" => null
),
"Goal" => array(
"id" => null,
"description" => null
),
"Vote" => array(),
"ReachingCountry" => array()
)
$youtubelink = 0
$country = array()
ProjectsController::view() - APP/controllers/projects_controller.php, line 160
Dispatcher::_invoke() - APP/cake/dispatcher.php, line 204
Dispatcher::dispatch() - APP/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83