phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-developers] Coding Assistance


From: Joe Vandegrift
Subject: [Phpgroupware-developers] Coding Assistance
Date: Tue, 25 Feb 2003 10:23:32 -0500

I am looking at the notes application in order to get a better understanding
of 
this three 
tier architecture style.  I am attempting to use the notes and skel 
modules as a bases for my 
first application.  These two modules really aren't as 
consistent with each other as I 
would have hoped.
In the notes module in "/inc/class.ui.inc.php" in the 
"display_app_header()" 
function I replaced "'notes_header'" with 
"'myappname_header'" and when I
call this function I get the error "Template Error: 
loadfile: myappname_header
is not a valid handle.  Halted".  It gives this error when it 
tries to exute 
the line of code "$this->t-fp('app_header','myappname_header');  What is 
the 
proper way to configure my applciations header.  Could someone explain the 

following lines of code or show me where to find the internals of the
template 

object?

                function display_app_header()
                {
                        $this->t-
>set_file(array('header' => 'header.tpl'));
            $this->t-
>set_block('header','notes_header');

                        $this->set_app_langs();

                        $this-
>t->set_var('link_categories',$GLOBALS['phpgw']-
>link('/index.php','menuaction=preferences.uicategories.index&cats_app=notes&cats_level=True&global_cats=True'));
                        $this-
>t->set_var('link_notes',$GLOBALS['phpgw']-
>link('/notes/index.php','menuaction=notes.ui._list'));
                        $this->t-
>fp('app_header','notes_header');

                        $GLOBALS['phpgw']->common-
>phpgw_header();
                        echo parse_navbar();
                }

Thanks, you can also reply 
directly to me at address@hidden






reply via email to

[Prev in Thread] Current Thread [Next in Thread]