Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8247903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T23:00:51+00:00 2026-06-07T23:00:51+00:00

Trying to be as specific as possible, as I got slammed last time I

  • 0

Trying to be as specific as possible, as I got slammed last time I posted something!

Users authenticate and then in AppController I route them to a controller called Owners with the action being index code below

    public $components = array(                                                                         
  'Session',                                                                                    
  'Auth' => array(                                                                              
    'loginRedirect' => array('controller' => 'Owners', 'action' => 'index')                     
)    

I am new to Cake, but my guess is when the Owner Controller fires the code in the index function, it returns nothing and that is why I get the fatal error message in the view.
(I am reading the Cakephp 2.0 cookbook) and yes there are several Owners in the owner table so its not empty.

mysql> select * from owners;
+—-+———–+————-+———-+——————–+———-+———+——-+——-
——+———+————+————-+
| id | firstname | middlename | lastname | streetaddress | city | zipcode | state | phonen
umber | user_id | vehicle_id | citation_id |
+—-+———–+————-+———-+——————–+———-+———+——-+——-
——+———+————+————-+
| 1 | Mark | Walter | Simpson | 1234 Anytown | antonw | 12345 | Ge | 916123
456 | 1 | NULL | NULL |
| 2 | Frank | Dorthmuller | Frank | 2878 Bonlay Street | Fresno | 95758 | Ca | 916551
0234 | 3 | NULL | NULL |
| 3 | Toren | W | Valone | 8252 blind oak way | Belfower | 3889 | ca | 917838
8 | 1 | NULL | NULL |
| 4 | Toren | W | Valone | 8252 blind oak way | Belfower | 3889 | ca | 917838
8 | 1 | NULL | NULL |
+—-+———–+————-+———-+——————–+———-+———+——-+——-
——+———+————+————-+
4 rows in set (0.00 sec)

In the Owners controller I put this following code in the index function,

     public function index() {                                                                   

          $this->set('owners', $this->Owner->find('all'));                                      
    }

When I login as a user I get this,
Owners

Notice (8): Undefined property: View::$Paginator [CORE/Cake/View/View.php, line 804]

Fatal error: Call to a member function sort() on a non-object in /srv/www/www.cross-town-traffic-software.com/public_html/freecite/app/View/Owners/index.ctp on line 5

Here is line five from the index.ctp file in the owners directory

<th><?php echo $this->Paginator->sort('id');?></th>      
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T23:00:52+00:00Added an answer on June 7, 2026 at 11:00 pm

    You are trying to use the PaginatorHelper in your view, but have not included it.

    Add

    public $helpers = array('Paginator');
    

    to your controller. See Cookbook for background on Helpers and how to use them in your views.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to remove a specific graph object from the zedgraph, is it possible....?
Good day guys, I've got quite a specific data model that I'm trying to
I'm trying to generate all possible subsets for a specific bool vector of size
I'm trying to override a specific function in kernel32.dll. Is it somehow possible to
Possible Duplicate: reading a specific file from sdcard in android I'm trying to make
Possible Duplicate: Simple and clean xml manipulation in PHP I trying to reference specific
I'm trying to update a specific record based off of a users selection. Regarding
I am trying to parse specific XML file which is located in sub directories
I am trying to get specific version in git and commit it as the
I'm trying to create specific custom filter effects on image for iOS. So far,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.