Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthormrcyril
     
    Hi

    I am having difficulty understanding how to use render partial with a collection.

    I am trying to use an Ajax call from a tag cloud link which then displays the search results .

    Here is the method in my controller:

    function search() {

    $tag_name = $this->params['id'];

    $tags= $this->Tag->find('all', array('conditions' => array("name = ?",$tag_name), 'limit' => 4));

    $this->render(array('partial' => 'search_result', 'collection' => $tags));

    }

    The Ajax call throws back

    "Warning: Missing template /website/app/views/page/search.tpl in /usr/share/akelos/lib/AkActionController.php on line 1082"

    if I don't try and use a collection and just call $this->render(array('partial' => 'search_result')) then the partial render works as expected.

    Anyone know what I a might be doing wrong?

    best wishes

    Cyril
    • CommentAuthorKaste
     

    IMHO this is a bug and you should TRAC this.

    reason: render :partial_collection does not set performed? to true so it double-renders (don't know the equivalent akelos-semantics/-terms right now)