Okay I am new to PHP, but can figure most of it out. I have 3 Tables
Table one = 'branches' with columns: id, name, url_string, abbreviation, website, branch_types_id, branch_statuses_id
Table two = 'branch_types' with columns: id, url_string, type
Table three = 'branch_statuses' with columns: id, url_string, name
I am trying to get the branch_types(name) to show up in the manage.php table for module Branches that is associated with the branches(branch_types_id) instead of just the int that is stored for each record in 'branch_types_id'. and 'branch_statues_id' respectively
I have created a module relation for both to branches
I have it where it does show on my create.php as dropdowns to create the relationship and select the respective id to branch_statuses_id and branch_types_id.
I have tried creating a function in branches.php controller
I have tried using the $this->module('module_relations) string, I have even tried
I have looked at this for too long I bet it is a simple fix I am just missing it
Here is my manage.php
but I am getting Fatal error: Uncaught Error: Using $this when not in object context
any help will be apricated.
Showing associated Table info with Inner Join on manage.php as a td
3 years ago
3 years ago
#1
3 years ago
#2
Welcome,
First you can turn on model debug.
Engine Folder, then Model Folder, then Make line 13 true.
Dan
First you can turn on model debug.
Engine Folder, then Model Folder, then Make line 13 true.
Dan
3 years ago
#3
Dan, Thank you for your direction I had not turned that on. I fixed my issue by adding the following to my Branches.php Controller file under the manage function
and then this to my manage.php file
Thanks for the debug idea
and then this to my manage.php file
Thanks for the debug idea