Hallo Community,
Ich hab wieder mal ein kleines Forum problem: und zwar möchte ich mit throw new UserInputException('error', 'betroffenes_feld'); einen Input Fehler erzeugen.
Bis jetzt hab ich folgenden Code:
Alles anzeigen
Das Problem ist, dass ich danach nur noch eine weiße Seite sehe.
Kann mir da einer helfen? ( Wenn ich nur z.B Echo $this->error mache, dann komt nur eine weiße Seite mit dem Error ).
Danke
mfg
Cristalix
Ich hab wieder mal ein kleines Forum problem: und zwar möchte ich mit throw new UserInputException('error', 'betroffenes_feld'); einen Input Fehler erzeugen.
Bis jetzt hab ich folgenden Code:
Quellcode
- class UserInputException extends Exception implements PrintableException {
- /**
- * @name __construct
- * @param string $Error
- * @param string $InputID
- * @access public
- * @return void
- */
- public function __construct($Error = '', $InputID) {
- $this->Error = $Error;
- $this->InputID = $InputID;
- }
- /**
- * @name Show
- * @access public
- * @return void
- */
- public function Show() {
- PBF::TPL()->Assign(array(
- 'UserException['.$this->InputID.']' => $this->Error,
- 'ExceptionInput['.$this->InputID.']' => 'class="RedInput"'
- ));
- }
- }
Das Problem ist, dass ich danach nur noch eine weiße Seite sehe.

Danke
mfg
Cristalix
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von Cristalix ()