Note the upgraded forum! If you are experiencing issues logging in, you may need to reset your password which should send an email. If the email doesn't arrive, be sure to check your spam folder just in case.

Articles Model Example

edited February 2011 in Installation
I'm trying out the articles model example from the user guide and getting this error.

Severity: Notice

Message: Undefined index: categories

Filename: models/articles_model.php

Line Number: 93

It happens when no categories are selected but works OK when one or more categories are selected.

I'm just trying to understand the method for saving many to many relationships for a project that needs colour options for products.

Can you help please?


  • edited 9:13PM
    That line should be:
    $data = (!empty($this->normalized_save_data['categories'])) ? $this->normalized_save_data['categories'] : array();

    The save_related has kind of an odd method signature.
  • edited 9:13PM
    Many Thanks,

    Your time is much appreciated
Sign In or Register to comment.