Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Database view 'viewname' is defined without columns
  • I am using ORM in FuelPHP to fetch some data on a table view I created in my data base.

    I followed the instruction that is given here but I'm getting an error as seen on the title above. Here is a screenshot of the error for reference (http://prntscr.com/72ssqc).

    Here is the code: http://pastebin.com/ips5VCzV

    Here is a screenshot of the view Table: http://prntscr.com/72st1e

  • It looks like that post is incorrect.

    If I look at the code, it is looking for a 'columns' array key, so:

        protected static $_views = array(
            'hugot_summary' => array(
                'columns' => array(
                    ... your column list here
                ),
            ),
        );

Howdy, Stranger!

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

In this Discussion