New opensource project phalcon-classified need help?

I and my friends , both are new in phalcon . we are trying to create an opensource project "phalcon-classifed". What we have done for now is just about the UI/UX and sql schema . we are using the multiple modules (frontend,backend).

Currently , we are trying to implement the controller (MVC) ,but when I go to http://localhost/phalcon-classified/ I got the blank page. 1)What is my misstake from the MVC implementation 2) How can I debug the application ,so eveything not pass silently.

Here is project at github: https://github.com/skanel/phalcon-classified

Best Regards

skanel



32.7k

Add debug to your application. Remember to disable it in production.

    public function main()
    {
        $debug = new \Phalcon\Debug();
        $debug->listen();

        $this->_registerServices();

        //Register the installed modules
        $this->registerModules(array(
            'frontend' => array(
                'className' => 'Multiple\Frontend\Module',
                'path' => '../apps/frontend/Module.php'
            ),
            'backend' => array(
                'className' => 'Multiple\Backend\Module',
                'path' => '../apps/backend/Module.php'
            )
        ));

        echo $this->handle()->getContent();
    }

Also check if displayerrors=On and errorreporting=E_ALL in your installation. There can be tons of other reasons, but this are the common.

edited Sep '14

At the top of file public/index.php I added

<?php
error_reporting(E_ALL);

and update the code as you told me ,but I still get the blank page.

Thanks



32.7k

What webserver are you using ? Also, it seems that you don't have a / defined route. If you access http://localhost/phalcon-classified/frontend/index/index you get something ? What the error log from your webserver says ?



9.5k

I often get a blank page when the View service is not set up correctly, for example with wrong paths. Phalcon just fails silently instead of screaming about it

edited Sep '14

I am using Apache server on ubuntu , http://localhost/phalcon-classified/frontend/index/index I get the blank page

What webserver are you using ? Also, it seems that you don't have a / defined route. If you access http://localhost/phalcon-classified/frontend/index/index you get something ? What the error log from your webserver says ?

Yes I added it here is my code at githup https://github.com/skanel/phalcon-classified/blob/master/public/index.php

I often get a blank page when the View service is not set up correctly, for example with wrong paths. Phalcon just fails silently instead of screaming about it

edited Sep '14

Okay, thank you all I have corrected the problems.

The problem is about the Namespace That I need to specific when I use the multiple modules approach.