Kinda of wide question.
Did you try with
$myDBrow = $this->myClass->find($this->params['id']);
-- Simone
Hi.
$myDBrow is just a random variable of your own that is going to contain the object returned by the find() function. This object will be the MyClass instance that has the 'id' you specified ($this->params['id'] that stands for the id value from GET or POST).
MyClass is your model object.
If you create a MyClass model with : php script/generate model Myclass
And than added
var $models = "myclass";
in your controller.
you can than access this model through $this->myclass and use methods found in AkActiveRecord.php on it.
Beside the documentation (http://www.akelos.org/docs) a good way to learn about functions is to look at the Xref : http://www.akelos.org/xref/nav.html?index.html
Mainly learn those classes : - AkActionController.php - AkActiveRecord.php - AkActionView.php - AkActionView/helpers/*
Best regards.
1 to 5 of 5