Skip to main content
Pergunta fechada como "Precisa de detalhes ou esclarecimentos" por Maniero, rray, ptkato, Bruno Augusto, Fernando Leal
adicionou 528 caracteres ao conteúdo
Fonte Link
Laerte
  • 22,8mil
  • 19
  • 86
  • 130
dirname(__FILE__).DIRECTORY_SEPARATOR.'..','name'=>'My Web Application',// preloading 'log' component'preload'=>array('log'),'aliases' => array('bootstrap' => realpath(__DIR__. '/../extensions/bootstrap'),'audit' => realpath(__DIR__. '/../modules/audit'),),// autoloading model and component classes'import'=>array('application.controller.*','application.components.*','application.modules.audit.models.*','application.modules.audit.components.*',//'bootstrap.helpers.TbHtml','application.modules.audit.*','application.extensions.bootstrap.*',),'modules'=>array(// uncomment the following to enable the Gii tool'audi','audit' => array('class' => 'application.modules.audit.AuditModule','userViewUrl' => array('/audit/view', 'id' => '--user_id--'),'enableAuditField' => false,'connectionID' => 'db','autoCreateTables' => true,'layout' => 'application.modules.audit.views.layouts.column1','gridViewWidget' => 'application.extensions.bootstrap.widgets.TbGridView','detailViewWidget' => 'zii.widgets.CDetailView','controllerFilters' => array('auditAccess' => array('application.modules.audit.components.AuditAccessFilter'),),'adminUsers' => array('admin'),'yiiStrapPath' => 'application.vendor.yii-audit-module',),'gii'=>array('class'=>'system.gii.GiiModule','password'=>'12345',// If removed, Gii defaults to localhost only. Edit carefully to taste.'ipFilters'=>array('127.0.0.1','::1'),'generatorPaths' => array('bootstrap.gii'),),),// application components'components'=>array('errorHandler' => array(//'class' => 'application.modules.audit.components.AuditErrorHandler','errorAction' => 'site/error','trackAllRequests' => true,// 'catchFatalErrors' => true,'auditRequestIgnoreKeys' => array('PHP_AUTH_PW', 'password'),),'bootstrap' => array('class' => 'bootstrap.components.TbApi',),'user'=>array('allowAutoLogin'=>true,),'urlManager'=>array('urlFormat'=>'path',//'audit'=>'audit/default','rules'=>array('/'=>'/view','//'=>'/','/'=>'/',),),/*'db'=>array('connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',),*/// uncomment the following to use a MySQL database'db'=>array('connectionString' => 'mysql:host=localhost;dbname=','emulatePrepare' => true,'username' => 'root','password' => '','charset' => 'utf8','enableProfiling' => true,'enableParamLogging' => true,),'errorHandler'=>array(// use 'site/error' action to display errors'errorAction'=>'site/error',),'log'=>array('class'=>'CLogRouter','routes'=>array(array('class' => 'application.modules.audit.components.AuditLogRoute','levels' => 'error, warning, profile, audit',),// uncomment the following to show log messages on web pages/*array('class'=>'CWebLogRoute',),*/),),),// application-level parameters that can be accessed// using Yii::app()->params['paramName']'params'=>array(// this is used in contact page'adminEmail'=>'[email protected]',),
<?php

// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');

// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
    'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
    'name'=>'My Web Application',

    // preloading 'log' component
    'preload'=>array('log'),

    'aliases' => array(
            'bootstrap' => realpath(__DIR__ . '/../extensions/bootstrap'), 
            'audit' =>  realpath(__DIR__ . '/../modules/audit'),
                  ),

    // autoloading model and component classes
    'import'=>array(
    'application.controller.*',
    'application.components.*',
        'application.modules.audit.models.*',
        'application.modules.audit.components.*',
        //'bootstrap.helpers.TbHtml',
        'application.modules.audit.*',
    'application.extensions.bootstrap.*',  
    ),

    'modules'=>array(
        // uncomment the following to enable the Gii tool
     'audi',
         'audit' => array(
         'class' => 'application.modules.audit.AuditModule',
         'userViewUrl' => array('/audit/view', 'id' => '--user_id--'),
         'enableAuditField' => false,
         'connectionID' => 'db',
         'autoCreateTables' => true,
         'layout' => 'application.modules.audit.views.layouts.column1',
         'gridViewWidget' => 'application.extensions.bootstrap.widgets.TbGridView',
         'detailViewWidget' => 'zii.widgets.CDetailView',
         'controllerFilters' => array(
         'auditAccess' => array('application.modules.audit.components.AuditAccessFilter'),
                ),

         'adminUsers' => array('admin'),
         'yiiStrapPath' => 'application.vendor.yii-audit-module',
            ),

        'gii'=>array(
            'class'=>'system.gii.GiiModule',
            'password'=>'12345',
            // If removed, Gii defaults to localhost only. Edit carefully to taste.
            'ipFilters'=>array('127.0.0.1','::1'),
            'generatorPaths' => array('bootstrap.gii'),
        ),

    ),

    // application components
    'components'=>array(

         'errorHandler' => array(
            //'class' => 'application.modules.audit.components.AuditErrorHandler',
            'errorAction' => 'site/error',
            'trackAllRequests' => true,
           // 'catchFatalErrors' => true,
            'auditRequestIgnoreKeys' => array('PHP_AUTH_PW', 'password'),
                            ),

        'bootstrap' => array(
                    'class' => 'bootstrap.components.TbApi',   
                        ),

        'user'=>array('allowAutoLogin'=>true,),

        'urlManager'=>array(
            'urlFormat'=>'path',
            //'audit'=>'audit/default',
            'rules'=>array(
                '<controller:\w+>/<id:\d+>'=>'<controller>/view',
                '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
                '<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
            ),
        ),
        /*
        'db'=>array(
            'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
        ),
        */

        // uncomment the following to use a MySQL database

        'db'=>array(
            'connectionString' => 'mysql:host=localhost;dbname=',
            'emulatePrepare' => true,
            'username' => 'root',
            'password' => '',
            'charset' => 'utf8',
            'enableProfiling' => true,
            'enableParamLogging' => true,
        ),

        'errorHandler'=>array(
            // use 'site/error' action to display errors
            'errorAction'=>'site/error',
        ),
        'log'=>array(
            'class'=>'CLogRouter',
            'routes'=>array(
                array(
                     'class' => 'application.modules.audit.components.AuditLogRoute',
                     'levels' => 'error, warning, profile, audit',
                      ),
                // uncomment the following to show log messages on web pages
                /*
                array(
                    'class'=>'CWebLogRoute',
                ),
                */
                        ),
                ),
    ),

    // application-level parameters that can be accessed
    // using Yii::app()->params['paramName']
    'params'=>array(
        // this is used in contact page
        'adminEmail'=>'[email protected]',
    ),
);
);Abaixo o erro especificadoEstou iniciando em Yii e configurando uma extensão, só que está surgindo o seguinte erro:![Mensagem de erro][1][1]: https://i.sstatic.net/dQN6Q.pngAlguém tem alguma ideia de como resolver isso?

Abaixo o erro especificado

Estou iniciando em Yii e configurando uma extensão, só que está surgindo o seguinte erro:

Mensagem de erro

Alguém tem alguma ideia de como resolver isso?

dirname(__FILE__).DIRECTORY_SEPARATOR.'..','name'=>'My Web Application',// preloading 'log' component'preload'=>array('log'),'aliases' => array('bootstrap' => realpath(__DIR__. '/../extensions/bootstrap'),'audit' => realpath(__DIR__. '/../modules/audit'),),// autoloading model and component classes'import'=>array('application.controller.*','application.components.*','application.modules.audit.models.*','application.modules.audit.components.*',//'bootstrap.helpers.TbHtml','application.modules.audit.*','application.extensions.bootstrap.*',),'modules'=>array(// uncomment the following to enable the Gii tool'audi','audit' => array('class' => 'application.modules.audit.AuditModule','userViewUrl' => array('/audit/view', 'id' => '--user_id--'),'enableAuditField' => false,'connectionID' => 'db','autoCreateTables' => true,'layout' => 'application.modules.audit.views.layouts.column1','gridViewWidget' => 'application.extensions.bootstrap.widgets.TbGridView','detailViewWidget' => 'zii.widgets.CDetailView','controllerFilters' => array('auditAccess' => array('application.modules.audit.components.AuditAccessFilter'),),'adminUsers' => array('admin'),'yiiStrapPath' => 'application.vendor.yii-audit-module',),'gii'=>array('class'=>'system.gii.GiiModule','password'=>'12345',// If removed, Gii defaults to localhost only. Edit carefully to taste.'ipFilters'=>array('127.0.0.1','::1'),'generatorPaths' => array('bootstrap.gii'),),),// application components'components'=>array('errorHandler' => array(//'class' => 'application.modules.audit.components.AuditErrorHandler','errorAction' => 'site/error','trackAllRequests' => true,// 'catchFatalErrors' => true,'auditRequestIgnoreKeys' => array('PHP_AUTH_PW', 'password'),),'bootstrap' => array('class' => 'bootstrap.components.TbApi',),'user'=>array('allowAutoLogin'=>true,),'urlManager'=>array('urlFormat'=>'path',//'audit'=>'audit/default','rules'=>array('/'=>'/view','//'=>'/','/'=>'/',),),/*'db'=>array('connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',),*/// uncomment the following to use a MySQL database'db'=>array('connectionString' => 'mysql:host=localhost;dbname=','emulatePrepare' => true,'username' => 'root','password' => '','charset' => 'utf8','enableProfiling' => true,'enableParamLogging' => true,),'errorHandler'=>array(// use 'site/error' action to display errors'errorAction'=>'site/error',),'log'=>array('class'=>'CLogRouter','routes'=>array(array('class' => 'application.modules.audit.components.AuditLogRoute','levels' => 'error, warning, profile, audit',),// uncomment the following to show log messages on web pages/*array('class'=>'CWebLogRoute',),*/),),),// application-level parameters that can be accessed// using Yii::app()->params['paramName']'params'=>array(// this is used in contact page'adminEmail'=>'[email protected]',),);Abaixo o erro especificadoEstou iniciando em Yii e configurando uma extensão, só que está surgindo o seguinte erro:![Mensagem de erro][1][1]: https://i.sstatic.net/dQN6Q.pngAlguém tem alguma ideia de como resolver isso?
<?php

// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');

// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
    'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
    'name'=>'My Web Application',

    // preloading 'log' component
    'preload'=>array('log'),

    'aliases' => array(
            'bootstrap' => realpath(__DIR__ . '/../extensions/bootstrap'), 
            'audit' =>  realpath(__DIR__ . '/../modules/audit'),
                  ),

    // autoloading model and component classes
    'import'=>array(
    'application.controller.*',
    'application.components.*',
        'application.modules.audit.models.*',
        'application.modules.audit.components.*',
        //'bootstrap.helpers.TbHtml',
        'application.modules.audit.*',
    'application.extensions.bootstrap.*',  
    ),

    'modules'=>array(
        // uncomment the following to enable the Gii tool
     'audi',
         'audit' => array(
         'class' => 'application.modules.audit.AuditModule',
         'userViewUrl' => array('/audit/view', 'id' => '--user_id--'),
         'enableAuditField' => false,
         'connectionID' => 'db',
         'autoCreateTables' => true,
         'layout' => 'application.modules.audit.views.layouts.column1',
         'gridViewWidget' => 'application.extensions.bootstrap.widgets.TbGridView',
         'detailViewWidget' => 'zii.widgets.CDetailView',
         'controllerFilters' => array(
         'auditAccess' => array('application.modules.audit.components.AuditAccessFilter'),
                ),

         'adminUsers' => array('admin'),
         'yiiStrapPath' => 'application.vendor.yii-audit-module',
            ),

        'gii'=>array(
            'class'=>'system.gii.GiiModule',
            'password'=>'12345',
            // If removed, Gii defaults to localhost only. Edit carefully to taste.
            'ipFilters'=>array('127.0.0.1','::1'),
            'generatorPaths' => array('bootstrap.gii'),
        ),

    ),

    // application components
    'components'=>array(

         'errorHandler' => array(
            //'class' => 'application.modules.audit.components.AuditErrorHandler',
            'errorAction' => 'site/error',
            'trackAllRequests' => true,
           // 'catchFatalErrors' => true,
            'auditRequestIgnoreKeys' => array('PHP_AUTH_PW', 'password'),
                            ),

        'bootstrap' => array(
                    'class' => 'bootstrap.components.TbApi',   
                        ),

        'user'=>array('allowAutoLogin'=>true,),

        'urlManager'=>array(
            'urlFormat'=>'path',
            //'audit'=>'audit/default',
            'rules'=>array(
                '<controller:\w+>/<id:\d+>'=>'<controller>/view',
                '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
                '<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
            ),
        ),
        /*
        'db'=>array(
            'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
        ),
        */

        // uncomment the following to use a MySQL database

        'db'=>array(
            'connectionString' => 'mysql:host=localhost;dbname=',
            'emulatePrepare' => true,
            'username' => 'root',
            'password' => '',
            'charset' => 'utf8',
            'enableProfiling' => true,
            'enableParamLogging' => true,
        ),

        'errorHandler'=>array(
            // use 'site/error' action to display errors
            'errorAction'=>'site/error',
        ),
        'log'=>array(
            'class'=>'CLogRouter',
            'routes'=>array(
                array(
                     'class' => 'application.modules.audit.components.AuditLogRoute',
                     'levels' => 'error, warning, profile, audit',
                      ),
                // uncomment the following to show log messages on web pages
                /*
                array(
                    'class'=>'CWebLogRoute',
                ),
                */
                        ),
                ),
    ),

    // application-level parameters that can be accessed
    // using Yii::app()->params['paramName']
    'params'=>array(
        // this is used in contact page
        'adminEmail'=>'[email protected]',
    ),
);

Abaixo o erro especificado

Estou iniciando em Yii e configurando uma extensão, só que está surgindo o seguinte erro:

Mensagem de erro

Alguém tem alguma ideia de como resolver isso?

adicionou 4678 caracteres ao conteúdo
Fonte Link
user3677610
  • 135
  • 1
  • 1
  • 12

Estou iniciando em Yii e configurando uma extensão, só que está surgindoAbaixo esta o seguinte erro:codigo da minha classe main

Mensagem de erro

dirname(__FILE__).DIRECTORY_SEPARATOR.'..','name'=>'My Web Application',// preloading 'log' component'preload'=>array('log'),'aliases' => array('bootstrap' => realpath(__DIR__. '/../extensions/bootstrap'),'audit' => realpath(__DIR__. '/../modules/audit'),),// autoloading model and component classes'import'=>array('application.controller.*','application.components.*','application.modules.audit.models.*','application.modules.audit.components.*',//'bootstrap.helpers.TbHtml','application.modules.audit.*','application.extensions.bootstrap.*',),'modules'=>array(// uncomment the following to enable the Gii tool'audi','audit' => array('class' => 'application.modules.audit.AuditModule','userViewUrl' => array('/audit/view', 'id' => '--user_id--'),'enableAuditField' => false,'connectionID' => 'db','autoCreateTables' => true,'layout' => 'application.modules.audit.views.layouts.column1','gridViewWidget' => 'application.extensions.bootstrap.widgets.TbGridView','detailViewWidget' => 'zii.widgets.CDetailView','controllerFilters' => array('auditAccess' => array('application.modules.audit.components.AuditAccessFilter'),),'adminUsers' => array('admin'),'yiiStrapPath' => 'application.vendor.yii-audit-module',),'gii'=>array('class'=>'system.gii.GiiModule','password'=>'12345',// If removed, Gii defaults to localhost only. Edit carefully to taste.'ipFilters'=>array('127.0.0.1','::1'),'generatorPaths' => array('bootstrap.gii'),),),// application components'components'=>array('errorHandler' => array(//'class' => 'application.modules.audit.components.AuditErrorHandler','errorAction' => 'site/error','trackAllRequests' => true,// 'catchFatalErrors' => true,'auditRequestIgnoreKeys' => array('PHP_AUTH_PW', 'password'),),'bootstrap' => array('class' => 'bootstrap.components.TbApi',),'user'=>array('allowAutoLogin'=>true,),'urlManager'=>array('urlFormat'=>'path',//'audit'=>'audit/default','rules'=>array('/'=>'/view','//'=>'/','/'=>'/',),),/*'db'=>array('connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',),*/// uncomment the following to use a MySQL database'db'=>array('connectionString' => 'mysql:host=localhost;dbname=','emulatePrepare' => true,'username' => 'root','password' => '','charset' => 'utf8','enableProfiling' => true,'enableParamLogging' => true,),'errorHandler'=>array(// use 'site/error' action to display errors'errorAction'=>'site/error',),'log'=>array('class'=>'CLogRouter','routes'=>array(array('class' => 'application.modules.audit.components.AuditLogRoute','levels' => 'error, warning, profile, audit',),// uncomment the following to show log messages on web pages/*array('class'=>'CWebLogRoute',),*/),),),// application-level parameters that can be accessed// using Yii::app()->params['paramName']'params'=>array(// this is used in contact page'adminEmail'=>'[email protected]',),

Alguém tem alguma ideia de como resolver isso?

);Abaixo o erro especificadoEstou iniciando em Yii e configurando uma extensão, só que está surgindo o seguinte erro:![Mensagem de erro][1][1]: https://i.sstatic.net/dQN6Q.pngAlguém tem alguma ideia de como resolver isso?

Estou iniciando em Yii e configurando uma extensão, só que está surgindo o seguinte erro:

Mensagem de erro

Alguém tem alguma ideia de como resolver isso?

Abaixo esta o codigo da minha classe main

dirname(__FILE__).DIRECTORY_SEPARATOR.'..','name'=>'My Web Application',// preloading 'log' component'preload'=>array('log'),'aliases' => array('bootstrap' => realpath(__DIR__. '/../extensions/bootstrap'),'audit' => realpath(__DIR__. '/../modules/audit'),),// autoloading model and component classes'import'=>array('application.controller.*','application.components.*','application.modules.audit.models.*','application.modules.audit.components.*',//'bootstrap.helpers.TbHtml','application.modules.audit.*','application.extensions.bootstrap.*',),'modules'=>array(// uncomment the following to enable the Gii tool'audi','audit' => array('class' => 'application.modules.audit.AuditModule','userViewUrl' => array('/audit/view', 'id' => '--user_id--'),'enableAuditField' => false,'connectionID' => 'db','autoCreateTables' => true,'layout' => 'application.modules.audit.views.layouts.column1','gridViewWidget' => 'application.extensions.bootstrap.widgets.TbGridView','detailViewWidget' => 'zii.widgets.CDetailView','controllerFilters' => array('auditAccess' => array('application.modules.audit.components.AuditAccessFilter'),),'adminUsers' => array('admin'),'yiiStrapPath' => 'application.vendor.yii-audit-module',),'gii'=>array('class'=>'system.gii.GiiModule','password'=>'12345',// If removed, Gii defaults to localhost only. Edit carefully to taste.'ipFilters'=>array('127.0.0.1','::1'),'generatorPaths' => array('bootstrap.gii'),),),// application components'components'=>array('errorHandler' => array(//'class' => 'application.modules.audit.components.AuditErrorHandler','errorAction' => 'site/error','trackAllRequests' => true,// 'catchFatalErrors' => true,'auditRequestIgnoreKeys' => array('PHP_AUTH_PW', 'password'),),'bootstrap' => array('class' => 'bootstrap.components.TbApi',),'user'=>array('allowAutoLogin'=>true,),'urlManager'=>array('urlFormat'=>'path',//'audit'=>'audit/default','rules'=>array('/'=>'/view','//'=>'/','/'=>'/',),),/*'db'=>array('connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',),*/// uncomment the following to use a MySQL database'db'=>array('connectionString' => 'mysql:host=localhost;dbname=','emulatePrepare' => true,'username' => 'root','password' => '','charset' => 'utf8','enableProfiling' => true,'enableParamLogging' => true,),'errorHandler'=>array(// use 'site/error' action to display errors'errorAction'=>'site/error',),'log'=>array('class'=>'CLogRouter','routes'=>array(array('class' => 'application.modules.audit.components.AuditLogRoute','levels' => 'error, warning, profile, audit',),// uncomment the following to show log messages on web pages/*array('class'=>'CWebLogRoute',),*/),),),// application-level parameters that can be accessed// using Yii::app()->params['paramName']'params'=>array(// this is used in contact page'adminEmail'=>'[email protected]',),);Abaixo o erro especificadoEstou iniciando em Yii e configurando uma extensão, só que está surgindo o seguinte erro:![Mensagem de erro][1][1]: https://i.sstatic.net/dQN6Q.pngAlguém tem alguma ideia de como resolver isso?
remoção de saudações e formatação
Fonte Link
utluiz
  • 74,6mil
  • 8
  • 162
  • 254

Conexao Conexão reiniciada

Bom Dia Galera

Estou iniciando em yiiYii e estou configurando uma extensaoextensão, só que estaestá surgindo o seguinte erro:

inserir a descrição da imagem aquiMensagem de erro

AlguemAlguém tem alguma ideia preciso urgentede como resolver isso?

Conexao reiniciada

Bom Dia Galera

Estou iniciando em yii e estou configurando uma extensao, só que esta surgindo o seguinte erro:

inserir a descrição da imagem aqui

Alguem tem alguma ideia preciso urgente resolver isso

Conexão reiniciada

Estou iniciando em Yii e configurando uma extensão, só que está surgindo o seguinte erro:

Mensagem de erro

Alguém tem alguma ideia de como resolver isso?

Fonte Link
user3677610
  • 135
  • 1
  • 1
  • 12
Carregando