MagicFire Posted October 28, 2012 Share Posted October 28, 2012 Hi, how can I from template trigger specific function in controller. Lets say I have a search module and after user click on button search I would like to perform some actions (if any is wrong, please get me noted). Handle the form (which I've learned I can do throw Tools::getValue('name_of_variable') ) The form I need to evaluate and do DB search. Where should I put my code if not in the custom function. But how to asure that this exactly function will be trigerred. In custom php file it is easy, because there is no other code then the main code, which is repeatly called everytime I call that file. But here I want to call just the exact one function. Or which files I need to include to use DB and smarty interface and I can do this throw raw PHP code. Please help me, because I've been stuck at this about two weeks. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now