Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Where does the 'errormsg' session var display?
  • Posted: 24.08.2006, 06:05
     
    barnett2
    rank:
    Freshman Freshman
    registered:
     October 2002
    Status:
    offline
    last visit:
    24.08.06
    Posts:
    10
    I'm working on a module, and I'm trying to use pnSessionSetVar('errormsg',"An error occured") to display errors. However, none of my error messages show up, even when I purposely set them.

    Does anyone know how to fix this? I have included in my pnrender template, but there doesn't seem to be a corresponding call for an errormsg.

    Thanks.
  • Posted: 24.08.2006, 13:52
     
    Simon
    rank:
    Steering Committee Steering Committee
    registered:
     December 2002
    Status:
    online
    Posts:
    13418

    Code

    <!--[pngetstatusmsg]-->


    will report either a status message, or an error message if it exists. If both exist, it will return the error message.

    --
    Regards,
    Simon

    itbegins.co.uk - Zikula Consulting

    Please read the Support Guide
  • Posted: 24.08.2006, 23:45
     
    barnett2
    rank:
    Freshman Freshman
    registered:
     October 2002
    Status:
    offline
    last visit:
    24.08.06
    Posts:
    10
    Thanks!

    Stuff like this should really be on the Wiki...
  • Posted: 25.08.2006, 01:18
     
    Simon
    rank:
    Steering Committee Steering Committee
    registered:
     December 2002
    Status:
    online
    Posts:
    13418
    Feel free to add it! Everyone registered here has the ability to modify the Wiki - please lend a hand...

    --
    Regards,
    Simon

    itbegins.co.uk - Zikula Consulting

    Please read the Support Guide

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula