Jump to content

RockForms - Simple, secure and versatile forms based on NetteForms


bernhard
 Share

Recommended Posts

10 minutes ago, Pavel Radvan said:
if($page->template == 'your_template') return;

Hey @Pavel Radvan there is a mistake in my code. It should be != not ==

--> The purpose of this line is to only execute the rest of the callback for the template that you want. That means if the template is NOT your template, then it should exit.

My code was not meant to be copy/paste ready. It's a boilerplate code to show you how it works. You have to make it work yourself or ask for help in the forum. But please not in this thread as we are getting out of scope here and we are not talking about RockForms any more. Please create another thread.

Link to comment
Share on other sites

10 minutes ago, bernhard said:

Hey @Pavel Radvan there is a mistake in my code. It should be != not ==

--> The purpose of this line is to only execute the rest of the callback for the template that you want. That means if the template is NOT your template, then it should exit.

My code was not meant to be copy/paste ready. It's a boilerplate code to show you how it works. You have to make it work yourself or ask for help in the forum. But please not in this thread as we are getting out of scope here and we are not talking about RockForms any more. Please create another thread.

Hi. Thanks..I thought that it is in this condition....
Sorry for posting here.
I will create thread if I will need more help, but now I know more...

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...