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.
  1.  
    Hi All,

    I'm new with akelos and I'd like to know how and where I must create my own classes.
    I'd like to create a set of classes and be accessed from my controller/models. Any ideas?

    Thanks.

    Fernando.
    • CommentAuthorsuthern
    • CommentTimeFeb 22nd 2008
     

    I second this request. I'm going to be tying into a Quickbooks XML set of classes (framework), and I'd love to know where to stick the files and where to put my 'include' statement. Right now the QB classes are in the /apps/APPNAME/app/qb folder.

    •  
      CommentAuthorriffed
    • CommentTimeFeb 23rd 2008 edited
     

    Following rails conventions I would put them in a folder called lib. The lib directory holds application code that doesn’t fit neatly into a model, view, or controller. The lib directory is also a good place to put code that’s shared among models, views, or controllers.

  2.  
    Ok, that's what I imagined.
    The last thing is, which path do we have to set to access lib directory, I'm not really sure where we are (the path) so we can include PHP files.

    Thanks you for your time.
    •  
      CommentAuthorriffed
    • CommentTimeFeb 29th 2008 edited
     

    ahh.. under app. so you would have app/controllers app/lib app/models etc..

    see: http://wiki.akelos.org/directory-structure

    • CommentAuthorKaste
    • CommentTimeMar 1st 2008
     

    Instead of app/lib you can put your files in app/vendor. The constant

    AK_APP_VENDOR_DIR
    

    is pointing to that dir.

    • CommentAuthorVBharathi
    • CommentTimeMar 3rd 2008
     
    Hi,
    i was created two controllers which are category and subcategory.
    In the category table fields are: id,category;
    In the subcategory table fields are:id,subcategory,category_id.
    Here the problem was araised:"I dont know,how to compare the category.id and subcategory.category_id in the method."
    Pls Clarify this doubt.
    Thanking U
    • CommentAuthorKaste
    • CommentTimeMar 3rd 2008
     

    Sorry, but I don't get it ;-)

    Is this related to the topic "creating your own classes"?

    • CommentAuthorVBharathi
    • CommentTimeMar 11th 2008
     
    Hi,
    I want akelos framework ebook with fullfledged examples.
    • CommentAuthorVBharathi
    • CommentTimeMar 12th 2008
     
    Hi,
    what is mean by Firm class ?
Add your comments
    Username Password
  • Format comments as