View more context

 

Terry Apodaca

otherwise, it added the new fields directly to SiteConfig

bummzack

I don't think that's going to work… that'll change the table name of siteconfig as well… if it even gets picked up

bummzack

Why do you want a separate table though?

Terry Apodaca

which means, in templates would I have to change from $SiteConfig to $SiteConfigExtension?

bummzack

Extensions add functionality to an existing class… the class name remains the same

bummzack

Just think about it as custom functionality you slap onto an existing class

Terry Apodaca

so just to test it, I added private static $table_name = 'SiteConfigExtension'; and it did add the new tables for it and when my settings tab refreshed I lost the original Title and Slogan I had saved previously