| |||||
| Auteur | Sujet : Model View Controller (MVC) - Architecture des applications PHP |
|---|---|
masklinn í dag viðrar vel til loftárása | Reprise du message précédent :
En Python, il y a SQLAlchemy qui est basé sur le Data Mapper Pattern si tu veux. Message cité 1 fois Message édité par masklinn le 28-07-2007 à 15:15:22 --------------- 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? |
Publicité | Posté le 28-07-2007 à 15:12:39 ![]() ![]() |
supermofo Hello World ! |
Message édité par supermofo le 28-07-2007 à 17:43:21 --------------- Echange de 3000+ liens PR 3 -> 5, me pm urgent ! |
ratibus | PHPDoctrine fait partie des projets sélectionnés pour le Google Summer of Code 2007 donc projet très actif cet été |
FlorentG |
|
masklinn í dag viðrar vel til loftárása |
Message cité 2 fois Message édité par masklinn le 29-07-2007 à 13:06:38 --------------- 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? |
skeye |
m'enfin. Message cité 1 fois Message édité par skeye le 29-07-2007 à 13:07:44 --------------- Can't buy what I want because it's free - |
FlorentG |
|
Publicité | Posté le 29-07-2007 à 13:31:30 ![]() ![]() |
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 |
Message cité 1 fois Message édité par masklinn le 29-07-2007 à 13:38:39 --------------- 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? |
FlorentG | Ouais dans Cake c'est automatique un UserController va charger automatiquement UserModel |
masklinn í dag viðrar vel til loftárása |
Message édité par masklinn le 29-07-2007 à 13:39:24 --------------- 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? |
FlorentG |
Pour la view je sais pas, maintenant pour le model c'est vrai, cf. doc de uses :
|
masklinn í dag viðrar vel til loftárása |
Message cité 1 fois Message édité par masklinn le 29-07-2007 à 13:40:38 --------------- 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? |
skeye | Ah oui, mal lu. --------------- Can't buy what I want because it's free - |
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? |
FlorentG |
|
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? |
skeye |
--------------- Can't buy what I want because it's free - |
TheRom_S | ça dépend des types de controleurs, y'a bien un front controleur, des controleurs spécialisés dans certaines parties du site (pour faire court) et certains apprécient aussi d'utiliser un controleur spécifique pour chaque formulaire qui correspond à un seul modèle et deux view max (formulaire entrée et affichage liste sortie). Y'a même des MVC où tu donne la structure des données en XML et après les 3 facettes du MVC sont générées auto ... en utilisant par exemple le nom générique de la structure de données --------------- The Rom's, à votre service |
FlorentG |
|
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? |
FlorentG |
|
masklinn í dag viðrar vel til loftárása |
Message cité 1 fois Message édité par masklinn le 29-07-2007 à 13:56:12 --------------- 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? |
FlorentG |
Mais justement, on se retrouve avec une instance
|
Dj YeLL $question = $to_be || !$to_be; | Y'a un truc que j'ai du mal à saisir
--------------- Gamertag: CoteBlack YeLL |
masklinn í dag viðrar vel til loftárása |
Edit: à moins naturellement que PHP soit tellement stupide qu'ils soient obligés de créer une instance de Post pour pouvoir la rendre dispo, ce qui naturellement ne m'étonnerait pas tant que ça, mais c'est un détail d'implémentation dû à un langage débile, parce que ça n'a ni sens ni intérêt. Message cité 2 fois Message édité par masklinn le 29-07-2007 à 14:22:54 --------------- 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? |
vanadium N° Atomique : 23 | Masklinn > $this->Post est forcément une instance de la class Post, puisqu'on peut très bien faire :
Message cité 3 fois Message édité par vanadium le 29-07-2007 à 14:25:37 |
vanadium N° Atomique : 23 |
|
Je@nb Kindly give dime | C'est pas ça qu'il a dit |
Kyfun Les choses se passent ! |
--------------- Comme dirait quelqu'un de beaucoup plus avisé que moi, quelquefois c'est toi qui cognes le bar mais d'autres fois, et ben, c'est le bar qui te cogne. |
FlorentG |
Message cité 1 fois Message édité par FlorentG le 29-07-2007 à 14:30:47 |
vanadium N° Atomique : 23 |
Message cité 1 fois Message édité par vanadium le 29-07-2007 à 14:35:23 |
Kyfun Les choses se passent ! |
Effectivement ça m'éclaire Message édité par Kyfun le 29-07-2007 à 14:38:10 --------------- Comme dirait quelqu'un de beaucoup plus avisé que moi, quelquefois c'est toi qui cognes le bar mais d'autres fois, et ben, c'est le bar qui te cogne. |
Skateinmars | C'est le public qui joue non ?
--------------- Feedback HAV |
FlorentG |
Message édité par FlorentG le 29-07-2007 à 14:53:37 |
Kyfun Les choses se passent ! | Je sais qu'on est en PHP la, mais ça s'applique aussi au java ça ? --------------- Comme dirait quelqu'un de beaucoup plus avisé que moi, quelquefois c'est toi qui cognes le bar mais d'autres fois, et ben, c'est le bar qui te cogne. |
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 |
Même en java je peux le faire, c'est dire Exemple en Python:
Et justement, pour des méthodes genre findAll pour lesquelles on a absolument aucun besoin des infos contenues dans une instance, c'est complètement logique d'en faire des classmethods
Mais effectivement, j'avais oublié qu'en PHP, "->" ne peut être utilisé que pour accéder aux membres d'une instance et pas à ceux d'une classe, ça m'aurait mis la puce à l'oreille, j'ai mal joué sur le coup Message cité 1 fois Message édité par masklinn le 29-07-2007 à 15:34:09 --------------- 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? |
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 | |





