Annoying things to do in the code

From the CouchSurfing Wiki, an informal workspace which anyone can edit.

Jump to: navigation, search

THIS PAGE IS OUTDATED

This page refers to some coding that needs to be done on the CouchSurfing website
( or some rules and details about how to write code for the website )

to do:

  • replace all occurences of php_self with self_form() or self_link()
  • replace all occurrences of is_admin with something more fine-grained
  • replace all occurrences of echo_sub_nav with button() or navbar().
  • replace array[fieldname] with array['fieldname'] (note single quotes)
  • replace all font tags with something more appropriate (span classs or span id, for example)
  • make the code MVC
  • clean up the group mess
  • use objects (like place) in more places
Personal tools