CodeIgniter Validation-Library Probleme mit PHP 4

Okt 22, 2009 by Benjamin    No Comments    Posted under: Coding

Die CodeIgniter-Validation-Library zum Überprüfen von Formularen hat mit PHP 4 ein Problem.

Wer die Fehlermeldung

Message: Undefined property: ...

in seiner View erhält kann sich mit

$data['this'] = $this;

im Controller behelfen. So wird das $this in der View erreichbar und somit sind auch die Validation-Values zugreifbar.

Got anything to say? Go ahead and leave a comment!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Mein Skillset

  • OOP
  • Java
  • Android
  • Facebook Entwicklung: FBML & Co.
  • PHP mit CodeIgniter, Zend Framework
  • Javascript / AJAX mit jQuery
  • MySQL
  • (X)HTML, CSS, XML, JSON etc.
  • SVN zum source code management (SCM)
  • Kontakt

    Mail: mail {at} benjaminmock.de
    Mobil: 0176 32077839

    Your Name(required) / Ihr Name (Pflichtfeld)

    Your Email (required) / Ihre Email (Pflichtfeld)

    Your message / Ihre Nachricht

  • Kategorien

    Benjamin Mock