Add cookbook recipe for implementing advanced app structure with Yii3#308
Draft
Add cookbook recipe for implementing advanced app structure with Yii3#308
Conversation
…Yii3 Co-authored-by: samdark <[email protected]>
Co-authored-by: samdark <[email protected]>
Co-authored-by: samdark <[email protected]>
Copilot
AI
changed the title
[WIP] Add cookbook for implementing Yii2 advanced app structure in Yii3
Add cookbook recipe for replicating Yii2 advanced app structure in Yii3
Jan 8, 2026
Member
|
@copilot That should not be an article about migration from Yii2 to Yii3 or a comparison of these two. It should be about using the same structure as in Yii2 but in Yii3. |
…rison Co-authored-by: samdark <[email protected]>
Contributor
Author
Refactored the article to focus purely on implementing the advanced app structure pattern in Yii3. Removed all migration/comparison content including the "Understanding the differences" and "Migration from Yii2" sections. The article now shows how to set up the structure without comparing frameworks. (94c6d81) |
Copilot
AI
changed the title
Add cookbook recipe for replicating Yii2 advanced app structure in Yii3
Add cookbook recipe for implementing advanced app structure with Yii3
Jan 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Provides step-by-step guidance for structuring a Yii3 application with multiple entry points for frontend, backend, console, and API applications using the advanced application template pattern.
Recipe Contents
index.php), backend (admin.php), and API applications with configuration-based separationadmin,web,api, andconsoleconfigurations with shared common configsrc/{Admin,Frontend,Api,Shared}for separation while enabling code reuse.envfiles and environment-specific parametersExample Entry Point Pattern
Configuration Plugin Setup
{ "config-plugin": { "admin": ["$common", "config/admin/*.php"], "web": ["$common", "config/web/*.php"], "api": ["$common", "config/api/*.php"] } }The recipe demonstrates how to achieve application separation through configuration and middleware while maintaining clear organizational structure in Yii3.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.