Yii Framework Forum: yii2 composer.json - Yii Framework Forum

Jump to content

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

yii2 composer.json Rate Topic: -----

#1 User is offline   PK95 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 02-February 17

Posted 16 March 2017 - 03:17 AM

just a few menute i install yii2.
{
    "name": "<?= $generator->vendorName ?>/<?= $generator->packageName ?>",
    "description": "<?= $generator->description ?>",
    "type": "<?= $generator->type ?>",
    "keywords": <?= $generator->keywordsArrayJson ?>,
    "license": "<?= $generator->license ?>",
    "authors": [
        {
            "name": "<?= $generator->authorName ?>",
            "email": "<?= $generator->authorEmail ?>"
        }
    ],
    "require": {
        "yiisoft/yii2": "*"
    },
    "autoload": {
        "psr-4": {
            "<?= str_replace('\\','\\\\',$generator->namespace) ?>": ""
        }
    }
}


and there's a red underline in this code

"keywords": <?= $generator->keywordsArrayJson ?>,


is it anything wrong with it?
0

#2 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,883
  • Joined: 17-January 09
  • Location:Russia

Posted 16 March 2017 - 07:08 AM

No.
Yii 2.0 Development Cookbook, Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.

Support me so I work on Yii fulltime: https://www.patreon.com/samdark
0

#3 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 3,454
  • Joined: 10-October 10
  • Location:Denmark

Posted 16 March 2017 - 10:47 AM

View PostPK95, on 16 March 2017 - 03:17 AM, said:

is it anything wrong with it?

It is a template, so it's OK.
And, yes: it is not valid JSON. It isn't meant to be valid. :)

Are you checking every file in your Yii2 directory? Posted Image
"Less noise - more signal"
0

#4 User is offline   PK95 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 02-February 17

Posted 16 March 2017 - 09:13 PM

View Postjacmoe, on 16 March 2017 - 10:47 AM, said:

It is a template, so it's OK.
And, yes: it is not valid JSON. It isn't meant to be valid. :)

Are you checking every file in your Yii2 directory? Posted Image

what file you mean?
well, there's a lot of red line error in my vendor folder.
0

#5 User is offline   PK95 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 02-February 17

Posted 16 March 2017 - 09:20 PM

View Postsamdark, on 16 March 2017 - 07:08 AM, said:

No.

no?
okay. :mellow: :D :P
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