WTF loks at namespaces LikecontentSection && Section
my VIEW
<?php echo $form->create('Section',array
('plugin'=>'likecontent','controller'=>'sections','action'=>'add'));?>
<fieldset>
<legend><?php __('Add');?></legend>
<?php
echo
$form->input('parent',array('empty'=>'('.__('general
category',true).')'));
echo $form->input('title');
echo $form->input('desc');
echo $form->input('more');
?>
MODEL && before save debug
Array
(
[LikecontentSection] => Array
(
[view] => yes
[Section] => Array
(
[parent_id] =>
[title] => strona główna
[desc] => strona glowna agreguje wsytzskie
najnowsze informacje ktore pojawiaja sie na stronie naszej funmdacji
[more] =>
)
[modified] => 2009-09-09 17:45:35
[created] => 2009-09-09 17:45:35
[lft] => 1
[rght] => 2
)
)
Why i have 2 dimension and stupid query
Query: INSERT INTO `likecontent_sections` (`view`, `modified`,
`created`, `lft`, `rght`, `url`) VALUES ('yes', '2009-09-09 17:45:35',
'2009-09-09 17:45:35', 1, 2, '')
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---