Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Oil generate controller
  • I'm using Wampserver on a Windows Vista 32-bit machine. When I run this C:\wamp\www\fuel>php oil generate controller common I get this
    Notice - Undefined variable: folder in PKGPATH/oil/classes/generate.php on line 131
    Notice - Undefined variable: actions in PKGPATH/oil/classes/generate.php on line 133
    Notice - Undefined variable: folder in PKGPATH/oil/classes/generate.php on line 136
            Creating controller: C:\wamp\www\fuel\fuel\app\classes/controller/common.php
    

    Instead of this
    Created view: APPPATH/views/common/index.php
            Created controller: APPPATH/classes/controller/common.php
    

    I'm not sure if I'm doing this wrong or not
  • Hello guys, similar problem on Mac. Here the view files got created on the root instead of the views folder.
    $ php oil g controller posts view edit delete
    
    Notice - Undefined variable: folder in PKGPATH/oil/classes/generate.php on line 131
    Notice - Undefined variable: actions in PKGPATH/oil/classes/generate.php on line 133
    Notice - Undefined variable: folder in PKGPATH/oil/classes/generate.php on line 136
    Notice - Undefined variable: view_dir in PKGPATH/oil/classes/generate.php on line 147
    Notice - Undefined variable: view_dir in PKGPATH/oil/classes/generate.php on line 147
    Notice - Undefined variable: view_dir in PKGPATH/oil/classes/generate.php on line 147
     Creating view: /Users/Matt/Sites/public/fuel/fuel/app/views/template.php
     Creating view: view.php
     Creating view: edit.php
     Creating view: delete.php
     Creating controller: /Users/Matt/Sites/public/fuel/fuel/app/classes/controller/posts.php
    
  • I'm getting this:
    $ php oil g controller posts view edit delete
    Creating view: /Users/phil/Sites/fuelphp/fuel/fuel/app/views/template.php
    Creating view: /Users/phil/Sites/fuelphp/fuel/fuel/app/views/posts/view.php
    Creating view: /Users/phil/Sites/fuelphp/fuel/fuel/app/views/posts/edit.php
    Creating view: /Users/phil/Sites/fuelphp/fuel/fuel/app/views/posts/delete.php
    Creating controller: /Users/phil/Sites/fuelphp/fuel/fuel/app/classes/controller/posts.php

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion