Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use PHP in a component
#2
PMB Wrote:Still playing around with GetSimple and loving it. I would like to knew if there is a way to make this work.

call get_navigation(return_page_slug()) from a component ? When I attempt this it returns a error ?

example :

make a component named footer paste this in
Code:
<?php get_navigation(return_page_slug());?>


Thanks for any help.

Which error? This should work (although you should put <ul>...</ul> around it to get valid HTML).
Include the component in the template using
Code:
<?php get_component('footer'); ?>
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply


Messages In This Thread
Use PHP in a component - by PMB - 2011-08-26, 01:04:47
Use PHP in a component - by mvlcek - 2011-08-26, 01:36:11
Use PHP in a component - by PMB - 2011-08-26, 01:45:53
Use PHP in a component - by Connie - 2011-08-26, 01:51:18
Use PHP in a component - by PMB - 2011-08-26, 02:07:01
Use PHP in a component - by Connie - 2011-08-26, 04:20:56
Use PHP in a component - by Ampersand - 2011-11-13, 02:11:10
Use PHP in a component - by mvlcek - 2011-11-13, 02:21:25
Use PHP in a component - by Ampersand - 2011-11-13, 19:25:17



Users browsing this thread: 1 Guest(s)