Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorfvillarreal
     
    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
     

    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
     

    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.

    • CommentAuthorfvillarreal
     
    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
     

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

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

    • CommentAuthorKaste
     

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

    AK_APP_VENDOR_DIR
    

    is pointing to that dir.

    • CommentAuthorVBharathi
     
    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
     

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

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

    • CommentAuthorVBharathi
     
    Hi,
    I want akelos framework ebook with fullfledged examples.
    • CommentAuthorVBharathi
     
    Hi,
    what is mean by Firm class ?