vendredi 10 juin 2016

angulerjs directive routing sen parametr php not work if statement

    // Test Php
    .state('test', {
        url: "/test?action&id",
        templateUrl: "views/test.php?action=&id=",
        data: { pageTitle: 'Test Php ' },
        controller: "TestController",
        resolve: {
            deps: ['$ocLazyLoad', function ($ocLazyLoad) {
                return $ocLazyLoad.load({
                    name: 'MetronicApp',
                    insertBefore: '#ng_load_plugins_before', between core and theme css files
                    files: [
                        'js/controllers/TestController.js',
                        //'../plugins/bootstrap_toogle/js/bootstrap-toggle.min.js',
                    ]
                });
            }]
        }
    })

call browser link http://ift.tt/28pNAVb

test.php following code not working if statement

$id = $_GET["id"];

 if($id == '72' ){
     echo "it is id ".$id ;

 }

Aucun commentaire:

Enregistrer un commentaire