Answer the question
In order to leave comments, you need to log in
Kohana how to pull array from controller to View?
Controller
class Controller_Main extends Controller_Template {
public $template = 'index';
public function action_index(){
$data = array ("name" => "вася", "age"=>"29", "title"=>"данные человека");
$this->template->content = View::factory('news',$data);
}
}
foreach ($data AS $key => $value) {
echo "Вывести все данные";
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question