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

Dizkus

Bottom
Do I need an index.php file?
  • Posted: 21.03.2005, 20:28
     
    jediping
    rank:
    Helper Helper
    registered:
     November 2004
    Status:
    offline
    last visit:
    12.03.07
    Posts:
    387
    Over at the NOC (http://noc.postnuke.com/projects/project-tracker/), I had someone submit a bug that, because I didn't have an index.php file, they couldn't get the project to work. Is this the case? I would assume not, since it seems to work in .76, and I know it works in .75 'cause I use it all the time.

    I'm figuring the problem might be an initialization problem, which I hope I just fixed. Am I right, or is he? :)
  • Posted: 21.03.2005, 21:35
     
    Slugger
    rank:
    Professional Professional
    registered:
     March 2003
    Status:
    offline
    last visit:
    13.08.06
    Posts:
    1185
    You don't need index.php for your module but you do need index.php in your root directory.

    Slugger
  • Posted: 21.03.2005, 21:36
     
    rank:
    Moderator Moderator
    registered:
     March 2002
    Status:
    offline
    last visit:
    26.08.08
    Posts:
    7720
    There's no need for an index.php file in a module. You'll probably find that the user was incorrectly linking the module in the menu block {<modname>} vs. [<modname>] producing an old style URL.

    -Mark</modname></modname>
  • Posted: 21.03.2005, 23:52
     
    jediping
    rank:
    Helper Helper
    registered:
     November 2004
    Status:
    offline
    last visit:
    12.03.07
    Posts:
    387
    Confused now. I use {} to link to the module on my menu block. Is that the old-school? Because when I use [], it doesn't work. Not sure what you're saying. Of course, I haven't had lunch and I've been hungry three hours, so I might just be reading wrong. :)
  • Posted: 21.03.2005, 23:59
     
    rank:
    Moderator Moderator
    registered:
     March 2002
    Status:
    offline
    last visit:
    26.08.08
    Posts:
    7720
    [<modname>] generates modules.php?op=modload&name=<modname> i.e. an old style URL where as {<modname>} generates index.php?module=<modname> i.e. a new style URL.

    -Mark</modname></modname></modname></modname>
  • Posted: 22.03.2005, 00:11
     
    jediping
    rank:
    Helper Helper
    registered:
     November 2004
    Status:
    offline
    last visit:
    12.03.07
    Posts:
    387
    Okay. That's what I thought, but then I got confused. That happens easily. ;) So my module is all new-ish, so that's good. I'm pleasantly surprised that people have actually been investigating the module. :)

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula