Re: View Helper

2014-09-18 Thread euromark
Sure
they can easily add helpers

$controller->helpers[] = 'MyHelper';

If you get the controller via initialize() or startup().



Am Donnerstag, 18. September 2014 00:54:25 UTC+2 schrieb Marcelo Aymone:
>
> Ok...
>
> there any way to load a helper throug a controller component?
>
> I cant modify the original controller...
>
> Em quarta-feira, 17 de setembro de 2014 18h24min27s UTC-3, Marcelo Aymone 
> escreveu:
>>
>> On extending a Form helper, is a good practice inject input fields 
>> automatic, with "echo" command?
>>
>> and...
>>
>> To automatic create some field types, like datepicker, and for example, 
>> datepicker uses bootstrap css and js.
>>
>> How insert that scripts through a helper?
>>
>> 'echo $this->Script' inside a helper is wrong?
>>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: View Helper

2014-09-17 Thread Marcelo Aymone
Ok...

there any way to load a helper throug a controller component?

I cant modify the original controller...

Em quarta-feira, 17 de setembro de 2014 18h24min27s UTC-3, Marcelo Aymone 
escreveu:
>
> On extending a Form helper, is a good practice inject input fields 
> automatic, with "echo" command?
>
> and...
>
> To automatic create some field types, like datepicker, and for example, 
> datepicker uses bootstrap css and js.
>
> How insert that scripts through a helper?
>
> 'echo $this->Script' inside a helper is wrong?
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: View Helper

2014-09-17 Thread euromark
helpers should usually "return" things.
Then you are flexible, whether you want to output it or use it in a 
different context

mark


Am Mittwoch, 17. September 2014 23:24:27 UTC+2 schrieb Marcelo Aymone:
>
> On extending a Form helper, is a good practice inject input fields 
> automatic, with "echo" command?
>
> and...
>
> To automatic create some field types, like datepicker, and for example, 
> datepicker uses bootstrap css and js.
>
> How insert that scripts through a helper?
>
> 'echo $this->Script' inside a helper is wrong?
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


View Helper

2014-09-17 Thread Marcelo Aymone
On extending a Form helper, is a good practice inject input fields 
automatic, with "echo" command?

and...

To automatic create some field types, like datepicker, and for example, 
datepicker uses bootstrap css and js.

How insert that scripts through a helper?

'echo $this->Script' inside a helper is wrong?

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: Best practice: DB table data needed in a view helper?

2008-08-19 Thread Mark (Germany)

thx
i might actually consider that for getting the information
cached file - and if not possible manually through a query

the helper still needs to be a helper though
but this way there is backup :)

if i would just use the element without caching
this could be quit a lot of more "server load" to handle
as this helper (and therefore the table content) is needed on many
pages.


On 19 Aug., 00:49, francky06l <[EMAIL PROTECTED]> wrote:
> @Mark,
>
> Kalt suggestion is goof for an element. You could also user an helper
> and caching. The helper would check the cached file, if not there or
> expired your helper can do a requestAction and cache the results for
> future calls.
> I use this quite a lot for fetching data for select for example (like
> for a category list, not changing every 10 seconds, and avoiding
> queries), and manually delete the cache when I update the tables..
>
> hth
>
> On Aug 19, 12:38 am, Kalt <[EMAIL PROTECTED]> wrote:
>
> > Take a look at the "requestAction" method.
>
> > And instead of a helper, I think you'd better use an element.
>
> > On 19 août, 00:06, "Mark (Germany)" <[EMAIL PROTECTED]>
> > wrote:
>
> > > I have a helper which needs the "codecats" table data (20-40 rows)
> > > everywhere where it is used.
> > > i sure could ask for it in the controller:
> > > ->list('all')..
> > > and pass it the view
> > > there i can again pass it to the helper
>
> > > but is there
> > > a) a way to automatically pass it from the controller to the helper
> > > b) directly get the information into the helper (without having to
> > > manually query the DB)
>
> > > i have thought about using some caching or file-exporting (xml)
> > > the helper could read out this file again.
> > > but - what kind of backup would there be if the file gets lost somehow
> > > (as it is in temp folder the max lifetime may be over some time)?
> > > or is this a good practive anyway?
>
> > > thats what is bothering me right now
> > > as i do not know how to stick to the MVC pattern
>
> > > especially because this helper is not bound to specific controllers
> > > and may be used quite a lot.
> > > so it would be really a huge load of code if i have to do it as
> > > described above: controller -> view -> helper
>
> > > thx
> > > mark
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Best practice: DB table data needed in a view helper?

2008-08-18 Thread francky06l

@Mark,

Kalt suggestion is goof for an element. You could also user an helper
and caching. The helper would check the cached file, if not there or
expired your helper can do a requestAction and cache the results for
future calls.
I use this quite a lot for fetching data for select for example (like
for a category list, not changing every 10 seconds, and avoiding
queries), and manually delete the cache when I update the tables..

hth

On Aug 19, 12:38 am, Kalt <[EMAIL PROTECTED]> wrote:
> Take a look at the "requestAction" method.
>
> And instead of a helper, I think you'd better use an element.
>
> On 19 août, 00:06, "Mark (Germany)" <[EMAIL PROTECTED]>
> wrote:
>
> > I have a helper which needs the "codecats" table data (20-40 rows)
> > everywhere where it is used.
> > i sure could ask for it in the controller:
> > ->list('all')..
> > and pass it the view
> > there i can again pass it to the helper
>
> > but is there
> > a) a way to automatically pass it from the controller to the helper
> > b) directly get the information into the helper (without having to
> > manually query the DB)
>
> > i have thought about using some caching or file-exporting (xml)
> > the helper could read out this file again.
> > but - what kind of backup would there be if the file gets lost somehow
> > (as it is in temp folder the max lifetime may be over some time)?
> > or is this a good practive anyway?
>
> > thats what is bothering me right now
> > as i do not know how to stick to the MVC pattern
>
> > especially because this helper is not bound to specific controllers
> > and may be used quite a lot.
> > so it would be really a huge load of code if i have to do it as
> > described above: controller -> view -> helper
>
> > thx
> > mark
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Best practice: DB table data needed in a view helper?

2008-08-18 Thread Kalt

Take a look at the "requestAction" method.

And instead of a helper, I think you'd better use an element.

On 19 août, 00:06, "Mark (Germany)" <[EMAIL PROTECTED]>
wrote:
> I have a helper which needs the "codecats" table data (20-40 rows)
> everywhere where it is used.
> i sure could ask for it in the controller:
> ->list('all')..
> and pass it the view
> there i can again pass it to the helper
>
> but is there
> a) a way to automatically pass it from the controller to the helper
> b) directly get the information into the helper (without having to
> manually query the DB)
>
> i have thought about using some caching or file-exporting (xml)
> the helper could read out this file again.
> but - what kind of backup would there be if the file gets lost somehow
> (as it is in temp folder the max lifetime may be over some time)?
> or is this a good practive anyway?
>
> thats what is bothering me right now
> as i do not know how to stick to the MVC pattern
>
> especially because this helper is not bound to specific controllers
> and may be used quite a lot.
> so it would be really a huge load of code if i have to do it as
> described above: controller -> view -> helper
>
> thx
> mark
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Best practice: DB table data needed in a view helper?

2008-08-18 Thread Mark (Germany)

I have a helper which needs the "codecats" table data (20-40 rows)
everywhere where it is used.
i sure could ask for it in the controller:
->list('all')..
and pass it the view
there i can again pass it to the helper

but is there
a) a way to automatically pass it from the controller to the helper
b) directly get the information into the helper (without having to
manually query the DB)

i have thought about using some caching or file-exporting (xml)
the helper could read out this file again.
but - what kind of backup would there be if the file gets lost somehow
(as it is in temp folder the max lifetime may be over some time)?
or is this a good practive anyway?

thats what is bothering me right now
as i do not know how to stick to the MVC pattern

especially because this helper is not bound to specific controllers
and may be used quite a lot.
so it would be really a huge load of code if i have to do it as
described above: controller -> view -> helper

thx
mark
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Error testing my View Helper with SimpleTest -- class not found

2008-01-30 Thread Wayne Fay

That did it. Thanks so much Matias, I figured it was something like
that. I tried 'Helpers' and other stuff but never just plain 'Xslt' in
the second parameter.

Wayne

On 1/29/08, Matias Lespiau <[EMAIL PROTECTED]> wrote:
>
> Sorry I made a mistake, the correct syntax is App::import('Helper', 'Xslt');
>
> That should work.
>
> What's going on here is that Cake hasn't loaded your helper class so you
> can't instanciate it.
>
>
>
> On 1/28/08, Wayne Fay <[EMAIL PROTECTED]> wrote:
> >
> > That doesn't seem to change anything for me, for whatever reason. I
> > don't suppose you have a sample project or something that I could
> > download and try?
> >
> > Wayne
> >
> > On 1/28/08, Matias Lespiau <[EMAIL PROTECTED]> wrote:
> > > Before the XsltHelperTest class call App::import('Helper',
> 'XsltHelper');
> > >
> > > Good luck and happy testing!
> > >
> > > --
> > > Matias Lespiau
> > > http://www.gignus.com/
> > >
> > >
> > > On Jan 28, 2008 4:46 PM, Wayne Fay <[EMAIL PROTECTED]> wrote:
> > > >
> > > > So I've created my own View helper (it just dispatches to the XSL
> > > > module), and now I want to test it with SimpleTest etc.
> > > >
> > > > My class is named XsltHelper and has a function docToDoc:
> > > > class XsltHelper extends AppHelper {
> > > >function docToDoc($xml, $xsl) {
> > > >$xslt = new xsltProcessor();
> > > >$xslt->importStyleSheet($xsl);
> > > >$result = $xslt->transformToDoc($xml);
> > > >$xslt = null;
> > > >return $result;
> > > >}
> > > > }
> > > >
> > > > Everything works fine in my views, I've tested it there already.
> > > >
> > > > Now I want to get this helper under test, so I've created a
> > > > xslt.test.php under tests/cases/helpers and it looks like:
> > > >
> > > > class XsltHelperTest extends UnitTestCase {
> > > >var $in = 'Hello XSL';
> > > >var $xsl = '  > > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> > > > version="1.0"> > > > select="."/>';
> > > >var $out = 'Hello
> > > XSL';
> > > >//var $helpers = array('Xslt');
> > > >
> > > >function setUp() {
> > > >$this->Xslt =& new XsltHelper();
> > > >}
> > > >
> > > >function testDocToDoc() {
> > > >$res = $this->Xslt->docToDoc($in, $xsl1);
> > > >$this->assertEqual($out1, $res);
> > > >}
> > > >
> > > >function tearDown() {
> > > >unset($this->Xslt);
> > > >}
> > > > }
> > > >
> > > > But I'm getting this error:
> > > > Individual test case: helpers\xslt.test.php
> > > >
> > > > Fatal error: Class 'XsltHelper' not found in
> > > >
> > >
> C:\dev\cake\cake_1.2.0.6311-beta\app\tests\cases\helpers\xslt.test.php
> > > > on line 24
> > > >
> > > > Anyone know what I'm doing wrong? I can find very little documentation
> > > > online regarding testing your own Helpers. I tried adding the var
> > > > $helpers line but it didn't do anything for me, so I commented it out.
> > > >
> > > > Thanks!
> > > > Wayne
> > > >
> > > >
> > >
> > >
> > >
> > > >
> > >
> >
> >
>
>
>
> --
> Matias Lespiau
> http://www.gignus.com/
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Error testing my View Helper with SimpleTest -- class not found

2008-01-29 Thread Matias Lespiau
Sorry I made a mistake, the correct syntax is App::import('Helper', 'Xslt');


That should work.

What's going on here is that Cake hasn't loaded your helper class so you
can't instanciate it.



On 1/28/08, Wayne Fay <[EMAIL PROTECTED]> wrote:
>
>
> That doesn't seem to change anything for me, for whatever reason. I
> don't suppose you have a sample project or something that I could
> download and try?
>
> Wayne
>
> On 1/28/08, Matias Lespiau <[EMAIL PROTECTED]> wrote:
> > Before the XsltHelperTest class call App::import('Helper',
> 'XsltHelper');
> >
> > Good luck and happy testing!
> >
> > --
> > Matias Lespiau
> > http://www.gignus.com/
> >
> >
> > On Jan 28, 2008 4:46 PM, Wayne Fay <[EMAIL PROTECTED]> wrote:
> > >
> > > So I've created my own View helper (it just dispatches to the XSL
> > > module), and now I want to test it with SimpleTest etc.
> > >
> > > My class is named XsltHelper and has a function docToDoc:
> > > class XsltHelper extends AppHelper {
> > >function docToDoc($xml, $xsl) {
> > >$xslt = new xsltProcessor();
> > >$xslt->importStyleSheet($xsl);
> > >$result = $xslt->transformToDoc($xml);
> > >$xslt = null;
> > >return $result;
> > >}
> > > }
> > >
> > > Everything works fine in my views, I've tested it there already.
> > >
> > > Now I want to get this helper under test, so I've created a
> > > xslt.test.php under tests/cases/helpers and it looks like:
> > >
> > > class XsltHelperTest extends UnitTestCase {
> > >var $in = 'Hello XSL';
> > >var $xsl = '  > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> > > version="1.0"> > > select="."/>';
> > >var $out = 'Hello
> > XSL';
> > >//var $helpers = array('Xslt');
> > >
> > >function setUp() {
> > >$this->Xslt =& new XsltHelper();
> > >}
> > >
> > >function testDocToDoc() {
> > >$res = $this->Xslt->docToDoc($in, $xsl1);
> > >$this->assertEqual($out1, $res);
> > >}
> > >
> > >function tearDown() {
> > >unset($this->Xslt);
> > >}
> > > }
> > >
> > > But I'm getting this error:
> > > Individual test case: helpers\xslt.test.php
> > >
> > > Fatal error: Class 'XsltHelper' not found in
> > >
> > C:\dev\cake\cake_1.2.0.6311-beta\app\tests\cases\helpers\xslt.test.php
> > > on line 24
> > >
> > > Anyone know what I'm doing wrong? I can find very little documentation
> > > online regarding testing your own Helpers. I tried adding the var
> > > $helpers line but it didn't do anything for me, so I commented it out.
> > >
> > > Thanks!
> > > Wayne
> > >
> > >
> >
> >
> >
> > >
> >
>
> >
>


-- 
Matias Lespiau
http://www.gignus.com/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Error testing my View Helper with SimpleTest -- class not found

2008-01-28 Thread Wayne Fay

That doesn't seem to change anything for me, for whatever reason. I
don't suppose you have a sample project or something that I could
download and try?

Wayne

On 1/28/08, Matias Lespiau <[EMAIL PROTECTED]> wrote:
> Before the XsltHelperTest class call App::import('Helper', 'XsltHelper');
>
> Good luck and happy testing!
>
> --
> Matias Lespiau
> http://www.gignus.com/
>
>
> On Jan 28, 2008 4:46 PM, Wayne Fay <[EMAIL PROTECTED]> wrote:
> >
> > So I've created my own View helper (it just dispatches to the XSL
> > module), and now I want to test it with SimpleTest etc.
> >
> > My class is named XsltHelper and has a function docToDoc:
> > class XsltHelper extends AppHelper {
> >function docToDoc($xml, $xsl) {
> >$xslt = new xsltProcessor();
> >$xslt->importStyleSheet($xsl);
> >$result = $xslt->transformToDoc($xml);
> >$xslt = null;
> >return $result;
> >}
> > }
> >
> > Everything works fine in my views, I've tested it there already.
> >
> > Now I want to get this helper under test, so I've created a
> > xslt.test.php under tests/cases/helpers and it looks like:
> >
> > class XsltHelperTest extends UnitTestCase {
> >var $in = 'Hello XSL';
> >var $xsl = '  > xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> > version="1.0"> > select="."/>';
> >var $out = 'Hello
> XSL';
> >//var $helpers = array('Xslt');
> >
> >function setUp() {
> >$this->Xslt =& new XsltHelper();
> >}
> >
> >function testDocToDoc() {
> >$res = $this->Xslt->docToDoc($in, $xsl1);
> >$this->assertEqual($out1, $res);
> >}
> >
> >function tearDown() {
> >unset($this->Xslt);
> >}
> > }
> >
> > But I'm getting this error:
> > Individual test case: helpers\xslt.test.php
> >
> > Fatal error: Class 'XsltHelper' not found in
> >
> C:\dev\cake\cake_1.2.0.6311-beta\app\tests\cases\helpers\xslt.test.php
> > on line 24
> >
> > Anyone know what I'm doing wrong? I can find very little documentation
> > online regarding testing your own Helpers. I tried adding the var
> > $helpers line but it didn't do anything for me, so I commented it out.
> >
> > Thanks!
> > Wayne
> >
> >
>
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Error testing my View Helper with SimpleTest -- class not found

2008-01-28 Thread Matias Lespiau
Before the XsltHelperTest class call App::import('Helper', 'XsltHelper');

Good luck and happy testing!

-- 
Matias Lespiau
http://www.gignus.com/

On Jan 28, 2008 4:46 PM, Wayne Fay <[EMAIL PROTECTED]> wrote:

>
> So I've created my own View helper (it just dispatches to the XSL
> module), and now I want to test it with SimpleTest etc.
>
> My class is named XsltHelper and has a function docToDoc:
> class XsltHelper extends AppHelper {
>function docToDoc($xml, $xsl) {
>$xslt = new xsltProcessor();
>$xslt->importStyleSheet($xsl);
>$result = $xslt->transformToDoc($xml);
>$xslt = null;
>return $result;
>}
> }
>
> Everything works fine in my views, I've tested it there already.
>
> Now I want to get this helper under test, so I've created a
> xslt.test.php under tests/cases/helpers and it looks like:
>
> class XsltHelperTest extends UnitTestCase {
>var $in = 'Hello XSL';
>var $xsl = '  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> version="1.0"> select="."/>';
>var $out = 'Hello
> XSL';
>//var $helpers = array('Xslt');
>
>function setUp() {
>$this->Xslt =& new XsltHelper();
>}
>
>function testDocToDoc() {
>$res = $this->Xslt->docToDoc($in, $xsl1);
>$this->assertEqual($out1, $res);
>}
>
>function tearDown() {
>unset($this->Xslt);
>}
> }
>
> But I'm getting this error:
> Individual test case: helpers\xslt.test.php
>
> Fatal error: Class 'XsltHelper' not found in
> C:\dev\cake\cake_1.2.0.6311-beta\app\tests\cases\helpers\xslt.test.php
> on line 24
>
> Anyone know what I'm doing wrong? I can find very little documentation
> online regarding testing your own Helpers. I tried adding the var
> $helpers line but it didn't do anything for me, so I commented it out.
>
> Thanks!
> Wayne
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Error testing my View Helper with SimpleTest -- class not found

2008-01-28 Thread Wayne Fay

So I've created my own View helper (it just dispatches to the XSL
module), and now I want to test it with SimpleTest etc.

My class is named XsltHelper and has a function docToDoc:
class XsltHelper extends AppHelper {
function docToDoc($xml, $xsl) {
$xslt = new xsltProcessor();
$xslt->importStyleSheet($xsl);
$result = $xslt->transformToDoc($xml);
$xslt = null;
return $result;
}
}

Everything works fine in my views, I've tested it there already.

Now I want to get this helper under test, so I've created a
xslt.test.php under tests/cases/helpers and it looks like:

class XsltHelperTest extends UnitTestCase {
var $in = 'Hello XSL';
var $xsl = ' http://www.w3.org/1999/XSL/Transform";
version="1.0">';
var $out = 'Hello XSL';
//var $helpers = array('Xslt');

function setUp() {
$this->Xslt =& new XsltHelper();
}

function testDocToDoc() {
$res = $this->Xslt->docToDoc($in, $xsl1);
$this->assertEqual($out1, $res);
}

function tearDown() {
unset($this->Xslt);
}
}

But I'm getting this error:
Individual test case: helpers\xslt.test.php

Fatal error: Class 'XsltHelper' not found in
C:\dev\cake\cake_1.2.0.6311-beta\app\tests\cases\helpers\xslt.test.php
on line 24

Anyone know what I'm doing wrong? I can find very little documentation
online regarding testing your own Helpers. I tried adding the var
$helpers line but it didn't do anything for me, so I commented it out.

Thanks!
Wayne

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---