10387 Posts in 2198 Topics by 1712 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 990 Views |
-
Which shold be the basic code to extend Userforms?

11 February 2010 at 1:33pm Last edited: 11 February 2010 1:34pm
I need to have different templates for diferent userforms... so the only way that I see is extending the userdefinedform class...
As I see the next code is not enought.
<?php
class UserDefinedFormTienda extends UserDefinedForm {}
class UserDefinedFormTienda_Controller extends Page_Controller {
}
}
?>Any idea please?
-
Re: Which shold be the basic code to extend Userforms?

11 February 2010 at 8:23pm
Hi
It should be
<?php
class UserDefinedFormTienda extends UserDefinedForm {}
class UserDefinedFormTienda_Controller extends UserDefinedForm_Controller {
}
In addition you had a spare closing bracket at the bottom of your code...
After creating the file, don't forget to run dev/build
-
Re: Which shold be the basic code to extend Userforms?

12 February 2010 at 4:35am
What a fool of me!!! I didn't noticed this detail. Thanks a lot
| 990 Views | ||
|
Page:
1
|
Go to Top |


