Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating your own Application structure for Yii2 #2939

Closed
jason-son opened this issue Apr 1, 2014 · 8 comments
Closed

Creating your own Application structure for Yii2 #2939

jason-son opened this issue Apr 1, 2014 · 8 comments
Assignees
Labels
Milestone

Comments

@jason-son
Copy link

@jason-son jason-son commented Apr 1, 2014

yep, we need Learn how to start from scratch.
who knows this please join us to write this
https://github.com/yiisoft/yii2/blob/master/docs/guide/apps-own.md

@samdark samdark added the type:docs label Apr 1, 2014
@samdark
Copy link
Member

@samdark samdark commented Apr 1, 2014

  1. Decide if basic or advanced app is close enough.
  2. Checkout app repository.
  3. Modify code and composer.json.
  4. Create git repo and push code there.
  5. Register at packagist (or your own package server).

Here's an example: https://github.com/samdark/yii2-minimal

@samdark samdark self-assigned this Apr 1, 2014
@schmunk42
Copy link
Contributor

@schmunk42 schmunk42 commented Apr 7, 2014

Another example with /app folder and vagrant support https://github.com/phundament/app/tree/4.0

@qiangxue qiangxue added this to the 2.0 RC milestone Apr 16, 2014
@samdark samdark closed this in 6f0d218 Apr 17, 2014
@samdark samdark reopened this Apr 18, 2014
@samdark
Copy link
Member

@samdark samdark commented Apr 18, 2014

Need to rewrite it. See comments at 6f0d218

@cebe
Copy link
Member

@cebe cebe commented Apr 18, 2014

No need to rewrite existing one, that is also fine. Just need another one about starting from scratch to see how everything comes together.

@samdark
Copy link
Member

@samdark samdark commented Apr 18, 2014

What do you mean by "everything comes together"?

@cebe
Copy link
Member

@cebe cebe commented Apr 18, 2014

I mean it is easier to understand a complex system when you see how it gets built from scratch. you see what is the minimal thing needed to make it work and what you need to add to get other things working.
Looking at the basic app trying to understand all the files that are in there is quite complex when you do not know where to start. This guide should start from scratch creating an index.php, a config starting the application and adding more and more things so you see how it is created and why each file is where it is.

@cebe cebe assigned cebe and unassigned samdark Apr 18, 2014
@cebe
Copy link
Member

@cebe cebe commented Apr 18, 2014

Added me as assignee, will start writing a guide like this.

@cebe cebe modified the milestones: 2.0 GA, 2.0 RC Apr 22, 2014
@qiangxue
Copy link
Member

@qiangxue qiangxue commented Oct 2, 2014

Close this as it is already being tracked in the guide README.md file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.