phpgroupware-developers
[Top][All Lists]
Advanced

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

Re: [Phpgroupware-developers] phpgw on eyeOS


From: Chris Weiss
Subject: Re: [Phpgroupware-developers] phpgw on eyeOS
Date: Mon, 21 Aug 2006 08:14:06 -0500

On 8/21/06, fallingdutch <address@hidden> wrote:
> > My perfekt world would be (so far):
> >  - phpgroupware/index.php calls each application and "draws" the
> > surroundings, like navbar, sidemenu (idots) etc.
>
> phpgroupware/index.php acts as a dispatcher already.  But the app knows
> if it needs to output the header/navbar/footer etc, there is not a
> generic solution to this as you propose.

I don't understand why there is no generic solution? (because i dont know
(yet) much about the way phpgroupware grew and its applications work in detail)
My (very simple) solution would be eg:
fill an array with all the data and then let index.php parse
the information into the given template or not.


the reason is that phpgw uses css and js, whose blocks are supposed to
be in in the <head>.  if phpgw isn't drawing the head of the page then
it can't do this.  however, most broswers will deal with these blocks
being the body, so if you are willing to break spec and cause problems
for certain browsers (not IE and Firefox) then it's possibly to make a
new flag to accomplish this.

> >  - the applications only "draw" themselfs nothing else, no header,
> > footer etc - so using the applications
> >    without navbar etc is done by just calling eg
> > phpgroupware/todo/index.php
>
> this won't work, as phpgroupware/todo/index.php just redirects to the
> dispatcher with the correct method call

if the application would "only" fill an array with data it would work imho


which would require a complete redesign of phpgw's UI and templating subsystem.

> >  - possibility to have phpgwapi in another directory (so it can be
> > used as a "library" on eyeOS), can be done
> >    by PHPGW_INCLUDE_ROOT, am i right?

this is what I ment by the above "where to store the framework"

I've never tried moving phpgwapi outside the phpgw dir, but I don't
see why this wouldn't work.


> >  - in eyeOS the include directory is not set static but asked from the
> > "os" by $appinfo['appdir'] so -
> >    setting $SERVER_ROOT to $appinfo['appdir'] would be a good idea, i
> > think
> >  - possibilty to have the application at the root so /todo instead
> > of /phpgroupware/todo: then on eyeOS it would
> >    be /apps/todo, /apps/sshclient and /apps/project instead
> > of /apps/phpgroupware/todo, /apps/phpgroupware/sshclient etc.
>
> I am lost here.

too bad :( any other?


phpgw can be made to run in any dir name, or even in the root of the
site if you wish.  not sure how mixing it with other apps in the same
dir would work




reply via email to

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