gjerokrsteski / pimf-framework

Micro framework for PHP that emphasises minimalism and simplicity
pimf-framework.de
MIT License
43 stars 16 forks source link

URL Schema #2

Closed spresnac closed 10 years ago

spresnac commented 10 years ago

Is the URL Schema (index.php?controller=x&action=y) fixed or is there a more readable option avail like /blog/entry/1 ?

gjerokrsteski commented 10 years ago

Yes, there are more readable-url options. Please take a look at the unit tests for better understanding, whitch combinations are possible. In view days a documentation about the routing and a general overview will be available to. https://github.com/gjerokrsteski/pimf-framework/blob/master/tests/Pimf/RouteTest.php https://github.com/gjerokrsteski/pimf-framework/blob/master/tests/Pimf/RouterTest.php

If you want to learn how it works, than please take a look at the PIMF-Blog budle and follow the instructions https://github.com/gjerokrsteski/pimf-blog

spresnac commented 10 years ago

Wow, looks very nice. I will usw PIMF in my next project for testing. The URL stuff is one of the "most important" things. Thanks for answering, i'll wait for the docu ;)

gjerokrsteski commented 10 years ago

Please find the documentation here https://github.com/gjerokrsteski/pimf-framework/wiki/6c.-Routing :-)

spresnac commented 10 years ago

That looks perfect for my needs. Can't wait to check it out in a real world app ;)