Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Using PHPactiverecord in a module
  • Hi, I have downloaded PHP active record for Fuel from https://github.com/jschreuder/fuel-phpactiverecord
    and I am now just having a play around. I have a simple form that inserts data into the database but its getting an error "ErrorException [ Error ]: Class 'StoreManager\Post' not found". The code is below, and I have added ActiveRecord to the package to be loaded in the config. <?php
    namespace StoreManager; class Model_Products extends \ActiveRecord\Model { public static function create()
    {
    $post = Post::create($_POST);
    }
    } Where am I going wrong?
  • As always the error message should be read. It can't find the class Post in your namespace, that doesn't look like it has anything to do with the php.ActiveRecord package.

Howdy, Stranger!

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

In this Discussion