[Top][All Lists]
[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.
- Re: New proposed webapp Architecture, (continued)
- Re: New proposed webapp Architecture, Klaus Weiss, 2007/04/09
- Re: New proposed webapp Architecture, Davi Leal, 2007/04/09
- Re: [out of cvs]: Smarty, CakePHP, PDO, ..., Davi Leal, 2007/04/09
- Re: [out of cvs]: Smarty, CakePHP, PDO, ..., Klaus Weiss, 2007/04/09
- Re: New proposed webapp Architecture, Klaus Weiss, 2007/04/09
- Re: New proposed webapp Architecture, Klaus Weiss, 2007/04/21
- Re: New proposed webapp Architecture, Davi Leal, 2007/04/21
- Re: New proposed webapp Architecture, Klaus Weiss, 2007/04/22
- Re: team coordination, Davi Leal, 2007/04/22
- Re: If it is possible, avoid complexity, Davi Leal, 2007/04/22
- Re: If it is possible, avoid complexity,
Klaus Weiss <=
- Re: If it is possible, avoid complexity, Victor Engmark, 2007/04/23
- Re: If it is possible, avoid complexity, Davi Leal, 2007/04/23
- Re: If it is possible, avoid complexity, Victor Engmark, 2007/04/23
- Re: Microformats and logical URLs -- mod_rewrite, Davi Leal, 2007/04/23
- Re: Microformats and logical URLs -- mod_rewrite, Victor Engmark, 2007/04/24
- Re: Microformats and logical URLs -- mod_rewrite, Davi Leal, 2007/04/25
- Re: Microformats and logical URLs -- mod_rewrite, Victor Engmark, 2007/04/25
- Re: Microformats and logical URLs -- mod_rewrite, Davi Leal, 2007/04/25
- Re: Microformats and logical URLs -- mod_rewrite, Victor Engmark, 2007/04/25
- Re: Microformats and logical URLs -- mod_rewrite, Davi Leal, 2007/04/25