Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorpweil
     
    I've run generate scaffold on my tables. Now when I check the pages i my browser, they all say "Fatal error: Call to a member function get() on a non-object in /Users/pweil/Documents/akelos/toolkit/app/views/organizations/compiled/listing.tpl.php on line 53

    (substitute other table names where it says "organizations")

    the relevant line in this file reads:

    <td class="field"><?php echo $organizations->get($content_column) ?></td>

    Any ideas?
    •  
      CommentAuthorbermi
     

    Shouldn't it be

    $organization->get($content_column)
    

    If you give to the scaffold generator a plural name for the model it will take it as valid, but the organizations_controller will try to look for an organization model (in singular)