Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
oil generate model got an error
  • oil generate model users username:varchar[50] password:string group:int email:string last_login:int login_hash:string profile_fields:text created:int user_id:int update:int dateclosed:datetime

    I got this error.

    PHP Fatal error:  Class 'Clio' not found in /home/aidan/htdocs/fcleaf/fuel/packages/oil/classes/generate.php on line 238
    Error - Class 'Clio' not found in PKGPATH/oil/classes/generate.php on line 238

  • I think it is a bug.

    I change the line

    $plural = \Clio::option('singular') ? $singular : \Inflector::pluralize($singular);

    \Clio to \Cli

    It  works !


  • New question

    oil generate admin articles title:string summary:text clicked_num:int is_recommmended:boolean img:string

    I got

    Notice - Undefined index: plural_name in PKGPATH/oil/classes/generate/scaffold.php on line 105

  • I fixed it.

    $data['plural_name'] = \Cli::option('singular')? $data['singular_name'] : \Inflector::pluralize($data['plural_name']);

    changed to

    $data['plural_name'] = \Cli::option('singular')? $data['singular_name'] : \Inflector::pluralize($data['singular_name']);
  • My apache has already been enabled rewrite

    and  configured the path

    AllowOverride All

    config.php

    'index_file' => false,

    the public path existing .htaccess file

    But It can not work, I have to point the index.php file in uri,  did I forget something?
  • The oil issues have been fixed.

    It depends on how you have installed FuelPHP. The default setup, as included, only works when you installed it as documented, with the webserver document root pointing to the public folder.

    If you have installed it differently, you need different rewrite rules.

Howdy, Stranger!

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

In this Discussion