Yii Framework Forum: Params not included when testing common app - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Params not included when testing common app Yii Advanced App

#1 User is offline   twisted1919 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 700
  • Joined: 23-October 10
  • Location:Romania

Posted 07 December 2017 - 03:13 PM

Hello,

I noticed that when testing only the common app in the advanced app template, the params are not included, any reason for that?

Thanks.
0

#2 User is offline   alrazi 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 1,498
  • Joined: 08-August 12
  • Location:Durban, South Africa

Posted 07 December 2017 - 03:44 PM

I think the defaults are kept simple to avoid confusion, even frontend and backend dont include params for testing, if you like you can include them yourself pretty easy

<?php
return [
   //...
   'params' => require(__DIR__ . DIRECTORY_SEPARATOR . 'params.php')
];

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users