Witam.
Mam taki kod:

  1. class Controller_Site extends Controller_Core {
  2. public function action_index()
  3. {
  4. $address = $this->request->param('id');
  5. $site = ORM::factory('Site',8);
  6. $this->template->content=View::factory('site/show')
  7. ->bind('site',$site);
  8. }
  9. }


i taki view
  1. <?php print_r($site->title); ?>


Wydaje mi się że wszystko jest ok, ale $content w template nic nie wyświetla.
Jak w view dam
  1. <?php print_r($site); ?>

To wtedy wyświetla
Cytat
Model_Site Object ( [_table_name:protected] => sites [_has_one:protected] => Array ( ) [_belongs_to:protected] => Array ( ) [_has_many:protected] => Array ( ) [_load_with:protected] => Array ( ) [_validation:protected] => [_object:protected] => Array ( [id] => 8 [title] => Hello World [content] =>

cześćexclamation.gif
[lang] => 1 [translation] => 0 [category] => 0 [keywords] => hello, world [url] => Hello-World ) [_changed:protected] => Array ( ) [_original_values:protected] => Array ( [id] => 8 [title] => Hello World [content] =>

cześćexclamation.gif
[lang] => 1 [translation] => 0 [category] => 0 [keywords] => hello, world [url] => Hello-World ) [_related:protected] => Array ( ) [_valid:protected] => 1 [_loaded:protected] => 1 [_saved:protected] => [_sorting:protected] => [_foreign_key_suffix:protected] => _id [_object_name:protected] => site [_object_plural:protected] => sites [_table_columns:protected] => Array ( [id] => Array ( [type] => int [min] => -2147483648 [max] => 2147483647 [column_name] => id [column_default] => [data_type] => int [is_nullable] => [ordinal_position] => 1 [display] => 10 [comment] => [extra] => auto_increment [key] => PRI [privileges] => select,insert,update,references ) [title] => Array ( [type] => string [column_name] => title [column_default] => [data_type] => varchar [is_nullable] => [ordinal_position] => 2 [character_maximum_length] => 250 [collation_name] => utf8_general_ci [comment] => [extra] => [key] => [privileges] => select,insert,update,references ) [content] => Array ( [type] => string [character_maximum_length] => 65535 [column_name] => content [column_default] => [data_type] => text [is_nullable] => [ordinal_position] => 3 [collation_name] => utf8_general_ci [comment] => [extra] => [key] => [privileges] => select,insert,update,references ) [lang] => Array ( [type] => string [column_name] => lang [column_default] => [data_type] => varchar [is_nullable] => [ordinal_position] => 4 [character_maximum_length] => 10 [collation_name] => utf8_general_ci [comment] => [extra] => [key] => [privileges] => select,insert,update,references ) [translation] => Array ( [type] => int [min] => -2147483648 [max] => 2147483647 [column_name] => translation [column_default] => [data_type] => int [is_nullable] => [ordinal_position] => 5 [display] => 10 [comment] => [extra] => [key] => [privileges] => select,insert,update,references ) [category] => Array ( [type] => int [min] => -2147483648 [max] => 2147483647 [column_name] => category [column_default] => [data_type] => int [is_nullable] => [ordinal_position] => 6 [display] => 10 [comment] => [extra] => [key] => [privileges] => select,insert,update,references ) [keywords] => Array ( [type] => string [character_maximum_length] => 65535 [column_name] => keywords [column_default] => [data_type] => text [is_nullable] => [ordinal_position] => 7 [collation_name] => utf8_general_ci [comment] => [extra] => [key] => [privileges] => select,insert,update,references ) [url] => Array ( [type] => string [column_name] => url [column_default] => [data_type] => varchar [is_nullable] => [ordinal_position] => 8 [character_maximum_length] => 250 [collation_name] => utf8_general_ci [comment] => [extra] => [key] => [privileges] => select,insert,update,references ) ) [_updated_column:protected] => [_created_column:protected] => [_serialize_columns:protected] => Array ( ) [_primary_key:protected] => id [_primary_key_value:protected] => 8 [_table_names_plural:protected] => 1 [_reload_on_wakeup:protected] => 1 [_db:protected] => Database_MySQL Object ( [_connection_id:protected] => e98693e293defee7604421beb1e2aed03a0fa182 [_identifier:protected] => ` [last_query] => SELECT `menu`.`name`, `links`.`title`, `links`.`link`, `links`.`role` FROM `menu` JOIN `links` ON (`menu`.`id` = `links`.`id_menu`) WHERE `menu`.`position` = 1 AND `menu`.`lang` = 'pl-pl' AND `menu`.`show` = 1 AND `links`.`show` = 1 [_instance:protected] => default [_connection:protected] => Resource id #73 [_config:protected] => Array ( [type] => MySQL [connection] => Array ( [hostname] => localhost [database] => kohanacms [persistent] => ) [table_prefix] => [charset] => utf8 [caching] => ) ) [_db_group:protected] => [_db_applied:protected] => Array ( ) [_db_pending:protected] => Array ( ) [_db_reset:protected] => 1 [_db_builder:protected] => [_with_applied:protected] => Array ( ) [_cast_data:protected] => Array ( ) [_errors_filename:protected] => site )


Jak wyświetlić sam title?

EDIT:
Już działa, w utworzonym wcześniej modelu miałem metodę get i to było problemem facepalmxd.gif