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 getting different behaviour on my dev box compared to production.

    dev: php 5.2.0 on Mac OS X (MAMP)
    prod: php 5.1.6 on Linux (Fedora 6)

    I have a simple Ajax call to the following action

    function refreshDevices() {

    $this->renderPartial('topdevices'); - Works on dev but not prod (Fatal error: No tpl.php, js.tpl or delegate template found for _topdevices in /usr/share/akelos/lib/AkActionView.php on line 230

    $this->renderPartial('devices/topdevices'); Works on both

    }

    I guess this is something to do with include paths?

    All the best

    Cyril
    • CommentAuthormerindol
     

    Your template is named _topdevices.tpl right ? Because the Akelos convention for partials names is to start by an underscore. Seems the Mac version is smarter and find your topdevices.tpl. When calling $this->renderPartial('topdevices') it's looking for the conventioned partial (_topdevices.tpl), but when calling $this->renderPartial('devices/topdevices') it gets topdevices.tpl.

    Unless I'm wrong :p

    best regards.