[Top][All Lists]

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

Re: Tasks roadmap -- [Goal]: Klaus' architecture

From: Klaus Weiss
Subject: Re: Tasks roadmap -- [Goal]: Klaus' architecture
Date: Sun, 06 May 2007 12:19:52 +0200

> Try to request index.php/Index/view/lang/es_ES for example.

Here is an updated version. Now you can click on the links as usual
instead of typing in the URL by hand.

I've also added several important constants and variables, especially
for people who work on templates.

With this constant it is now easy to integrate images. It always refers
to the webroot position which is normally at /site/webroot. Within this
directory there are currently two directories namely `css` and `images`.

Now an image tag can look like this:

<img src="<?= SITE_WEBROOT; ?>/images/gnus_90.jpg" ... >

Another new variable which can be used within templates is $pageCLink.
I've started to use $page as a prefix for variables which should
normally not be changed inside a template. $pageTitle for example should
be only edited by a controller action. If it isn't changed by it it will
use the constant SITE_NAME which is defined in the config file.

Back to $pageCLink. $pageCLink is a string which always looks like the
current URL.

If the URL looks like
<http://localhost/gnuherds/index.php/Index/view/lang/en_EN>. It also
knows how to display the URL if mod_rewrite isn't enabled.

You can see the usage of $pageCLink now in
the /site/view/elements/header_Language.html file. In addition I've
updated the URL handler. If for example two identical parameters are
given: index.php/.../lang/en_EN/lang/es_ES always the LAST given
parameter will be used.

$pageCLink takes care of that and won't display
index.php/.../lang/en_EN/lang/es_ES but index.php/.../lang/es_ES.

Attachment: gnuherds.tar.gz
Description: application/compressed-tar

reply via email to

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