Writing Helpers within a theme file?

0

Wondering if anyone has a way to write an input helper within the theme file and then just include that file in the display helper. I'd much rather write the code in my editor than in a text box. using include() or require() throws permission errors.

Can this be done?

asked Jul 9 '10 at 7:22

wesbos

56

add comment
enter at least 15 characters

3 Answers

0

please specify "persmission errors", what do you mean exactly? Paste the error code.

answered Jul 9 '10 at 11:16

lenzcom

36

add comment
enter at least 15 characters
0

Here is a screenshot of what I get when using <?php include('absolutepath'); ?>

alt text

answered Jul 9 '10 at 5:10

wesbos

56

add comment
enter at least 15 characters
0

Got help from scott. I needed to use TEMPLATEPATH

<?php include(TEMPLATEPATH.'/pods/pods-crop.php'); ?>

answered Jul 9 '10 at 5:53

wesbos

56

add comment
enter at least 15 characters