Adam Royle wrote:
>
>
> Right, you'll need to add this line before that as well.
>
> App::import('Core', 'Helper');
>
> On Dec 5, 2:03 pm, RyOnLife <ryan.mckil...@gmail.com> wrote:
>> Thanks Adam, but whether I instantiate or not, I get an error:
>>
>> Fatal error: Class 'Helper' not found in
>> /path/to/app/cake/libs/view/helpers/app_helper.php on line 40
>>
>>
>>
>> Adam Royle wrote:
>>
>> > You're halfway there, that includes the class file. Now you just have
>> > to instantiate it:
>>
>> > $xml = new XmlHelper();
>>
>> > On Dec 5, 1:45 pm, RyOnLife <ryan.mckil...@gmail.com> wrote:
>> >> Hello, I am trying to use the Xml Helper in a shell script that will
>> be
>> >> run
>> >> from the console.
>>
>> >> Per thehttp://book.cakephp.org/view/499/The-App-ClassItried
>> >> App::import('Helper', 'Xml') without any luck.
>>
>> >> Without success I also gave the suggestions
>> >> inhttp://n2.nabble.com/Load-Helper-in-Console-td1556101.html#a1559299a
>> >> try.
>>
>> >> Any other ideas for me? Thanks.
>> >> --
>> >> View this message in
>> >>
>> context:http://n2.nabble.com/How-to-use-Core-Helpers-in-a-console-shell-scrip...
>> >> Sent from the CakePHP mailing list archive at Nabble.com.
>>
>> --
>> View this message in
>> context:http://n2.nabble.com/How-to-use-Core-Helpers-in-a-console-shell-scrip...
>> Sent from the CakePHP mailing list archive at Nabble.com.
> >
>
>
--
View this message in context: http://n2.nabble.com/How-to-use-Core-Helpers-in-a-console-shell-script-tp1616804p1619938.html
Sent from the CakePHP mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
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 cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment