Posted: Thu Jan 18, 2007 5:43 pm
Hello there,
I'm loving the new Actions functionality in Dataface. I've run into two problems though:
1. The "Actions I" tutorial first teaches how to use a Smarty HTML template, then an Action Controller PHP class. It notes that the benefits of formatting via a Smarty templates are lost with the controller class, and suggests you can regain the formatting by calling the df_display function to the Smarty template.
The problem is, how do you *embed* the PHP results from the controller class in the template's display? I'm simply trying to get the results of the Controller class's output (it does some SQL queries and has some user forms) to be prionted within the standard Dataface template, ie. in the content section.
2. Are all the "table tab" categories in actions.ini working yet? It seems only the "Table Actions" are working currently. I tried adding some Relationship Actions (using "category = relationship_actions" in my own actions.ini file) and it didn't work. In fact, I edited the source actions.ini file (in the dataface directory) to a 0-byte file, and then browsed my database. The only tabs that went missing were the Table Actions. The rest continued to work, using the source code rather than the actions file.
Warmest regards,
Shiraz
I'm loving the new Actions functionality in Dataface. I've run into two problems though:
1. The "Actions I" tutorial first teaches how to use a Smarty HTML template, then an Action Controller PHP class. It notes that the benefits of formatting via a Smarty templates are lost with the controller class, and suggests you can regain the formatting by calling the df_display function to the Smarty template.
The problem is, how do you *embed* the PHP results from the controller class in the template's display? I'm simply trying to get the results of the Controller class's output (it does some SQL queries and has some user forms) to be prionted within the standard Dataface template, ie. in the content section.
2. Are all the "table tab" categories in actions.ini working yet? It seems only the "Table Actions" are working currently. I tried adding some Relationship Actions (using "category = relationship_actions" in my own actions.ini file) and it didn't work. In fact, I edited the source actions.ini file (in the dataface directory) to a 0-byte file, and then browsed my database. The only tabs that went missing were the Table Actions. The rest continued to work, using the source code rather than the actions file.
Warmest regards,
Shiraz