| |||||
| Auteur | Sujet : Model View Controller (MVC) - Architecture des applications PHP |
|---|---|
Publicité | Posté le 11-04-2007 à 13:06:14 ![]() ![]() |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Djebel1 Nul professionnel |
|
Shinuza This is unexecpected |
--------------- Mains power can kill, and it will hurt the entire time you’re dying from it. |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
masklinn í dag viðrar vel til loftárása | traduit en Java ou en PHP, oui, ça correspond à l'appel d'une méthode statique `find` de la classe `Article`, donc un truc du style
Message édité par masklinn le 11-04-2007 à 16:55:50 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Shinuza This is unexecpected | Ouais mais la t'utilise l'operateur de résolution de portée
--------------- Mains power can kill, and it will hurt the entire time you’re dying from it. |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
MagicBuzz | même pas peur |
Publicité | Posté le 11-04-2007 à 17:50:38 ![]() ![]() |
Shinuza This is unexecpected |
Bon apparement on peut faire truc plus ou moins similaire à Ruby en utilisant la composition Edit :
Fonctionne, mais
ne fonctionne pas (Fatal error: Access to undeclared static property: test::$phpisapity on line 8) Message cité 2 fois Message édité par Shinuza le 11-04-2007 à 18:28:40 --------------- Mains power can kill, and it will hurt the entire time you’re dying from it. |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
gizmo |
|
Shinuza This is unexecpected | Oui, mais non, je suis en php 5, j'ai mis var comme j'aurais pu mettre public dans le deuxième exemple. Pareil pour le constructeur dans le premier --------------- Mains power can kill, and it will hurt the entire time you’re dying from it. |
leflos5 On est ou on est pas :) |
|
Shinuza This is unexecpected | Bah c'est juste histoire de bypasser une instanciation dont je me sers de toute façon.
--------------- Mains power can kill, and it will hurt the entire time you’re dying from it. |
gizmo |
|
Shinuza This is unexecpected | Je sais bien --------------- Mains power can kill, and it will hurt the entire time you’re dying from it. |
supermofo Hello World ! | Putin on est a laube du 3eme millenaire |
Shinuza This is unexecpected | C'est moi ou le lookup en php4 est limité à levels? --------------- Mains power can kill, and it will hurt the entire time you’re dying from it. |
FlorentG |
|
Shinuza This is unexecpected | Il rale que pour les propriétés, les méthodes non.
--------------- Mains power can kill, and it will hurt the entire time you’re dying from it. |
esox_ch | Bonjour,
|
skeye | Je dirais que c'est au controleur de construire ton tableau, mais qu'il n'a pas à savoir que ça va générer des requêtes sql...c'est à la couche métier de le décider quand on lui file le tableau.
--------------- Can't buy what I want because it's free - |
Djebel1 Nul professionnel | +1 avec skeye.
|
esox_ch | Hello,
|
Djebel1 Nul professionnel | Non, je pense que ce qu'il dit, c'est que le controller analyse les paramètres $_GET pour construire le tableau, et transmet ce tableau au model. Le model se charge de construire la requête sql à partir du tableau. |
esox_ch | D'accord,
|
supermofo Hello World ! |
A part son job normal le ctrl n a pas de rapport avec ton probleme. Ton controller n'est pas Dieu et ton App n'est pas defini par le controller. Par contre il connait les grandes etapes du programme ... |
esox_ch | Non je sais bien, mais disons que dans ma tête je vois les variables provenant de l'url comme des trucs qui appartiennent au contrôleur et que donc je me disais que c'était peut-être mieux de faire tout le traitement chez lui ... Maintenant c'est vrai que le modèle ferait mieux l'affaire |
naeh | Salut à tous |
Shinuza This is unexecpected | Pour commencer, je suis pas sur qu'un forum sera la meilleures des choses.
--------------- Mains power can kill, and it will hurt the entire time you’re dying from it. |
naeh | un blog ? pourquoi pas |
Shinuza This is unexecpected | Surtout coté backoffice, tu vas t'éclater, surtout si t'as un gestionnaire de crud --------------- Mains power can kill, and it will hurt the entire time you’re dying from it. |
naeh | gestionnaire de crud ? c'est quoi ?
|
Shinuza This is unexecpected | http://www.google.com/search?q=crud
Message cité 1 fois Message édité par Shinuza le 05-05-2007 à 21:58:41 --------------- Mains power can kill, and it will hurt the entire time you’re dying from it. |
naeh |
|
Shinuza This is unexecpected | Tu verras que c'est d'une utilité surimportante quand tu vas chercher la vitesse de deploiement.
--------------- Mains power can kill, and it will hurt the entire time you’re dying from it. |
Shinuza This is unexecpected | http://fr3.php.net/manual/fr/ref.funchand.php
--------------- Mains power can kill, and it will hurt the entire time you’re dying from it. |
naeh | je viens de visiter ton lien et effectivement ça aide
Message édité par naeh le 06-05-2007 à 00:39:40 |
supermofo Hello World ! | Ca a un nom ce genre d objet. On les trouve juste au dessus des objets qui gere les donnees. |
Publicité | Posté le ![]() ![]() |

| Sujets relatifs | |
|---|---|
| Comment créer une architecture propre et fonctionelle... | [Débutant] Webdesigner a besoin d'aide pour PHP |
| script PHP style explorateur windows | PHP et MS SQL |
| [PHP] envoi d'images qui se dimentionne et s'ajoute direct sur 1page | Afficher le temps utilisé pour générer une page PHP |
| [PHP] connexion bdd différente selon page locale ou sur serveur ? | Afficher une image générée par un script PHP dans un PDF ? |
| Utilisation d'une variable en Flash depuis PHP | Erreur de forum PHP |
| Plus de sujets relatifs à : Model View Controller (MVC) - Architecture des applications PHP | |





