Offtopic topic #22

Gestart doorSanderc4.196 reacties3.574 weergaven

4.197 berichten · pagina 36 van 280

Berichten
9.454
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Antonn schreef:
Eerdere citaten tonen
Bewaakertje schreef:
Server 2 ligt er bij mij niet uit?
Bij NOC wel schater
Ja, bij mij ligt het er ook uit!
Boeien, ik heb geen webhosting op server 2 xd
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Ik wel, en die werkte gewoon yummieMaar hij staat weer op groen bij noc.
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Ja foutje, thanks biggrin
0
Berichten
9.454
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Xjessex schreef:
Ik wel, en die werkte gewoon yummieMaar hij staat weer op groen bij noc.
Zal er wel iets mis zijn geweest met de noc?

toevoeging op 10 juni 2012, 181713:
Lennard schreef:
Ja foutje, thanks biggrin
Wist het xd
0
Berichten
12.729
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Jammer dat ik geen adverteer te goed kan gebruiken om een domein te kopen.sadley
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Hmmm, zend framework is echt wel nice biggrin
0
Toms

Lid

Berichten
2.471
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Weet iemand nog mooi WP thema. Zoiets als op me site staat mag, maar het liefste iets anders.
0
Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Kreeg net gewoon bluescreen emo
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Even aan het knutselen met mijn nieuwe host!
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Wow in zend maak je forms in een apart bestand biggrinWel overzichtelijk:

[COLOR= #0000BB]<?php[/COLOR]

[URL="http://www.php.net/class"]class[/URL] Application_Form_Login extends Zend_Form
[COLOR= #007700]{[/COLOR]
    
    [URL="http://www.php.net/public"]public[/URL] [COLOR= #007700]function[/COLOR] init[COLOR= #007700]()
    {[/COLOR]
        [COLOR= #0000BB]$usernameLabel[/COLOR] [COLOR= #007700]= new[/COLOR] Zend_Form_Element_Text[COLOR= #007700]([/COLOR][COLOR= #DD0000]username[/COLOR][COLOR= #007700],[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR]
            [COLOR= #DD0000]label[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #DD0000]Gebruikersnaam[/COLOR]
        [COLOR= #007700]));[/COLOR]
        
        [COLOR= #0000BB]$passwordLabel[/COLOR] [COLOR= #007700]= new[/COLOR] Zend_Form_Element_Password[COLOR= #007700]([/COLOR][COLOR= #DD0000]password[/COLOR][COLOR= #007700],[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR]
            [COLOR= #DD0000]label[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #DD0000]Wachtwoord[/COLOR]
        [COLOR= #007700]));[/COLOR]
        
        [COLOR= #0000BB]$this[/COLOR][COLOR= #007700]->[/COLOR]addElements[COLOR= #007700]([/COLOR][URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR]
            [COLOR= #0000BB]$usernameLabel[/COLOR][COLOR= #007700],[/COLOR]
            [COLOR= #0000BB]$passwordLabel[/COLOR]
        [COLOR= #007700]));
    }
    
}[/COLOR]

?>


En dan in je controller voeg je de form toe aan je view

[COLOR= #0000BB]<?php[/COLOR]

[URL="http://www.php.net/class"]class[/URL] IndexController extends Zend_Controller_Action
[COLOR= #007700]{[/COLOR]

    [URL="http://www.php.net/public"]public[/URL] [COLOR= #007700]function[/COLOR] init[COLOR= #007700]()
    {[/COLOR]
        [COLOR= #FF8000]/* Initialize action controller here */[/COLOR]
    [COLOR= #007700]}[/COLOR]

    [URL="http://www.php.net/public"]public[/URL] [COLOR= #007700]function[/COLOR] indexAction[COLOR= #007700]()
    {[/COLOR]
        [COLOR= #0000BB]$form[/COLOR] [COLOR= #007700]= new[/COLOR] Application_Form_Login[COLOR= #007700]();[/COLOR]
        
        [COLOR= #0000BB]$this[/COLOR][COLOR= #007700]->[/COLOR]view[COLOR= #007700]->[/COLOR]form [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$form[/COLOR][COLOR= #007700];
    }


}[/COLOR]
0
Berichten
9.454
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Minecraft server vast gelopen volgens mij sadley
0
Berichten
21.633
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Raaoul schreef:
Wow in zend maak je forms in een apart bestand biggrinWel overzichtelijk:

[COLOR= #0000BB]<?php[/COLOR]

[URL="http://www.php.net/class"]class[/URL] Application_Form_Login extends Zend_Form
[COLOR= #007700]{[/COLOR]
    
    [URL="http://www.php.net/public"]public[/URL] [COLOR= #007700]function[/COLOR] init[COLOR= #007700]()
    {[/COLOR]
        [COLOR= #0000BB]$usernameLabel[/COLOR] [COLOR= #007700]= new[/COLOR] Zend_Form_Element_Text[COLOR= #007700]([/COLOR][COLOR= #DD0000]username[/COLOR][COLOR= #007700],[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR]
            [COLOR= #DD0000]label[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #DD0000]Gebruikersnaam[/COLOR]
        [COLOR= #007700]));[/COLOR]
        
        [COLOR= #0000BB]$passwordLabel[/COLOR] [COLOR= #007700]= new[/COLOR] Zend_Form_Element_Password[COLOR= #007700]([/COLOR][COLOR= #DD0000]password[/COLOR][COLOR= #007700],[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR]
            [COLOR= #DD0000]label[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #DD0000]Wachtwoord[/COLOR]
        [COLOR= #007700]));[/COLOR]
        
        [COLOR= #0000BB]$this[/COLOR][COLOR= #007700]->[/COLOR]addElements[COLOR= #007700]([/COLOR][URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR]
            [COLOR= #0000BB]$usernameLabel[/COLOR][COLOR= #007700],[/COLOR]
            [COLOR= #0000BB]$passwordLabel[/COLOR]
        [COLOR= #007700]));
    }
    
}[/COLOR]

?>
En dan in je controller voeg je de form toe aan je view

[COLOR= #0000BB]<?php[/COLOR]

[URL="http://www.php.net/class"]class[/URL] IndexController extends Zend_Controller_Action
[COLOR= #007700]{[/COLOR]

    [URL="http://www.php.net/public"]public[/URL] [COLOR= #007700]function[/COLOR] init[COLOR= #007700]()
    {[/COLOR]
        [COLOR= #FF8000]/* Initialize action controller here */[/COLOR]
    [COLOR= #007700]}[/COLOR]

    [URL="http://www.php.net/public"]public[/URL] [COLOR= #007700]function[/COLOR] indexAction[COLOR= #007700]()
    {[/COLOR]
        [COLOR= #0000BB]$form[/COLOR] [COLOR= #007700]= new[/COLOR] Application_Form_Login[COLOR= #007700]();[/COLOR]
        
        [COLOR= #0000BB]$this[/COLOR][COLOR= #007700]->[/COLOR]view[COLOR= #007700]->[/COLOR]form [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$form[/COLOR][COLOR= #007700];
    }


}[/COLOR]


Wow cool, alleen nobody cares
0
Jvdw

Lid

Berichten
4.321
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Iemand die versand heeft van forms in fancybox?
0
Berichten
10.857
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien

Den Haag

Jvdw schreef:
Iemand die versand heeft van forms in fancybox?
Ja een hele goede vriend van me, hij heet Google spreek hem eens even aan.
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren