Not signed in (Sign In)
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthormrcyril
    • CommentTimeMay 2nd 2008
     
    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
    • CommentTimeMay 12th 2008
     

    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.

Add your comments
    Username Password
  • Format comments as