[dev] Create a Horde Module Problem through Skeleton

lakmali Baminiwatta lakmali8781 at gmail.com
Mon Nov 22 08:23:41 UTC 2010


hi,

I got the skeleton module from git and configured it. It also had few issues
in the code which I got resolved and I was successfully configured a new
module.
If anyone get a problem configuring new module through skeleton module in
git, I may be able to help.


Thank You!

On Sun, Nov 21, 2010 at 10:31 PM, lakmali Baminiwatta <lakmali8781 at gmail.com
> wrote:

> hi,
>
> As I found in module/lib/base.php file after the line,
>
> // Module base library
> require_once MODULE_BASE . '/lib/Module.php';
>
> I tested with some echos. I found that it does not go beyond that point. In
> the Module.php file I have
>
> <?php
> class Module{
>     /**
>      * Build Module's list of menu items.
>      */
>     function getMenu($returnType = 'object')
>     {
>         global $conf, $registry, $browser, $print_link;
>         $menu = new Horde_Menu(Horde_Menu::MASK_ALL);
>         $menu->add(Horde::applicationUrl('list.php'), _("List"),
> 'user.png', $registry->getImageDir('horde'));
>         if ($returnType == 'object') {
>             return $menu;
>         } else {
>             return $menu->render();
>         }
>     }
> }
>
> I can not find why it is not working after require point of this file.
>
> Thank You!
>
> On Sun, Nov 21, 2010 at 8:25 PM, lakmali Baminiwatta <
> lakmali8781 at gmail.com> wrote:
>
>> hi,
>>
>> Thanks for your reply.. But it did not show any errors even after turning
>> on error message display. Is there any body who successfully configured a
>> new horde module through skeleton module. For me when I click on the menu
>> where my new module link is appeared it shows an empty page. Only left menu
>> is loaded. I configured the new module through the horde administrative user
>> and there it shows as "Application is ready". But even the title of the new
>> module is not getting loaded. Can somebbody consider my issue?
>>
>> Thank You!
>>
>>
>>
>>
>> On Fri, Nov 19, 2010 at 6:48 AM, Luis Felipe Marzagao/Andamentos <
>> lfbm.andamentos at gmail.com> wrote:
>>
>>> Em 18/11/10 14:58, lakmali Baminiwatta escreveu:
>>>
>>> hi,
>>>>
>>>> I have configured Horde in fedora and now I am trying to create a new
>>>> horde
>>>> module. For that I've been following
>>>> http://wiki.horde.org/CreatingYourFirstModule?referrer=Doc%2FDev
>>>>
>>>> So I got skeleton module and followed the given steps there (replaced
>>>> skeleton strings, add new registry entry).
>>>>
>>>> So I was able to add a new module which assigned "horde" menu as its
>>>> parent.
>>>>
>>>> But when I click on the new module in the menu , it displays an empty
>>>> page.
>>>> No headers or footers are displayed. Only the left menu is displayed.
>>>>
>>>> So what is being missing ? Please be kind enough to pay attention to my
>>>> problem.
>>>>
>>>> Thank You!
>>>>
>>>> regards,
>>>> baminiwatta
>>>>
>>>> Turn on error display messages in /etc/php.ini, restart httpd and then
>>> reload the page. Maybe it helps.
>>>
>>> --
>>> Horde developers mailing list - Join the hunt:
>>> http://horde.org/bounties/
>>> Frequently Asked Questions: http://horde.org/faq/
>>> To unsubscribe, mail: dev-unsubscribe at lists.horde.org
>>>
>>
>>
>


More information about the dev mailing list