gnuherds-app-dev
[Top][All Lists]
Advanced

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

Re: If it is possible, avoid complexity


From: Klaus Weiss
Subject: Re: If it is possible, avoid complexity
Date: Mon, 23 Apr 2007 08:06:00 +0200

> You have already exposed a lot of architecture features which the project 
> needs!.
> 
> Just one comment: If it is possible, avoid complexity.
> 

I will try it :)

>   For example, it is good the webapp does not need mod_rewrite, being the 
> format of the URL requests similar to the current one. That is to say, the 
> webapp have a site-entry-point directory, and includes libraries from others 
> directories, which are not accessible via HTTP requests.
> 
> What do you think?
> 

Yes mod_rewrite isn't absolutely needed. The webapp can always be
reached through index.php?cntr=foo&action=bar&args=bar2. However we need
something (probably a function within the HTML helper) to describe URLs
easy. So that the webapp itself can decide whether it display URLs like
in mod_rewrite or the standard way.

In each of the files in our MVC branch there is the following method
used to solve the access problem:

define('VISIBLE', true)

this is defined only in index.php all other files (except controller and
model classes) must make this condition:

if(!defined('VISIBLE')) exit();

Controller and Model files don't need this because they should only
contain non-executable class definitions.






reply via email to

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