Comments (19)
This becomes difficult to troubleshoot and isn't necessarily a Yii2 issue IMHO.
https://news-web.php.net/php.internals/110907
I ran into some issues configuring an IIS handler. Admittedly, I am not a IIS expert or even novice.
from docs.
@cgsmith the app runs smoothly with Yii 2.0 and 1.1 on IIS.
This repo is about the new version: Yii 3.0.
from docs.
For the install, I used Web Platform Installer from Microsoft, PHP Manager from phpmanager.xyz and Fast CGI.
To enable IIS and Fast CGI, it is necessary to go to Programs and Features (Control Panel) > Turn Windows features on or off.
Enable Internet Information Services and expand it. There is an option called CGI that is used also for PHP.
The quickest way to add PHP 8 is installing it manually, and then add via PHP Manager.
from docs.
Try to set the prefix
property manually in the SubFolder middleware to /projects/yii3basic
from docs.
@roxblnfk I don't know how to implement it.
Can you give an example?
from docs.
Try adding it to https://github.com/yiisoft/demo/blob/master/config/web/application.php#L22.
from docs.
@samdark it's almost there.
How do I adjust the base URL used on CSS and JS files by assets?
from docs.
Try change https://github.com/yiisoft/app/blob/master/config/params.php#L22 to /projects/yii3basic/assets
.
from docs.
Try change https://github.com/yiisoft/app/blob/master/config/params.php#L22 to
/projects/yii3basic/assets
.
i think this value should be prefixed with @baseUrl
: '@baseUrl/assets'
The @baseUrl
alias will be changed automatically in the SubFolder middleware
from docs.
Try change https://github.com/yiisoft/app/blob/master/config/params.php#L22 to
/projects/yii3basic/assets
.
@rustamwin @roxblnfk yes, this solved the assets issue.
Try change https://github.com/yiisoft/app/blob/master/config/params.php#L22 to
/projects/yii3basic/assets
.i think this value should be prefixed with
@baseUrl
:'@baseUrl/assets'
The
@baseUrl
alisa will be changed automatically in the SubFolder middleware
@samdark is there a good reason the SubFolder middleware is not included in the web/application config by default?
from docs.
@samdark is there a good reason the SubFolder middleware is not included in the web/application config by default?
For main template it's OK.
But it's strange that it is not included in the yiisoft/demo project.
from docs.
For main template it's OK.
To beginners in Yii3 (like myself), it's one more step to configure after a fresh install.
But it's strange that it is not included in the yiisoft/demo project.
I agree.
from docs.
Well, nowadays it's often Docker images and these are always point to the webroot. There's no sub-directoryies. That's why it wasn't done by default.
from docs.
Well, nowadays it's often Docker images and these are always point to the webroot. There's no sub-directoryies. That's why it wasn't done by default.
I still can't use Docker. For some reason, my Windows shows a BSOD if I try to install Docker or by enabling Hyper-V.
from docs.
I see. At least we need it documented well.
from docs.
I see. At least we need it documented well.
@samdark it will help a lot.
Shall we close this issue and open a new one, related to mine? Or keep it opened?
from docs.
Keep it opened. Open another one.
from docs.
Keep it opened. Open another one.
Ok. Thank you.
from docs.
Closing since it's in the default config now.
from docs.
Related Issues (20)
- Feature: Add deploy instrument integration HOT 4
- Do not mention default values in PHPDoc HOT 1
- Consider using conventional comments for code review HOT 1
- Have rules about resolving discussions / conversations in code review HOT 4
- Chain calls must be put on separate lines HOT 14
- Add Related packages section HOT 2
- update CODE_OF_CONDUCT.md links
- update yii site links
- update links
- broken links
- Add Rule and Rule Handler to glossary
- Add common PHPStorm config
- Document explicit `null` type hint HOT 5
- Configure max line length
- Code style summary to discuss and configure HOT 4
- Automatically add line breaks for long lines in Markdown HOT 1
- Automatically detect broken links
- Link to the next chapter where it makes sense
- Yiisoft\Form\YiisoftFormModel\FormModel is not exist HOT 1
- Add git branches flow description HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs.