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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:18:46+00:00 2026-06-01T09:18:46+00:00

I have a DB that has the label table with info in it. I

  • 0

I have a DB that has the label table with info in it. I created a module in the admin with the only function of listing the information of that table label which fields are: id, text (for ex: 1 Sony, 2 Warner, etc.)

Nevertheless: When I enter to the module -in the browser- I just see the title that I wrote in the generator.yml, but not the display of the fields of the list (this is: from the database). I re-checked in databases.yml that the info there is OK. I can enter to the DB and see the information.

Here are some relevant files:

generator.yml:

generator:
  class: sfPropelGenerator
  param:
    model_class:           Label
    theme:                 admin
    non_verbose_templates: true
    with_show:             false
    singular:              Label
    plural:                Labels
    route_prefix:          label
    with_propel_route:     1
    actions_base_class:    sfActions

  config:
    actions: ~
    fields:  ~
    list:
      title: it's working!!
      fields:
      display:  [id, text]   
    filter:  ~
    form:    ~   
    edit:    ~  
    new:     ~    

NOTE: only appears it’s working!! when I do: page.com/label. Not the info of the DB. I already played with the capital letters in the param of the generator.yml. Also, deleted the cache every time, after the changes and checked the indentation -two spaces, no tabs-

In the folder /template I don’t have any template. In /actions I have:

*actions.class.php:*

class labelActions extends sfActions 
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeIndex(sfWebRequest $request)
  {
   //$this->forward('default', 'module');
  }
}

NOTE: just commented a line. As says the instructions when you create a new module, to eliminate the default Symfony screen.

The routing.yml which is in the config folder of the father of all the modules:

routing.yml:

...
label:
  class: sfPropelRouteCollection
  options:
    model:                Label
    module:               label
    prefix_path:          /label
    column:               id
    with_wildcard_routes: true  
 ...

NOTE: played with the capital letters too, ex: label, Label, etc. Cleaned cache every time.

  • 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-01T09:18:48+00:00Added an answer on June 1, 2026 at 9:18 am

    Your actions.class.php is strange…

    If you use a generator you must have an actions like that:

    <?php
    
    require_once dirname(__FILE__).'/../lib/labelGeneratorConfiguration.class.php';
    require_once dirname(__FILE__).'/../lib/labelGeneratorHelper.class.php';
    
    /**
     * label actions.
     *
     * @package    domain
     * @subpackage label
     * @author     Your name here
     * @version    SVN: $Id: actions.class.php 12474 2008-10-31 10:41:27Z fabien $
     */
    class labelActions extends autoLabelActions
    {
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an admin module, that has a file input filed, where I'd like
I have a Task object that has a collection of Label objects ... in
I have a DataGrid, with an ItemTemplate that has an image and label. In
If I have Table3 that has a FK pointing to Table2 which has a
I have created a table which is filled in with remote data. I'm getting
I have a table that has columns in a template: <div id=petDiv> <table> <thead>
I have a table that has 100% width. It is generated dynamically with values
I have a table that has a couple of cells that do not contain
I created a custom cell function that has two uitextfields in it, because I
I have got a table, and it has a label in one of its

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.