Not signed in (Sign In)
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthormvitjiten
    • CommentTimeMay 9th 2008
     
    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
    • CommentTimeMay 9th 2008
     

    Kinda of wide question.

    Did you try with

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

    -- Simone

    • CommentAuthormvitjiten
    • CommentTime7 days ago
     
    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
    • CommentTime5 days ago edited
     

    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
    • CommentTime4 days ago edited
     
    Thanks very much Merindol. & hpatoio
    Its all good stuffs.
Add your comments
    Username Password
  • Format comments as