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 8562285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:41:52+00:00 2026-06-11T16:41:52+00:00

Documentation on creating your own Components is piss-poor. How does one read model data

  • 0

Documentation on creating your own Components is piss-poor.

How does one read model data inside a Component?

Trying to do something as simple as trying to get $this->request->params[‘pass’][0] is making me want to kill myself. Considering Components are supposed to plug into Controllers, I’m surprised it’s as difficult as it is.

  • 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-11T16:41:53+00:00Added an answer on June 11, 2026 at 4:41 pm

    why are you not using the available information there is?
    for instance you could look directly in the code. its open source and easy to browse via github:

    https://github.com/cakephp/cakephp/blob/2.3/lib/Cake/Controller/Component/PaginatorComponent.php#L226

    there you would find out a lot more you could ever get from any API or documention.
    for instance, that using

    public function __construct(ComponentCollection $collection, $settings = array()) {
        $settings = array_merge($this->settings, (array)$settings);
        $this->Controller = $collection->getController();
        parent::__construct($collection, $settings);
    }
    

    and then

    $this->Controller->... 
    

    anywhere in your code you can access just about anything from the current controller.
    just as if you were inside this controller.

    so also:

    $this->Controller->request->params['pass'][0]
    

    or just

    $this->Controller->request->pass[0]
    

    PS: there are over 6 other components to learn from, besides all those test cases to it, as well.

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

Sidebar

Related Questions

The CoreData documentation says You can sometimes benefit from creating your own unique ID
I am wondering the merits of using a PDO verses creating your own custom
I'm having a hard time finding the documentation for creating a unique dependency in
I am currently in the process of creating API documentation using Microsoft Word 2007
Well I am creating a script to automatically generate documentation for my projects with
The permission/authentication documentation for Django 1.4 provides the following snippet for creating custom permissions
Documentation for data.xml/parse says The data is returned as defrecords and can be manipulated
Documentation says: The Grails team discourages the embedding of core application logic inside controllers,
The official documentation says that Your application must have a local Service to facilitate
Has anyone tried creating end user (potentially online, potentially to be printed) help/documentation out

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.