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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:38:15+00:00 2026-06-18T02:38:15+00:00

Here is my database structure: create table dpt_tutores ( id int primary key AUTO_INCREMENT,

  • 0

Here is my database structure:

create table dpt_tutores
(
id int primary key AUTO_INCREMENT,
nivel varchar(128),
apellidos varchar(256),
nombres varchar(256),
email varchar(512),
estado varchar(128)
);


create table dpt_grupos
(
id int primary key AUTO_INCREMENT,
fecha_de_creacion datetime,
alumnos varchar(512),
titulo varchar(1024),
id_curso int,
informe_nota decimal(5,2),
informe_rango varchar(16),
predefensa_fecha datetime,
predefensa_gmt varchar(16),
predefensa_webex varchar(16),
defensa_fecha datetime,
defensa_gmt varchar(16),
defensa_webex varchar(16),
id_revisor int,
FOREIGN KEY (id_revisor) REFERENCES dpt_tutores(id),
id_guia int,
FOREIGN KEY (id_guia) REFERENCES dpt_tutores(id)
);

create table dpt_grupos_iteraciones
(
id int primary key AUTO_INCREMENT,
fecha datetime,
ubicacion_archivo varchar(512),
nota float(4,2),
id_grupo int,
FOREIGN KEY (id_grupo) REFERENCES dpt_grupos(id)
);

I’ve added the following Model (dpt_grupo.php):

<?php
class DptGrupo extends AppModel {

}

And my controller:

<?php
class DptController extends AppController {
  public $helpers = array('Html', 'Form');

  public function index() {
    $this->loadModel('Dpt_Grupo');
    $this->set('grupos', $this->dpt_grupo->find('all'));
  }
}

But when I run the action in that controller I get the error:

Fatal Error Error: Cannot redeclare class DptGrupo File:
C:\xampp\htdocs\foowebsite\app\Model\dpt_grupo.php Line: 4

Notice: If you want to customize this error message, create
app\View\Errors\fatal_error.ctp

How can I just find a list of all the rows in the dpt_grupos table?

  • 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-18T02:38:16+00:00Added an answer on June 18, 2026 at 2:38 am

    Rename the model file to
    DptGrupo.php

    $this->loadModel('DptGrupo');
    $this->set('grupos', $this->DptGrupo->find('all'));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following table structure in my database: create table Encargado( ID int
Consider the following database schema: create table UserGroup ( id int not null auto_increment,
Structure: CREATE TABLE `links` ( `id` int(11) NOT NULL auto_increment, `title` int(11) default NULL,
Could someone give me an idea how to create this database structure. Here is
I have a SQL database table with the following structure: create table category_value (
I am trying to create a table based on the Magento database structure. I
I have this database structure: protected static final String Buildings = CREATE TABLE +
I have created a database where I use uniqueidentifier as the primary key. I'm
I have a database table that has a structure like the one shown below:
here's the table structure -- phpMyAdmin SQL Dump -- version 3.4.10.1 -- http://www.phpmyadmin.net --

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.