Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorgizmo
     
    Hello,
    I'm encountering problems when listing items in the scaffold: while adding and editing functionalities work fine, items are not listed and an "Fatal error: Call to a member function getContentColumns() on a non-object in [...]/tmp/views/app/views/feeds/compiled/listing.tpl.php on line 16" error is displayed. It seems that ${Object_name}->getContentColumns() is not working properly. Is there something i am doing wrong?
    Thanks

    (I've also tried generating all the scaffold without the --sintags flag: in this case the sortable table headers are displayed, but another error occurs: "Fatal error: Call to a member function get() on a non-object in [...]/tmp/views/app/views/feeds/compiled/listing.tpl.php on line 53").
    • CommentAuthormerindol
     

    I had a similar error, all worked except the add feature. I figured out that the problem was I named my model "param" and it seemed to get into conflict with the "params" array used by Akelos for GET parameters.

    Maybe your problem is quite similar.

    • CommentAuthorgizmo
     
    Thanks for your reply, merindol - i've solved my problem. I named my model "feeds" and not "feed", and the final "s" messed up everything.

    (Perhaps a more severe control on naming conventions should be added to scaffold generating script?)