jonassanoj / dbpro

DB Project 1
19 stars 1 forks source link

Markdown/Language Change #82

Closed tilman-schieber closed 12 years ago

tilman-schieber commented 12 years ago

Wrap up from last week:

ali-naseri commented 12 years ago

Hello, we doing localhost/de/main/home it changes the language and loads the home page, but doesn't keep the URL in the address bare like {localhost/de/main/home} We added this two lines in config/routes.php as example for German version. $route['de'] = 'util/lang/deutsch'; $route['de/(:any)'] = 'util/lang/deutsch'; regards

jonassanoj commented 12 years ago

Wrap up from last week:

  • Fix the stylesheet to apply correctly (e.g. h2)

complete

Language Selection

  • put the language selection in the footer or header bar as a small horizontal list of language abbreviations. Optional: flags instead.

complete

  • implement routing rules so localhost/de gives the German version, localhost/fa the Persian version, etc. (preferably link to the util controller). Look in the config/routes.php file to set this up.

complete

  • improve this routing so /de/main/home sets the language to German and then calls main::home() etc. This should work with any language and any type of URI. Look if you can do it with routes.php, if not look at controllers/test.php to see an example for URI rewriting.

complete

  • create a search field and add it wherever you find appropriate. It should correctly return the search results if you click it. You can use the search icon already provided in img/unused.

complete