IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

MkFramework Discussion :

le Nom de ma table en base ou le nom du Module Pose problème ?


Sujet :

MkFramework

  1. #21
    Membre éprouvé
    Homme Profil pro
    Benevole
    Inscrit en
    Mai 2004
    Messages
    1 678
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Côte d'Ivoire

    Informations professionnelles :
    Activité : Benevole
    Secteur : Enseignement

    Informations forums :
    Inscription : Mai 2004
    Messages : 1 678
    Points : 953
    Points
    953
    Par défaut
    Citation Envoyé par imikado Voir le message
    Pouvez vous poster le code source de votre page "blanche" : le code html pour voir si il n'y a pas une erreur php
    Code html : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
     
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>DemoGuiriddo</title>
    <link rel="stylesheet" type="text/css" href="css/main.css" media="screen" />
    <script src="js/main.js" type="text/javascript"></script>
    <link rel="alternate" type="application/rss+xml" title="RSS" href="index.php?:nav=article::newsrss"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    </head>
    <body>
     
    <div class="main">
    	<div class="menu"></div>
    	<div class="content">
    		 <link rel="stylesheet" type="text/css" href="guriddo/css/jquery-ui.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="guriddo/css/trirand/ui.jqgrid.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="guriddo/css/ui.multiselect.css" media="screen" />
     
    <script src="guriddo/js/jquery.min.js" type="text/javascript"></script>
    <script src="guriddo/js/trirand/i18n/grid.locale-en.js" type="text/javascript"></script>
    <script src="guriddo/js/trirand/jquery.jqGrid.min.js" type="text/javascript"></script>
    <script src="guriddo/js/jquery-ui.min.js" type="text/javascript"></script>
     
    <script type="text/javascript">
    $.jgrid.no_legacy_api = true;
    $.jgrid.useJSON = true;
    $.jgrid.defaults.width = "600";
    </script>
     
     <div>
              <table id='CODEPROJET'></table>
    		  <div id='pagerCODEPROJET'></div>
    		  <script type='text/javascript'>
                              jQuery(document).ready(function($) {jQuery('#CODEPROJET').jqGrid(
                            {
                                                                    "editurl": 'index.php?:nav=MONPROJET::postJson',
                    "mtype": "POST",
                                                    
                                    "hoverrows":false,
                                    "viewrecords":true,
                                    "jsonReader":{
                                                      "repeatitems":false,
                                                      "subgrid":{
                                                              "repeatitems":false
                                                      }
                                    },
                                    "xmlReader":{
                                            "repeatitems":false,
                                            "subgrid":{
                                                    "repeatitems":false
                                            }
                                    },
                                    "gridview":true,
                                    "viewrecords": true,
                                    "url":"index.php?:nav=MONPROJET::listJson",
                                    "rowNum":5,
                                    "sortname":"CODEPROJET",
                                    "sortorder":"desc",
                                    "height":120,
                                    "datatype":"json",
                                                                    "rowList":[10,20],
                                                                                                    "altRows":true,
                                                                                                    "sortable": true,
                                                                    "colModel":[
                                            
                                                                                                    {
                                                                                                            
                                                            'label':"NOMPROJET",
                                                                                                            
                                                            'name':"NOMPROJET",
                                                                                                     
                                                                                                     'editable': true,
                                                                                                     
                                                    },
                                                                                                    {
                                                                                                            
                                                            'label':"DATEPROJET",
                                                                                                            
                                                            'name':"DATEPROJET",
                                                                                                     
                                                                                                     'editable': true,
                                                                                                     
                                                    },
                                                                                                    {
                                                                                                            
                                                            'label':"CODEREP",
                                                                                                            
                                                            'name':"CODEREP",
                                                                                                     
                                                                                                     'editable': true,
                                                                                                     
                                                    },
                                                                            ],
                                    "postData":{
                                            "oper":"grid"
                                    },
                                    "prmNames":{
                                            "page":"page",
                                            "rows":"rows",
                                            "sort":"sidx",
                                            "order":"sord",
                                            "search":"_search",
                                            "nd":"nd",
                                            "id":"id",
                                            "filter":"filters",
                                            "searchField":"searchField",
                                            "searchOper":"searchOper",
                                            "searchString":"searchString",
                                            "oper":"oper",
                                            "query":"grid",
                                            "addoper":"add",
                                            "editoper":"edit",
                                            "deloper":"del",
                                            "excel":"excel",
                                            "subgrid":"subgrid",
                                            "totalrows":"totalrows",
                                            "autocomplete":"autocmpl"
                                    },
                                    "loadError":function(xhr,status, err){ 
                                            try {
                                                    jQuery.jgrid.info_dialog(jQuery.jgrid.errors.errcap,'<div class="ui-state-error">'+ xhr.responseText +'</div>', jQuery.jgrid.edit.bClose,{buttonalign:'right'});
                                            } catch(e) { 
                                                    alert(xhr.responseText);
                                            } 
                                    },
                                    "pager":"#pagerCODEPROJET",
                                    
                                    
                                      
                            });
                            
                                                    
                                                     jQuery("#CODEPROJET").navGrid("#pagerCODEPROJET",
                    { edit: 1, add: 1, del: 1,view: 1, align: "left" ,search:false},
                    { closeAfterEdit: true }
                );
                        
                            
                            jQuery('#CODEPROJET').jqGrid('filterToolbar',{"stringResult":true});
                            
                             
                                                    
                            
     });
     
     
     
     
     
     </script>      
     </div>
     
     
     
    	</div>
    </div>
     
    </body>
    </html>
    <script>
                    var activePopup='';
                    function openPopupDebug(id){
                            if(id!=activePopup){
                                    closePopup();
                            }
     
                            var a=getById(id);
                            if(!a){
                            }else if(a.style.display=="none"){
                                    a.style.display="block";
                                    activePopup=id;
                            }else if(a.style.display=="block"){
                                    a.style.display="none";
                                    activePopup=id;
                            }
                    }
                    function closePopup(){
                            if(activePopup){
                                    var b=getById(activePopup);
                                    if(b){
                                            b.style.display="none";
                                    }
                            }
                    }
                    function showHideDebugBar(){
                            var a=getById('debugBar');
                            if(a){
                                    btnName="Masquer";
     
                                    if(a.style.display=='none'){
                                            a.style.display='block';
                                            var b=getById('debugBtn');
                                            if(b){
                                                    b.style.width='100%';
                                            }
                                    }else{
                                            a.style.display='none';
                                            var b=getById('debugBtn');
                                            if(b){
                                                    b.style.width='auto';
                                            }
                                            btnName=">>";
                                    }
                                    
                                    var c=getById('btnHidebar');
                                    if(c){
                                            c.value=btnName;
                                    }
                            }
                    }
                    </script><div id="debugBtn" style="position:fixed;border:2px solid #444;background:#ddd;bottom:0px;left:0px;width:100%"><div  style="float:left"><input id="btnHidebar" type="button" value="Masquer" onclick="showHideDebugBar()"/></div><div id="debugBar" style="width:100%"><strong>Time</strong>:<span style="padding:2px 4px;background:#fff">0.138s</span>&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="times" onclick="openPopupDebug('popupDebugtimes')" />&nbsp;&nbsp;&nbsp;&nbsp;<div id="popupDebugtimes" 
    			style="display:none;position:absolute;left:0px;bottom:20px;border:2px solid gray;background:white">
    			<p style="text-align:right;background:#ccc;margin:0px;"><a href="#" onclick="closePopup()">Fermer</a></p>
    			<div style="height:350px;width:800px;overflow:auto;padding:10px;">
    			<p><strong>Start &gt;&gt; End</strong> : 0.138s</p><p style="border-top:1px solid gray"><strong>Total</strong> 0.138s</p>
    			</div>
    		</div><input type="button" value="$_GET" onclick="openPopupDebug('popupDebug$_GET')" />&nbsp;&nbsp;&nbsp;&nbsp;<div id="popupDebug$_GET" 
    			style="display:none;position:absolute;left:0px;bottom:20px;border:2px solid gray;background:white">
    			<p style="text-align:right;background:#ccc;margin:0px;"><a href="#" onclick="closePopup()">Fermer</a></p>
    			<div style="height:350px;width:400px;overflow:auto;padding:10px;">
    				<pre>Array
    (
        [:nav] =&gt; MONPROJET::index
    )</pre>
    			</div>
    		</div><input type="button" value="$_POST" onclick="openPopupDebug('popupDebug$_POST')" />&nbsp;&nbsp;&nbsp;&nbsp;<div id="popupDebug$_POST" 
    			style="display:none;position:absolute;left:0px;bottom:20px;border:2px solid gray;background:white">
    			<p style="text-align:right;background:#ccc;margin:0px;"><a href="#" onclick="closePopup()">Fermer</a></p>
    			<div style="height:350px;width:400px;overflow:auto;padding:10px;">
    				<pre>Array
    (
    )</pre>
    			</div>
    		</div><input type="button" value="$_SERVER" onclick="openPopupDebug('popupDebug$_SERVER')" />&nbsp;&nbsp;&nbsp;&nbsp;<div id="popupDebug$_SERVER" 
    			style="display:none;position:absolute;left:0px;bottom:20px;border:2px solid gray;background:white">
    			<p style="text-align:right;background:#ccc;margin:0px;"><a href="#" onclick="closePopup()">Fermer</a></p>
    			<div style="height:350px;width:400px;overflow:auto;padding:10px;">
    				<pre>Array
    (
        [HTTP_HOST] =&gt; 127.0.0.1
        [HTTP_USER_AGENT] =&gt; Mozilla/5.0 (Windows NT 6.1; rv:41.0) Gecko/20100101 Firefox/41.0
        [HTTP_ACCEPT] =&gt; text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
        [HTTP_ACCEPT_LANGUAGE] =&gt; fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3
        [HTTP_ACCEPT_ENCODING] =&gt; gzip, deflate
        [HTTP_DNT] =&gt; 1
        [HTTP_REFERER] =&gt; http://127.0.0.1/mkframework/index.php?:nav=builder::edit&amp;id=DemoGuiriddo&amp;action=crudguriddo&amp;class=model_MONPROJET.php
        [HTTP_CONNECTION] =&gt; keep-alive
        [WINDIR] =&gt; C:\Windows
        [SERVER_SIGNATURE] =&gt; &lt;address&gt;Apache/2.4.9 (Win32) PHP/5.5.12 Server at 127.0.0.1 Port 80&lt;/address&gt;
     
        [SERVER_SOFTWARE] =&gt; Apache/2.4.9 (Win32) PHP/5.5.12
        [SERVER_NAME] =&gt; 127.0.0.1
        [SERVER_ADDR] =&gt; 127.0.0.1
        [SERVER_PORT] =&gt; 80
        [REMOTE_ADDR] =&gt; 127.0.0.1
        [DOCUMENT_ROOT] =&gt; C:/wamp/www/
        [REQUEST_SCHEME] =&gt; http
        [CONTEXT_PREFIX] =&gt; 
        [CONTEXT_DOCUMENT_ROOT] =&gt; C:/wamp/www/
        [SERVER_ADMIN] =&gt; admin@example.com
        [SCRIPT_FILENAME] =&gt; C:/wamp/www/mkframework/data/genere/DemoGuiriddo/public/index.php
        [REMOTE_PORT] =&gt; 6130
        [GATEWAY_INTERFACE] =&gt; CGI/1.1
        [SERVER_PROTOCOL] =&gt; HTTP/1.1
        [REQUEST_METHOD] =&gt; GET
        [QUERY_STRING] =&gt; :nav=MONPROJET::index
        [REQUEST_URI] =&gt; /mkframework/data/genere/DemoGuiriddo/public/index.php?:nav=MONPROJET::index
        [SCRIPT_NAME] =&gt; /mkframework/data/genere/DemoGuiriddo/public/index.php
        [PHP_SELF] =&gt; /mkframework/data/genere/DemoGuiriddo/public/index.php
        [REQUEST_TIME_FLOAT] =&gt; 1440675747.212
        [REQUEST_TIME] =&gt; 1440675747
    )</pre>
    			</div>
    		</div><strong>Module</strong>:<span style="padding:2px 4px;background:#fff">MONPROJET</span>&nbsp;&nbsp;&nbsp;&nbsp;<strong>Action</strong>:<span style="padding:2px 4px;background:#fff">index</span>&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="Connexions" onclick="openPopupDebug('popupDebugConnexions')" />&nbsp;&nbsp;&nbsp;&nbsp;<div id="popupDebugConnexions" 
    			style="display:none;position:absolute;left:0px;bottom:20px;border:2px solid gray;background:white">
    			<p style="text-align:right;background:#ccc;margin:0px;"><a href="#" onclick="closePopup()">Fermer</a></p>
    			<div style="height:350px;width:800px;overflow:auto;padding:10px;">
    			<h2 style="border-bottom:1px solid black">db</h2><p style="margin:0px;margin-left:10px;"><strong>firebirdExple.dsn</strong> = <span style="color:darkgreen"> firebird:host=localhost;dbname=DATACENTER/3050:C:\EVOLIS\BASE 2012-2013\MABASE.FDB</span></p><p style="margin:0px;margin-left:10px;"><strong>firebirdExple.sgbd</strong> = <span style="color:darkgreen"> pdo_firebird</span></p><p style="margin:0px;margin-left:10px;"><strong>firebirdExple.username</strong> = <span style="color:darkgreen"> SYSDBA</span></p><p style="margin:0px;margin-left:10px;"><strong>firebirdExple.password</strong> = <span style="color:darkgreen"> masterkey</span></p>
    			</div>
    		</div><input type="button" value="Config" onclick="openPopupDebug('popupDebugConfig')" />&nbsp;&nbsp;&nbsp;&nbsp;<div id="popupDebugConfig" 
    			style="display:none;position:absolute;left:0px;bottom:20px;border:2px solid gray;background:white">
    			<p style="text-align:right;background:#ccc;margin:0px;"><a href="#" onclick="closePopup()">Fermer</a></p>
    			<div style="height:350px;width:800px;overflow:auto;padding:10px;">
    			<h2 style="border-bottom:1px solid black">path</h2><p style="margin:0px;margin-left:10px;"><strong>lib</strong> = <span style="color:darkgreen"> ../../../../lib/framework/</span></p><p style="margin:0px;margin-left:10px;"><strong>data</strong> = <span style="color:darkgreen"> ../data/</span></p><p style="margin:0px;margin-left:10px;"><strong>upload</strong> = <span style="color:darkgreen"> ../data/upload/</span></p><p style="margin:0px;margin-left:10px;"><strong>log</strong> = <span style="color:darkgreen"> ../data/log/</span></p><p style="margin:0px;margin-left:10px;"><strong>img</strong> = <span style="color:darkgreen"> ../data/img/</span></p><p style="margin:0px;margin-left:10px;"><strong>i18n</strong> = <span style="color:darkgreen"> ../data/i18n/</span></p><p style="margin:0px;margin-left:10px;"><strong>cache</strong> = <span style="color:darkgreen"> ../data/cache/</span></p><p style="margin:0px;margin-left:10px;"><strong>conf</strong> = <span style="color:darkgreen"> ../conf/</span></p><p style="margin:0px;margin-left:10px;"><strong>module</strong> = <span style="color:darkgreen"> ../module/</span></p><p style="margin:0px;margin-left:10px;"><strong>plugin</strong> = <span style="color:darkgreen"> ../plugin/</span></p><p style="margin:0px;margin-left:10px;"><strong>model</strong> = <span style="color:darkgreen"> ../model/</span></p><p style="margin:0px;margin-left:10px;"><strong>layout</strong> = <span style="color:darkgreen"> ../layout/</span></p><p style="margin:0px;margin-left:10px;"><strong>view</strong> = <span style="color:darkgreen"> view/</span></p><h2 style="border-bottom:1px solid black">cache</h2><p style="margin:0px;margin-left:10px;"><strong>enabled</strong> = <span style="color:darkgreen"> 0</span></p><p style="margin:0px;margin-left:10px;"><strong>lifetime</strong> = <span style="color:darkgreen"> 0</span></p><p style="margin:0px;margin-left:10px;"><strong>autoload.enabled</strong> = <span style="color:darkgreen"> 0</span></p><h2 style="border-bottom:1px solid black">language</h2><p style="margin:0px;margin-left:10px;"><strong>default</strong> = <span style="color:darkgreen"> fr</span></p><p style="margin:0px;margin-left:10px;"><strong>allow</strong> = <span style="color:darkgreen"> fr,en</span></p><h2 style="border-bottom:1px solid black">auth</h2><p style="margin:0px;margin-left:10px;"><strong>session.use_cookies</strong> = <span style="color:darkgreen"> 1</span></p><p style="margin:0px;margin-left:10px;"><strong>session.use_only_cookies</strong> = <span style="color:darkgreen"> 1</span></p><p style="margin:0px;margin-left:10px;"><strong>session.cookie_httponly</strong> = <span style="color:darkgreen"> 1</span></p><p style="margin:0px;margin-left:10px;"><strong>session.cookie_secure</strong> = <span style="color:darkgreen"> 0</span></p><p style="margin:0px;margin-left:10px;"><strong>session.cookie_domain</strong> = <span style="color:darkgreen"> </span></p><p style="margin:0px;margin-left:10px;"><strong>session.cookie_path</strong> = <span style="color:darkgreen"> </span></p><p style="margin:0px;margin-left:10px;"><strong>session.cookie_lifetime</strong> = <span style="color:darkgreen"> </span></p><p style="margin:0px;margin-left:10px;"><strong>enabled</strong> = <span style="color:darkgreen"> 0</span></p><p style="margin:0px;margin-left:10px;"><strong>class</strong> = <span style="color:darkgreen"> plugin_auth</span></p><p style="margin:0px;margin-left:10px;"><strong>module</strong> = <span style="color:darkgreen"> auth::login</span></p><p style="margin:0px;margin-left:10px;"><strong>session.timeout.enabled</strong> = <span style="color:darkgreen"> 1</span></p><p style="margin:0px;margin-left:10px;"><strong>session.timeout.lifetime</strong> = <span style="color:darkgreen"> 1800</span></p><h2 style="border-bottom:1px solid black">acl</h2><p style="margin:0px;margin-left:10px;"><strong>class</strong> = <span style="color:darkgreen"> plugin_gestionuser</span></p><h2 style="border-bottom:1px solid black">navigation</h2><p style="margin:0px;margin-left:10px;"><strong>scriptname</strong> = <span style="color:darkgreen"> index.php</span></p><p style="margin:0px;margin-left:10px;"><strong>var</strong> = <span style="color:darkgreen"> :nav</span></p><p style="margin:0px;margin-left:10px;"><strong>module.default</strong> = <span style="color:darkgreen"> default</span></p><p style="margin:0px;margin-left:10px;"><strong>action.default</strong> = <span style="color:darkgreen"> index</span></p><p style="margin:0px;margin-left:10px;"><strong>layout.erreur</strong> = <span style="color:darkgreen"> ../layout/erreurprod.php</span></p><h2 style="border-bottom:1px solid black">urlrewriting</h2><p style="margin:0px;margin-left:10px;"><strong>enabled</strong> = <span style="color:darkgreen"> 0</span></p><p style="margin:0px;margin-left:10px;"><strong>class</strong> = <span style="color:darkgreen"> plugin_routing</span></p><p style="margin:0px;margin-left:10px;"><strong>conf</strong> = <span style="color:darkgreen"> ../conf/routing.php</span></p><p style="margin:0px;margin-left:10px;"><strong>use4O4</strong> = <span style="color:darkgreen"> 0</span></p><h2 style="border-bottom:1px solid black">security</h2><p style="margin:0px;margin-left:10px;"><strong>xsrf.enabled</strong> = <span style="color:darkgreen"> 1</span></p><p style="margin:0px;margin-left:10px;"><strong>xsrf.timeout.lifetime</strong> = <span style="color:darkgreen"> 360</span></p><p style="margin:0px;margin-left:10px;"><strong>xsrf.checkReferer.enabled</strong> = <span style="color:darkgreen"> 1</span></p><p style="margin:0px;margin-left:10px;"><strong>xss.enabled</strong> = <span style="color:darkgreen"> 1</span></p><p style="margin:0px;margin-left:10px;"><strong>xsrf.session.enabled</strong> = <span style="color:darkgreen"> 0</span></p><h2 style="border-bottom:1px solid black">log</h2><p style="margin:0px;margin-left:10px;"><strong>class</strong> = <span style="color:darkgreen"> plugin_log</span></p><p style="margin:0px;margin-left:10px;"><strong>error</strong> = <span style="color:darkgreen"> 0</span></p><p style="margin:0px;margin-left:10px;"><strong>warning</strong> = <span style="color:darkgreen"> 0</span></p><p style="margin:0px;margin-left:10px;"><strong>application</strong> = <span style="color:darkgreen"> 0</span></p><p style="margin:0px;margin-left:10px;"><strong>information</strong> = <span style="color:darkgreen"> 0</span></p><p style="margin:0px;margin-left:10px;"><strong>file.enabled</strong> = <span style="color:darkgreen"> 1</span></p><p style="margin:0px;margin-left:10px;"><strong>apache.enabled</strong> = <span style="color:darkgreen"> 1</span></p><h2 style="border-bottom:1px solid black">check</h2><p style="margin:0px;margin-left:10px;"><strong>class</strong> = <span style="color:darkgreen"> plugin_check</span></p><h2 style="border-bottom:1px solid black">model</h2><p style="margin:0px;margin-left:10px;"><strong>ini.var</strong> = <span style="color:darkgreen"> db</span></p>
    			</div>
    		</div><input type="button" value="Permissions" onclick="openPopupDebug('popupDebugACL')" />&nbsp;&nbsp;&nbsp;&nbsp;<div id="popupDebugACL" 
    			style="display:none;position:absolute;left:0px;bottom:20px;border:2px solid gray;background:white">
    			<p style="text-align:right;background:#ccc;margin:0px;"><a href="#" onclick="closePopup()">Fermer</a></p>
    			<div style="height:350px;width:300px;overflow:auto;padding:10px;">
    			<div style="position:absolute"><table style="background:white;border-collapse:collapse">
    		<tr>
    			<th style="border:1px solid gray;">Action</th>
    			<th style="border:1px solid gray;">Component</th>
    		</tr></table>
    			</div>
    		</div></div></div>
    Citation Envoyé par imikado Voir le message
    D'ailleurs vous affichez les erreurs php ? si vous faites une faute de syntaxe ou autre, il y a une erreur à l'écran ?
    Oui au niveau du builder

    Citation Envoyé par imikado Voir le message
    Votre installation apache/php tourne sur un poste windows ou linux ?
    Wampserver 2.5 sous windows 7

    Citation Envoyé par imikado Voir le message
    Il faudrait éditer votre fichier php.ini pour afficher les erreurs php puis redemarrer votre serveur apache:
    je le fais et je vous reviens

    Merci

  2. #22
    Membre éprouvé
    Homme Profil pro
    Benevole
    Inscrit en
    Mai 2004
    Messages
    1 678
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Côte d'Ivoire

    Informations professionnelles :
    Activité : Benevole
    Secteur : Enseignement

    Informations forums :
    Inscription : Mai 2004
    Messages : 1 678
    Points : 953
    Points
    953
    Par défaut
    Dans php.ini display_errors = On
    j'ai redémarrer wampserver .
    Après l'affichage de la page blanche le contenu de php error log est vide.

    Merci

  3. #23
    Rédacteur
    Avatar de imikado
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2006
    Messages
    5 239
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Finance

    Informations forums :
    Inscription : Décembre 2006
    Messages : 5 239
    Points : 19 100
    Points
    19 100
    Billets dans le blog
    17
    Par défaut
    Rebonjour,
    merci pour ces informations, j'ai essayé chez moi sans problème

    Avez vous une erreur javascript ? cf mon screenshot sur l'utilsation de firebug dans chrome ?
    Framework php sécurisé et simple à prendre en main avec générateur web http://mkframework.com/ (hebergé sur developpez.com)
    Mes cours/tutoriaux

  4. #24
    Rédacteur
    Avatar de imikado
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2006
    Messages
    5 239
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Finance

    Informations forums :
    Inscription : Décembre 2006
    Messages : 5 239
    Points : 19 100
    Points
    19 100
    Billets dans le blog
    17
    Par défaut
    Pouvez vous me donner votre structure de table mysql (nom de table, les champs ainsi que leur type ), je vais créer le module de mon coté et vous l'envoyer pour que vous testiez
    Framework php sécurisé et simple à prendre en main avec générateur web http://mkframework.com/ (hebergé sur developpez.com)
    Mes cours/tutoriaux

  5. #25
    Rédacteur
    Avatar de imikado
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2006
    Messages
    5 239
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Finance

    Informations forums :
    Inscription : Décembre 2006
    Messages : 5 239
    Points : 19 100
    Points
    19 100
    Billets dans le blog
    17
    Par défaut
    En repassant le fil du post, je viens de remarquer que vous n'utilisiez pas mysql mais firebird (d'apres le nom du profil)

    Il y a donc peut etre des erreurs dans les requetes SQL fournie par le builder: c'est la syntaxe mysql qui est utilisée pour les limites, avec firebird c'est une autre syntaxe

    Je pense que le problème vient de la: corrigez vos requetes et le problème sera réglé

    Pour les limites c'est plutot:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    return $this->findMany('SELECT FIRST'.(int)$iLimit.' SKIP '.(int)$iOffset.' * FROM '.$this->sTable.' ORDER BY ? '.$side.' ',$sField);
    On n'utilise pas LIMIT
    Framework php sécurisé et simple à prendre en main avec générateur web http://mkframework.com/ (hebergé sur developpez.com)
    Mes cours/tutoriaux

  6. #26
    Rédacteur
    Avatar de imikado
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2006
    Messages
    5 239
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Finance

    Informations forums :
    Inscription : Décembre 2006
    Messages : 5 239
    Points : 19 100
    Points
    19 100
    Billets dans le blog
    17
    Par défaut
    Remplacez ces deux méthodes dans votre classe modèle
    Code php : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    //methode retournant les enregistrements trie et pagine
        public function findListLimitOrderBy($start,$limit,$sField,$side){
            return $this->findManySimple('SELECT FIRST'.(int)$iLimit.' SKIP '.(int)$start.' * FROM '.$this->sTable.' ORDER BY '.$sField.' '.$side);
        }
     //methode listant le nombre total d'enregistrements
        public function findListFilteredAndLimitOrderBy($tFilter,$start,$limit,$sField,$side){
        	$tWhere=array();
        	$tValue=array();
            foreach($tFilter as $sField => $sValue){
                $tWhere[]=$sField.'=?';
                $tValue[]=$sValue;
            }
            return $this->findManySimple('SELECT FIRST'.(int)$iLimit.' SKIP '.(int)$start.' * FROM '.$this->sTable.' WHERE  '.implode('AND',$tWhere).' ORDER BY '.$sField.' '.$side,$tValue);
        }

    Mais vous avez bien un problème d'affichage d'erreur dans votre installation
    VOus devriez avoir une erreur php incluant l'erreur SQL firebird
    Framework php sécurisé et simple à prendre en main avec générateur web http://mkframework.com/ (hebergé sur developpez.com)
    Mes cours/tutoriaux

  7. #27
    Membre éprouvé
    Homme Profil pro
    Benevole
    Inscrit en
    Mai 2004
    Messages
    1 678
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Côte d'Ivoire

    Informations professionnelles :
    Activité : Benevole
    Secteur : Enseignement

    Informations forums :
    Inscription : Mai 2004
    Messages : 1 678
    Points : 953
    Points
    953
    Par défaut
    Citation Envoyé par imikado Voir le message
    Mais vous avez bien un problème d'affichage d'erreur dans votre installation
    VOus devriez avoir une erreur php incluant l'erreur SQL firebird
    c'est bien ce qui m’étonne je devais avoir au moins une erreur firebird.
    je reprend tout a zéro et je reviens

    Merci

  8. #28
    Membre éprouvé
    Homme Profil pro
    Benevole
    Inscrit en
    Mai 2004
    Messages
    1 678
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Côte d'Ivoire

    Informations professionnelles :
    Activité : Benevole
    Secteur : Enseignement

    Informations forums :
    Inscription : Mai 2004
    Messages : 1 678
    Points : 953
    Points
    953
    Par défaut
    j'ai repris et voila les modifications effectuées sur les quatres fonctions :

    Code php : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
     
    //methode listant le nombre total d'enregistrements
        public function findTotal(){
            $oRow=$this->findOneSimple('SELECT count(*) as total FROM '.$this->sTable);
            return $oRow->total;
        }
     
    //methode retournant les enregistrements trie et pagine
        public function findListLimitOrderBy($start,$limit,$sField,$side){
            return $this->findManySimple('SELECT FIRST '.(int)$iLimit.' SKIP '.(int)$start.' * FROM '.$this->sTable.' ORDER BY '.$sField.' '.$side);
        }
     //methode listant le nombre total d'enregistrements
        public function findTotalFiltered($tFilter){
            foreach($tFilter as $sField => $sValue){
                $tWhere[]=$sField.'=?';
                $tValue[]=$sValue;
            }
            $oRow=$this->findOneSimple('SELECT count(*) as total FROM '.$this->sTable.' WHERE  '.implode('AND',$tWhere).'',$tValue);
            return $oRow->total;
        }
      //methode listant le nombre total d'enregistrements
        public function findListFilteredAndLimitOrderBy($tFilter,$start,$limit,$sField,$side){
        	$tWhere=array();
        	$tValue=array();
            foreach($tFilter as $sField => $sValue){
                $tWhere[]=$sField.'=?';
                $tValue[]=$sValue;
            }
            return $this->findManySimple('SELECT FIRST '.(int)$iLimit.' SKIP '.(int)$start.' * FROM '.$this->sTable.' WHERE  '.implode('AND',$tWhere).' ORDER BY '.$sField.' '.$side,$tValue);
        }

    Mais je comprend pas j'ai toujours ma page qui est vide et le problème c'est que j'ai pas d'erreur !

    Merci

  9. #29
    Membre éprouvé
    Homme Profil pro
    Benevole
    Inscrit en
    Mai 2004
    Messages
    1 678
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Côte d'Ivoire

    Informations professionnelles :
    Activité : Benevole
    Secteur : Enseignement

    Informations forums :
    Inscription : Mai 2004
    Messages : 1 678
    Points : 953
    Points
    953
    Par défaut
    je me demandais comment je pouvais récupérer la requête qui était envoyée a la base pour voir s'il y avait une éventuelle erreur ?
    merci

  10. #30
    Rédacteur
    Avatar de imikado
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2006
    Messages
    5 239
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Finance

    Informations forums :
    Inscription : Décembre 2006
    Messages : 5 239
    Points : 19 100
    Points
    19 100
    Billets dans le blog
    17
    Par défaut
    Vous le pouvez en activant les logs
    http://mkframework.com/faq.html#log

    Dans votre fichier conf/site.ini.php mettez dans la section [log] information à 1
    il va écrire toutes les requetes dans votre repertoire data/log
    Framework php sécurisé et simple à prendre en main avec générateur web http://mkframework.com/ (hebergé sur developpez.com)
    Mes cours/tutoriaux

  11. #31
    Rédacteur
    Avatar de imikado
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2006
    Messages
    5 239
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Finance

    Informations forums :
    Inscription : Décembre 2006
    Messages : 5 239
    Points : 19 100
    Points
    19 100
    Billets dans le blog
    17
    Par défaut
    On va s'occuper de l'affichage des erreurs sur votre installation, cela vous aidera à l'avenir
    Pouvez-vous essayer autremetn: dans le fichier conf/mode.ini.php
    passer le mode à: prod puis réactualisez
    il devrait y avoir un fichier dans data/log (de votre application dans data/genere/.../data/log)
    Framework php sécurisé et simple à prendre en main avec générateur web http://mkframework.com/ (hebergé sur developpez.com)
    Mes cours/tutoriaux

  12. #32
    Membre éprouvé
    Homme Profil pro
    Benevole
    Inscrit en
    Mai 2004
    Messages
    1 678
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Côte d'Ivoire

    Informations professionnelles :
    Activité : Benevole
    Secteur : Enseignement

    Informations forums :
    Inscription : Mai 2004
    Messages : 1 678
    Points : 953
    Points
    953
    Par défaut
    les choses commencent a s’éclaircir je viens de reprendre et je suis tombé sur cette erreur :
    Undefined property: stdClass::$total
    #0 C:\wamp\www\mkframework\data\genere\MonAppliGurido\model\model_MONPROJET.php(24): exception_error_handler(8, 'Undefined prope...', 'C:\\wamp\\www\\mkf...', 24, Array)
    #1 C:\wamp\www\mkframework\data\genere\MonAppliGurido\module\MONPROJET\main.php(88): model_MONPROJET->findTotal()
    #2 C:\wamp\www\mkframework\lib\framework\class_root.php(263): module_MONPROJET->_listJson()
    #3 C:\wamp\www\mkframework\data\genere\MonAppliGurido\public\index.php(47): _root->run()
    #4 {main}

    Detail:
    #0 C:\wamp\www\mkframework\data\genere\MonAppliGurido\model\model_MONPROJET.php (24)
    exception_error_handler( , 'Undefined property: stdClass::$total' , 'C:\wamp\www\mkframework\data\genere\MonAppliGurido\model\model_MONPROJET.php' , , Array ( [oRow] => stdClass Object ( [TOTAL] => 15 ) ) )
    #1 C:\wamp\www\mkframework\data\genere\MonAppliGurido\module\MONPROJET\main.php (88)
    model_MONPROJET -> findTotal( )
    #2 C:\wamp\www\mkframework\lib\framework\class_root.php (263)
    module_MONPROJET -> _listJson( )
    #3 C:\wamp\www\mkframework\data\genere\MonAppliGurido\public\index.php (47)
    _root -> run( )
    #4 {main}

    Fichier : C:\wamp\www\mkframework\data\genere\MonAppliGurido\model\model_MONPROJET.php ligne 24

    Message : Undefined property: stdClass::$total
    6 protected $sTable='MONPROJET';
    7 protected $sConfig='firebirdExple';
    8
    9 protected $tId=array('CODEPROJET');
    10
    11 public static function getInstance(){
    12 return self::_getInstance(__CLASS__);
    13 }
    14
    15 public function findById($uId){
    16 return $this->findOne('SELECT * FROM '.$this->sTable.' WHERE CODEPROJET=?',$uId );
    17 }
    18 public function findAll(){
    19 return $this->findMany('SELECT * FROM '.$this->sTable);
    20 }
    21 //methode listant le nombre total d'enregistrements
    22 public function findTotal(){
    23 $oRow=$this->findOneSimple('SELECT count(*) as total FROM '.$this->sTable);
    24 return $oRow->total;
    25 }
    26 //methode retournant les enregistrements trie et pagine
    27 public function findListLimitOrderBy($start,$limit,$sField,$side){
    28 return $this->findManySimple('SELECT FIRST '.(int)$iLimit.' SKIP '.(int)$start.' * FROM '.$this->sTable.' ORDER BY '.$sField.' '.$side);
    29 }
    30 //methode listant le nombre total d'enregistrements
    31 public function findTotalFiltered($tFilter){
    32 foreach($tFilter as $sField => $sValue){
    33 $tWhere[]=$sField.'=?';
    34 $tValue[]=$sValue;
    35 }
    36 $oRow=$this->findOneSimple('SELECT count(*) as total FROM '.$this->sTable.' WHERE '.implode('AND',$tWhere).'',$tValue);
    37 return $oRow->total;
    38 }
    39 //methode listant le nombre total d'enregistrements
    40 public function findListFilteredAndLimitOrderBy($tFilter,$start,$limit,$sField,$side){
    41 $tWhere=array();
    Navigation
    Module:MONPROJET Action:listJson
    $_GET
    Array
    (
    [:nav] => MONPROJET::listJson
    )
    $_POST
    Array
    (
    [oper] => grid
    [_search] => false
    [nd] => 1440706786656
    [rows] => 5
    [page] => 1
    [sidx] => CODEPROJET
    [sord] => desc
    )
    .........
    [SERVER_SOFTWARE] => Apache/2.4.9 (Win32) PHP/5.5.12
    [SERVER_NAME] => 127.0.0.1
    [SERVER_ADDR] => 127.0.0.1
    [SERVER_PORT] => 80
    [REMOTE_ADDR] => 127.0.0.1
    [DOCUMENT_ROOT] => C:/wamp/www/
    [REQUEST_SCHEME] => http
    [CONTEXT_PREFIX] =>
    [CONTEXT_DOCUMENT_ROOT] => C:/wamp/www/
    [SERVER_ADMIN] => admin@example.com
    [SCRIPT_FILENAME] => C:/wamp/www/mkframework/data/genere/MonAppliGurido/public/index.php
    [REMOTE_PORT] => 13952
    [GATEWAY_INTERFACE] => CGI/1.1
    [SERVER_PROTOCOL] => HTTP/1.1
    [REQUEST_METHOD] => POST
    [QUERY_STRING] => :nav=MONPROJET::listJson
    [REQUEST_URI] => /mkframework/data/genere/MonAppliGurido/public/index.php?:nav=MONPROJET::listJson
    [SCRIPT_NAME] => /mkframework/data/genere/MonAppliGurido/public/index.php
    [PHP_SELF] => /mkframework/data/genere/MonAppliGurido/public/index.php
    [REQUEST_TIME_FLOAT] => 1440706786.747
    [REQUEST_TIME] => 1440706786
    )
    je profite pour donner une capture d'écran :
    Nom : Capture888.JPG
Affichages : 141
Taille : 27,6 Ko

    merci

  13. #33
    Rédacteur
    Avatar de imikado
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2006
    Messages
    5 239
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Finance

    Informations forums :
    Inscription : Décembre 2006
    Messages : 5 239
    Points : 19 100
    Points
    19 100
    Billets dans le blog
    17
    Par défaut
    La c'est plus simple, apparement sous firebird il aime pas trop les champ en minuscule
    essayez de remplacez dans votre classe modèle

    Code php : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
     
    //methode listant le nombre total d'enregistrements
    public function findTotal(){
      $oRow=$this->findOneSimple('SELECT count(*) as TOTAL FROM '.$this->sTable);
      return $oRow->TOTAL;
    }
    public function findTotalFiltered($tFilter){
      foreach($tFilter as $sField => $sValue){
        $tWhere[]=$sField.'=?';
        $tValue[]=$sValue;
      }
      $oRow=$this->findOneSimple('SELECT count(*) as TOTAL FROM '.$this->sTable.' WHERE '.implode('AND',$tWhere).'',$tValue);
      return $oRow->TOTAL;
     }
    Framework php sécurisé et simple à prendre en main avec générateur web http://mkframework.com/ (hebergé sur developpez.com)
    Mes cours/tutoriaux

  14. #34
    Membre éprouvé
    Homme Profil pro
    Benevole
    Inscrit en
    Mai 2004
    Messages
    1 678
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Côte d'Ivoire

    Informations professionnelles :
    Activité : Benevole
    Secteur : Enseignement

    Informations forums :
    Inscription : Mai 2004
    Messages : 1 678
    Points : 953
    Points
    953
    Par défaut
    Ok la après avoir passé total en Majuscule voici ma conclusion partielle :

    l'affichage se fait correctement

    Bouton Ajout : ne rajoute rien a la base de donnée

    Bouton Modifier : Ajoute des éléments a la base de donnée

    Bouton Affichage : Affiche les données

    Bouton supprimer : ne supprime rien a la base de donnés

    Bouton recherche : trouve bien la donnée recherchée

    La configuration ayant changée je ne sais pas ou se trouve ses méthodes. Donc je cherche toujours

    Merci

  15. #35
    Rédacteur
    Avatar de imikado
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2006
    Messages
    5 239
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Finance

    Informations forums :
    Inscription : Décembre 2006
    Messages : 5 239
    Points : 19 100
    Points
    19 100
    Billets dans le blog
    17
    Par défaut
    On avance
    Décidément firebird est vraiment différent des autres SGBD (je fais mes tests sur Mysql et Sql Server d'habitude

    Alors cette partie se trouve dans votre module, méthode _postJson
    Code php : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    public function _postJson(){
    		if(!_root::getRequest()->isPost() ){ //si ce n'est pas une requete POST on ne soumet pas
    			return null;
    		}
     
    		if(_root::getParam('oper')=='del'){
    			return $this->processDelete();
    		}
     
    		$iId=_root::getParam('id',null);
    		if($iId==null){
    			$oAuthor=new row_author;	
    		}else{
    			$oAuthor=model_author::getInstance()->findById( _root::getParam('id',null) );
    		}

    J'aimerais savoir ce que vous avez ici ?
    surtout la partie récupération :
    $iId=_root::getParam('id',null);

    Ensuite nous verrons pour la suppression, d'abord verifier pourquoi en recevant l'identificant il ne parvient pas à trouver celui-ci
    Framework php sécurisé et simple à prendre en main avec générateur web http://mkframework.com/ (hebergé sur developpez.com)
    Mes cours/tutoriaux

  16. #36
    Rédacteur
    Avatar de imikado
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2006
    Messages
    5 239
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Finance

    Informations forums :
    Inscription : Décembre 2006
    Messages : 5 239
    Points : 19 100
    Points
    19 100
    Billets dans le blog
    17
    Par défaut
    Je pense avoir trouvé le problème qui vient de la génération, je corrigerai le builder demain

    Pour votre problème, dans votre module, il faut changer le nom du champ récupéré en paramètre: vous ce n'est pas "id" mais "CODEPROJET"
    Dans la méthode _postJson()
    Ce qui donne:
    Code php : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
     
    $iId=_root::getParam('CODEPROJET',null);
    		if($iId==null){
    			$oMONPROJET=new row_MONPROJET;	
    		}else{
    			$oMONPROJET=model_MONPROJET::getInstance()->findById( _root::getParam('CODEPROJET',null) );
    		}

    Et dans la partie suppression, même chose: on remplace "id" par "CODEPROJET"
    Code php : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
     
    public function processDelete(){
    		if(!_root::getRequest()->isPost() ){ //si ce n'est pas une requete POST on ne soumet pas
    			return null;
    		}
     
     
     
    		$oMONPROJET=model_MONPROJET::getInstance()->findById( _root::getParam('CODEPROJET',null) );
    Framework php sécurisé et simple à prendre en main avec générateur web http://mkframework.com/ (hebergé sur developpez.com)
    Mes cours/tutoriaux

  17. #37
    Rédacteur
    Avatar de imikado
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2006
    Messages
    5 239
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Finance

    Informations forums :
    Inscription : Décembre 2006
    Messages : 5 239
    Points : 19 100
    Points
    19 100
    Billets dans le blog
    17
    Par défaut
    Oubliez mon dernier post, il vous suffit de télécharger la dernière version du Guriddo, j'ai corrigé
    http://mkframework.com/telechargerModule_guriddo.html

    juste écraser le module cela suffira
    Framework php sécurisé et simple à prendre en main avec générateur web http://mkframework.com/ (hebergé sur developpez.com)
    Mes cours/tutoriaux

  18. #38
    Membre éprouvé
    Homme Profil pro
    Benevole
    Inscrit en
    Mai 2004
    Messages
    1 678
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Côte d'Ivoire

    Informations professionnelles :
    Activité : Benevole
    Secteur : Enseignement

    Informations forums :
    Inscription : Mai 2004
    Messages : 1 678
    Points : 953
    Points
    953
    Par défaut
    Bonjour Imikado

    Je viens juste de télécharger la dernière version du Guriddo et j'ai repris complétement le projet et sans faire de modification dans le code voici mes conclusions:

    1-insertion : ne marche pas
    2- Modification : marche correctement
    3- Affichage : est ok
    4- La suppression : aussi marche

    je vais essayer de voir dans le code.

    Merci

  19. #39
    Membre éprouvé
    Homme Profil pro
    Benevole
    Inscrit en
    Mai 2004
    Messages
    1 678
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Côte d'Ivoire

    Informations professionnelles :
    Activité : Benevole
    Secteur : Enseignement

    Informations forums :
    Inscription : Mai 2004
    Messages : 1 678
    Points : 953
    Points
    953
    Par défaut
    Dans mes investigations dans la fonction :

    Code PHP : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    public function _postJson(){
    		if(!_root::getRequest()->isPost() ){ //si ce n'est pas une requete POST on ne soumet pas
    			return null;
    		}
    		
    		if(_root::getParam('oper')=='del'){
    			return $this->processDelete();
    		}
    		
    		$iId=_root::getParam('id',null);
    		if($iId==null){
    			$oMONPROJET=new row_MONPROJET;	
    		}else{
    			$oMONPROJET=model_MONPROJET::getInstance()->findById( _root::getParam('id',null) );
    		}
    ...
    }


    Quand je remplace id par CODEPROJET :
    le bouton insertion ne marche plus (aucune insertion)
    le bouton modification m’insère une nouvelle ligne avec la donnée modifiée.

    Merci

  20. #40
    Rédacteur
    Avatar de imikado
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2006
    Messages
    5 239
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Finance

    Informations forums :
    Inscription : Décembre 2006
    Messages : 5 239
    Points : 19 100
    Points
    19 100
    Billets dans le blog
    17
    Par défaut
    J'ai modifié pour ne pas avoir à modifier "id", guriddo envoi en paramètre "id" qui contient votre champ clé, ici codeprojet, d'ou le fait que modification/suppression fonctionne correctement.
    Je suis étonné pour l'insertion

    La clé est-elle auto-incrémentale ?
    Framework php sécurisé et simple à prendre en main avec générateur web http://mkframework.com/ (hebergé sur developpez.com)
    Mes cours/tutoriaux

+ Répondre à la discussion
Cette discussion est résolue.
Page 2 sur 3 PremièrePremière 123 DernièreDernière

Discussions similaires

  1. Réponses: 2
    Dernier message: 24/02/2010, 11h33
  2. [MySQL] Nom d'une table de base de donné phpmyadmin dans condition if
    Par Besky49 dans le forum PHP & Base de données
    Réponses: 9
    Dernier message: 30/01/2010, 12h49
  3. Prendre le nom d'une table de la base en cour
    Par electrosat03 dans le forum VBA Access
    Réponses: 1
    Dernier message: 30/05/2008, 16h36
  4. [Access] Nom d'une table avec un espace dans SQL
    Par Corsaire dans le forum Langage SQL
    Réponses: 7
    Dernier message: 21/04/2006, 15h50
  5. Jointure sur 2 tables de bases différentes
    Par Celina dans le forum Langage SQL
    Réponses: 10
    Dernier message: 10/11/2003, 11h56

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo