Comments (3)
I tracked it done to it being this and here is the fix
packages/oil/classes/generate/scaffold.php Lines 85 to 92
// Either foo or folder/foo
$view_path = $controller_path = str_replace(
array('_', '-'),
'/', //DS, change the DS to '/' that fixes the problem, see below same code.
\Str::lower($controller_name)
);
Not sure if the model one below it will also need to be fixed.
// Models are always singular, tough!
$model_path = str_replace(
array('_', '-'),
DS,
\Str::lower($model_name)
);
from oil.
You generated files on Windows, and your live server is Linux, right?
DS
means \
on Windows, /
on Linux. PHP for Linux uses only /
as directory separator,
but PHP for Windows uses both /
and \
as directory separator.
In that case, all DS
in generated files should be /
.
from oil.
Correct.
It took me awhile but the fix is above in scaffold.php
It's sending the $view_path to the views directory were there are templates that are used in the controllers.
from oil.
Related Issues (20)
- Typo in applied Bootstrap CSS class name on textareas
- Auth config not loaded HOT 1
- Want a template system for oil generate commands
- "oil generate admin/orm" generates an additional wrong template file HOT 3
- It's nice to generate its test code scaffolding when run oil generate something. HOT 4
- Features missing from the "fromdb" task HOT 2
- oil generate test HOT 3
- Parse error in driver package scaffolding HOT 3
- Field types decimal and float break model and create incorrect migration HOT 5
- "fromdb" task HOT 3
- OIL scaffolding not working on php 7.1.3 HOT 2
- oil refine fromdb:scaffold --all HOT 3
- Oil generates Views that use Input::post() HOT 2
- 'Unique' misspelled in Generate_Migrations_Actions HOT 3
- Module support for Scaffolding and Admin
- Pagination error when generated from `oil generate admin` HOT 4
- Missing code to render pagination on generated view from oil generate admin command
- Broken link for oil cell HOT 2
- Console PHP7.4 error fix
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 oil.