Comments (3)
The scaffold template is public, and doesn't require (or use) a logged in user, the admin template is not public, requires a login, and uses $current_user. So they are different templates.
Are you saying that both are generated in the same app location? That would be very wrong...
from oil.
Just ran a test here, and I don't see a problem, admin templates are generated separated from frontend templates. I see that the templates don't seem to be bootstrap 3 compatible, but that is another issue.
from oil.
Hi,
I might not have been enough clear. I will show you exactly what I did:
First I installed Fuel:
git clone [email protected]:fuel/fuel.git
php composer.phar update
Then I generated an admin scaffold:
php oil generate admin/orm category name:string
Among the files that were generated, there are two templates:
One at APPPATH/views/template.php, and one at APPPATH/views/admin/template.php. The problem is that both are exactly similar ; APPPATH/views/template.php seems incorrect, as it is checking for <?php if ($current_user): ?>
.
Thanks,
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 admin generate generating wrong links 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.