Welcome Guest, Not a member yet? Register   Sign In
Calling Model Function
#7

(This post was last modified: 04-30-2020, 07:39 AM by 68thorby68.)

Many thanks jreklund,

I think I'am getting there, and once I can figure this logic out I will be flying . So to recap if I call my page, that in turn references the dynamic content (page extends dynamic), which in turn references the BaseController (dynamic extends BaseController)?


but what if I want to access more than one controller/view in my page?  i.e. I have a page with dynamic content in the menu (as above), and I totally diiferent dynamic content in the main body of the page, surely I dont have to daisy chain the classes as I've assumed above? (I feel stupid!!).

also, I was getting a 404 Controller method is not found: index. So, changed function __construct () in page controller, to function index().This appers to work, but are there any implications by not using function __construct () in may page controller?



Apologies for being thick, my brain only has a 386 processing capacity.
Reply


Messages In This Thread
Calling Model Function - by 68thorby68 - 04-28-2020, 06:45 AM
RE: Calling Model Function - by kilishan - 04-28-2020, 07:02 AM
RE: Calling Model Function - by InsiteFX - 04-28-2020, 08:08 AM
RE: Calling Model Function - by jreklund - 04-28-2020, 09:53 AM
RE: Calling Model Function - by 68thorby68 - 04-29-2020, 01:57 AM
RE: Calling Model Function - by jreklund - 04-29-2020, 10:55 AM
RE: Calling Model Function - by 68thorby68 - 04-30-2020, 04:13 AM
RE: Calling Model Function - by jreklund - 05-01-2020, 09:03 AM
RE: Calling Model Function - by 68thorby68 - 05-03-2020, 02:22 AM
RE: Calling Model Function - by jreklund - 05-03-2020, 03:01 AM
RE: Calling Model Function - by 68thorby68 - 05-03-2020, 03:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB