Zend Framework 2.0.6 - Basic Configuration Questions

For programming and general questions on Zend Framework

Zend Framework 2.0.6 - Basic Configuration Questions

Postby aashah on Wed Jan 09, 2013 2:40 pm

Hi All,

1. I have started to work on Zend Framework 2.0.6. Previously, I have worked with Zend 1.11. In Zend 1.11, there is not anything like modular form in which we need to create Admin and Frontend module. I am looking into Zend 2.0.6, as how we can create main module as "admin" and "front" and after that their sub module in it like user, album etc.

Can anyone share views for how we can manage admin and frontend type of main module in zend 2.0.6.

2. if I would like to extend Zend 2.0.6 Library and would like to create my own custom library then how I could make it work?

3. In my project, some module are working with MySql database and some are MsSql.

Can anyone let me know how I could make and switch between database connection.

Thanks in advanced.

Ankit Shah.
Posts: 8
Joined: Thu Dec 20, 2012 2:26 pm

Re: Zend Framework 2.0.6 - Basic Configuration Questions

Postby dafap on Tue Jan 15, 2013 10:10 pm

I answer to question 2.
Here is the structure of my project :
Code: Select all
    |_ config
    |_ data
    |_ module
    |       |_Application
    |                  |_config
    |                  |_language
    |                  |_src
    |                  |_view
    |                  |_Module.php
    |_ public
    |_ tests
    |_ vendor
            |      |_Mvc
            |             |_Controller
            |                         |_AbstractActionController.php

To access my library dafap, I configure the method Module::getAutoloaderConfig() (in Module.php) as follows :

Code: Select all
    public function getAutoloaderConfig()
        return array(
                'Zend\Loader\ClassMapAutoloader' => array(
                        __DIR__ . '/autoload_classmap.php',
                'Zend\Loader\StandardAutoloader' => array(
                        'namespaces' => array(
                                __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
                                'dafap' => __DIR__ . '/../../vendor/dafap',
Posts: 6
Joined: Tue Jan 15, 2013 9:18 pm
Location: Langon, Aquitaine, France

Return to Zend Framework

Who is online

Users browsing this forum: No registered users and 4 guests