How To Get Dynamic Values For Cron File ?

This is my config/colsole.php




return array(

	'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',

	'name'=>'My Console Application',

	// autoloading model and component classes

	'import'=>array(

		'application.models.*',

		'application.components.*',

                'application.modules.user.models.*',

                'application.modules.user.components.*',

				'ext.swiftMailer.SwiftMailer',

				'ext.yii-mail.YiiMailMessage',

		'application.modules.leaves.models.*',					                                

	),

	

	'modules'=>array(

            'user'=>array(

			'tableUsers' => 'tbl_users',

  			'tableProfiles' => 'tbl_profiles',

  			'tableProfileFields' => 'tbl_profiles_fields',

			'profileRelations'=>array(

                        'country'=>array(CActiveRecord::BELONGS_TO, 'Country', 'country1'),

						'city'=>array(CActiveRecord::BELONGS_TO, 'City', 'city'),

                        ),

		),

		

		

			 

		// uncomment the following to enable the Gii tool

		'gii'=>array(

			'class'=>'system.gii.GiiModule',

			'password'=>'123456',

		 	// If removed, Gii defaults to localhost only. Edit carefully to taste.

			'ipFilters'=>array('127.0.0.1','192.168.0.137','::1'),

		),

	),

	

	// application components

	'components'=>array(

		'user'=>array(

			// enable cookie-based authentication

			'allowAutoLogin'=>true,

		),

		

		'mail'=>array(

                'class'=>'application.extensions.yii-mail.YiiMail',

                'transportType'=>'smtp', /// case sensitive!

                'transportOptions'=>array(

                    'host'=>'smtp.gmail.com',

                  //  'username'=>'projectadmin@cityit.in', //'username'=>'mahesh.chalke@cityit.in', 

                 //   'password'=>'pRoJ3tAdm!n', //'password'=>'mahesh#c',

                     'username'=>'sonali.kanawade@cityit.in', //'username'=>'mahesh.chalke@cityit.in', 

                    'password'=>'sonalict2391', //'password'=>'mahesh#c',

                    'port'=>'465',

                    'encryption'=>'ssl',

                    ),

                'viewPath' => 'application.views.emailTemplate',

                'logging' => true,

                'dryRun' => false

             ),

		

			 

		'db'=>array(

			'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',

		),

		// uncomment the following to use a MySQL database

		

		'db'=>array(

			//'connectionString' => 'mysql:host=localhost;dbname=cityitb_timeentry',

                 ////       'connectionString' => 'mysql:host=localhost;dbname=timeentr_timeentry',

                       'connectionString' => 'mysql:host=localhost;dbname=timeentry-v1',

			'emulatePrepare' => true,

			//'username' => 'cityitb_tentry',

                       //// 'username' => 'timeentr_user',

                         'username' => 'root',

			//'password' => 'QpOlz~?Erpp2',

                   ////  'password' => 'dfpklqn23vew',

                    'password' => '',

			'charset' => 'utf8',

		),

		'log'=>array(

			'class'=>'CLogRouter',

			'routes'=>array(

				array(

					'class'=>'CFileLogRoute',

					'levels'=>'error, warning',

				),

				// uncomment the following to show log messages on web pages

				

				array(

					'class'=>'CWebLogRoute',

				),

				

				

			),

		),

		

		

	),

        'params'=>array(

		// this is used in contact page

		//'adminEmail'=>'webmaster@example.com',

		'adminEmail'=>'mahesh.chalke@cityit.in',

                'company' => array(

                                    'id' => '1',

                                    'name'=> 'Cityit.in',

				    				'leave_applicable'=>1.5,				    

                                    ),

                'leaveManager'=>adminEmail, 

                'leaveNotificationCC'=>ccEmailAccount,

                'leaveNotificationBCC'=>bccEmailAccount,

                'fromEmailAccount'=>fromEmailAccount, 

		),

		

);



I want to acess this params into my cron.php file ?if there any solution Please reply me.

Use button "Insert code snippet"!

did you try


Yii::app()->params['paramName'];