Skip to content

Commit

Permalink
Merge branch '0.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabrice Luraine committed Jul 31, 2009
2 parents 4765289 + 5ae91ce commit 0132ed1
Show file tree
Hide file tree
Showing 19 changed files with 220 additions and 125 deletions.
14 changes: 14 additions & 0 deletions CHANGES
@@ -1,5 +1,19 @@
[Changes since last revision]

[2009-07-31: VERSION 0.4.1]

* [NEW] support for HEAD requests [#12 state:resolved]
* [FIXED] internal routes are at the begining of the lib so can't be bypassed [#13 state:resolved]
* [FIXED] internal CSS we're renderred with a layout if defined [#14 state:solved]
* [FIXED] bug in file_is_text
* [CHANGED] removes mime_content_type compatibility function and add file_mime_content_type() [#15 state:resolved]
* [NEW] Adding an $exit optional parameter to the stop_and_exit() function
* [FIXED] Fixing flash bug while redirect_to [#16 state:resolved]
* [FIXED] Fixing redirect_to bug with multiple parameters [#17 state:resolved]
* [FIXED] Fixing bug setting an error_layout [#18 state:resolved]
* [FIXED] buggy url_for()
* [NEW] url rewriting support by explictly setting option('base_uri')

[2009-07-18: VERSION 0.4]

* rewrites error notices features:
Expand Down
14 changes: 11 additions & 3 deletions LISEZMOI.mkd
Expand Up @@ -60,7 +60,6 @@ Les routes sont testées dans l'ordre dans lequel elle sont déclarées. Le chem
http://localhost/my_app/?u=/my/path
http://localhost/my_app/?uri=/my/path
http://localhost/my_app/index.php?/my/path
http://localhost/my_app/index.php/my/path
http://localhost/my_app/?/my/path

Quand les méthodes `PUT` ou `DELETE` ne sont pas supportés (comme dans le cas d'une soumission de fomulaire HTML), on utilise le paramètre `_method` dans une requête `POST`: sa valeur surchargera la méthode `POST`.
Expand All @@ -70,8 +69,6 @@ Quand les méthodes `PUT` ou `DELETE` ne sont pas supportés (comme dans le cas
<p>... your form fields</p>
<p><input type="submit" value="Update"></p>
</form>

*[TODO]: url rewriting*

Les masque peuvent contenir des paramètres nommés, dont la valeur seront ensuite accessible via la fonction `params()`

Expand Down Expand Up @@ -326,6 +323,17 @@ Les options utilisées par Limonade ont par défaut les valeurs suivantes:
// X-SENDFILE: for Apache and Lighttpd v. >= 1.5,
// X-LIGHTTPD-SEND-FILE: for Apache and Lighttpd v. < 1.5

## Helpers ##

Consultez le code source et l'API pour de plus amples informations sur les helpers disponibles.

### url_for ###

Utilisez la fonction `url_for` afin de créer automatiquement des urls bien formées quel que soit le dossier dans lequel est installée votre application sur le serveur web.

Si vous utilisez l'url rewriting, vous devez spécifier explicitement l'option `base_uri` (par défaut `/chemin_de_mon_appli/?`).


## Gestion des erreurs ##

### Halt ###
Expand Down
16 changes: 12 additions & 4 deletions README.mkd
Expand Up @@ -4,7 +4,7 @@ Limonade is a PHP micro framework for rapid web development and prototyping.

It's inspired by frameworks like [Sinatra](http://www.sinatrarb.com/) or [Camping](http://github.com/why/camping/tree/master) in Ruby, or [Orbit](http://orbit.luaforge.net/) in Lua. It aims to be simple, lightweight and extremly flexible.

Limonade provides a set functions that complete the PHP basic set, while keeping consistency with native functions and sitting up on them.
Limonade provides functions that complete the PHP basic set, while keeping consistency with native functions and sitting up on them.

Limonade is easy to learn and provides everything that you can expect from a modern framework (MVC, REST, ...)

Expand Down Expand Up @@ -63,7 +63,6 @@ The search is performed with a path given through browser URL:
http://localhost/my_app/?u=/my/path
http://localhost/my_app/?uri=/my/path
http://localhost/my_app/index.php?/my/path
http://localhost/my_app/index.php/my/path
http://localhost/my_app/?/my/path

When `PUT` or `DELETE` methods are not supported (like in HTML form submision), you can use the `_method` parameter in `POST` requests: it will override the `POST` method.
Expand All @@ -73,8 +72,6 @@ When `PUT` or `DELETE` methods are not supported (like in HTML form submision),
<p>... your form fields</p>
<p><input type="submit" value="Update"></p>
</form>

*[TODO]: url rewriting*

Patterns may include named parameters. Associated values of those parameters are available with the `params()` function.

Expand Down Expand Up @@ -339,6 +336,17 @@ Default Limonade options have the following values:
// X-SENDFILE: for Apache and Lighttpd v. >= 1.5,
// X-LIGHTTPD-SEND-FILE: for Apache and Lighttpd v. < 1.5

## Helpers ##

See sources or api for more about all available helpers.

### url_for ###

You can use the `url_for` function for rendering limonade urls. They will be well formed whatever the folder in the document root your application is installed on your web server.

If you want to use url rewriting, you need to set explicitly the `base_uri` option ( default is `/your_file_path/?`)


## Halting and error handling ##

### Halt ###
Expand Down
15 changes: 5 additions & 10 deletions TODO
Expand Up @@ -3,24 +3,19 @@
- more unit and functional tests
- adding documentation about changes between 0.3 and 0.4
- update README files with new features / changes
- in run(), passing to all functions that require it
- in run(), passing to all functions that require it
- implements stop_and_exit() call with register_shutdown_function
- params function should be singular like option ?
- adding a debug() helper
- new redirect_to (support for https)
- adding url_rewrite features
- enhance url_for with url rewrite
- add header X-Limonade-PHP: (lim version name); (cosmetic ;-)

- adding HEAD HTTP support (#12 HTTP HEAD request results in a 500 response code)
- use array_walk_recursive for unregister_globals
- add a LIM_START_MEMORY with memory_get_usage()
- add a simple helper to benchmark (execution time / memory)
- add a render_partial function (shortcut for render, without the layout param...)
- adding gzip option (http://fr.php.net/manual/en/zlib.configuration.php#ini.zlib.output-compression)
- simple form helper with XSS/CSRF protection


- remove examples/ and move it in an external depot
- more examples


- public API documentation:
- tests: tag private functions
- tests: describe in docblock header abstract definitions
Expand Down

0 comments on commit 0132ed1

Please sign in to comment.