Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthormetkelb
     
    Hello Akelos Community.
    First off I apreciate Kaste for answering all my questions..

    My situation now is:

    in my view 'author/show.tpl' I have a listing of all the books for that author but I do not know how to add a sortable link for the book listing
    as it is in the 'book/listings.tpl'... I am using a partial "_books.tpl" in my author/show.tpl and i have the following included

    ------------------------
    {loop content_columns}
    <th scope="col"><?php echo $pagination_helper->sortable_link($content_column) ?></th>
    {end}
    --------------------------
    the columns are links but when I click on the link to sort by I get the following error/notice

    *Notice*: DEPRECATED WARNING: AR::find('') is ambiguous and therefore deprecated, use AR::find('first',) instead in /home/debadmin/akelos/lib/Ak.php on line 80

    What are the options I can use to get to work correctly
    • CommentAuthormetkelb
     
    Oh yes by the way, here is how the link appears for the published_at column

    ?ak=/author/show/&sort=Published%2BAt&direction=desc
    • CommentAuthorKaste
     

    Check (or post) your calling code (from the controller). Calling ->find('') (with an empty string as argument) must always fail.

    • CommentAuthormetkelb
     
    which controller am i checking? book_controller OR author_controller??