<script> $(document).ready(function() { $("#form_report").select2({ tags:<?php echo Model_Creature::getList(); ?> , tokenSeparators: [","]}); $("#form_diving_shop").select2({ tags:<?php echo Model_Post::getTypeaheadList('diving_shop'); ?> , tokenSeparators: [","]}); $("#form_location").select2({ tags:<?php echo Model_Post::getTypeaheadList('location'); ?> , tokenSeparators: [","]}); $("#form_point").select2({ tags:<?php echo Model_Post::getTypeaheadList('point'); ?> , tokenSeparators: [","]}); });
public function view() { $this->tags = Model_Creature::getList(); }