Hello
I have this question but I can not find any clear answer :
In tutorial 2 you have this to create and return fields
<?php
class ArticlePage extends Page {
static $db = array(
'Date' => 'Date',
'Author' => 'Text'
);
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab('Root.Content.Main', new DateField('Date'), 'Content');
$fields->addFieldToTab('Root.Content.Main', new TextField('Author'), 'Content');
return $fields;
}
}
this works fine
my problem is the following when you want to build function in the Page_Controler how do you pass the field values to it
(maybe I don't get how this is workin
class ArticlePage_Controller extends Page_Controller {
function MyFunction () {
&myVar = SomefiledValue
}
}
I have been looking but did not find any simple answer to that
So if anyone ...
Thanks