Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthormvitjiten
     
    I stored data into a database. Now i want to retrieve the data from a particular cell of a table...
    Can any one please tell me the syntax to do the same...
    Thanks
    • CommentAuthorhpatoio
     

    Kinda of wide question.

    Did you try with

    $myDBrow = $this->myClass->find($this->params['id']);

    -- Simone

    • CommentAuthormvitjiten
     
    Where should i keep this sentence and what is myDBrow and myclass refers to.
    another question is from where u get this syntax.since i am new to akelos and php i am unable to get this all.
    Where can i find a proper documentation and completely generalised syntax with some explanation about it.Because i think without proper doc and more generalised syntax it is difficult to get the work done.
    • CommentAuthormerindol
     

    Hi.

    About find() :

    • $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.

    Documentation :

    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.

    • CommentAuthormvitjiten
     
    Thanks very much Merindol. & hpatoio
    Its all good stuffs.