Thursday, December 12, 2013

how to new module configure and run in ZF2 ?[Solved]

Guy you can download one module from here
how to run extracting the module?
Step 1->extract and copy in to C:\wamp\www\zf2crud\module then paste the module folder if(in case module name like  : (SanAuth-master remove to SanAuth)
Step 2->Go to C:\wamp\www\zf2crud\config\application.config.php
add the module :
  'modules' => array(
        'Application',
     'SanAuth'
    ),
last check the router url on location is C:\wamp\www\zf2crud\module\SanAuth-master\config\module.config.php
like :'router' => array(
        'routes' => array(
            
            'login' => array(
                'type'    => 'Literal',
                'options' => array(
                    'route'    => '/auth',
                    'defaults' => array(
                        '__NAMESPACE__' => 'SanAuth\Controller',
                        'controller'    => 'Auth',
                        'action'        => 'login',
                    ),
                ),
your browser url should be http://localhost/zf2crud/public/auth
lastly may help you :) enjoy :.............:)

No comments:

Post a Comment