Is ldopt a reserved word in yii/php for some reason.
The actual table is called LdOpt
. So the model generated is also called LdOpt
Then when generating the CRUD I set model class to app\models\LdOpt
and Search Model class to app\models\LdOptSearch
and controller to app\controllers\LdOptController
, finally leaving the View Path empty
But gii changes path from expected ldopt
to ld-opt
as in preview view
Code File Action
controllers /LdOptController.php create
models /LdOptSearch.php create
views /ld-opt/_form.php create
views /ld-opt/_search.php create
views /ld-opt/create.php create
views /ld-opt/index.php create
views /ld-opt/update.php create
views /ld-opt/view.php create
Just wondering why it did it because never paid attention to file name and just generated them and wasted some time with route ?r=ldopt/index
etc before I looked at files on disk.
Also as an experiment I tried moving the directory back to ldopt
and it causes a 404 not found in yii