You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I generate a scaffold using oil generate admin/orm, it generates an additional template file located at APPPATH/views/template.php, which is similar to the one at APPPATH/views/admin/templates.php. So when I generate a scaffold using oil generate scaffold/orm, the template file is not replaced, and I get an error since the template requires $current_user...
Thanks,
The text was updated successfully, but these errors were encountered:
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...
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.
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): ?>.
Hi!
If I generate a scaffold using oil generate admin/orm, it generates an additional template file located at APPPATH/views/template.php, which is similar to the one at APPPATH/views/admin/templates.php. So when I generate a scaffold using oil generate scaffold/orm, the template file is not replaced, and I get an error since the template requires $current_user...
Thanks,
The text was updated successfully, but these errors were encountered: