On Mon, Oct 12, 2009 at 3:24 PM, euromark (munich)
wrote:
>
> well the helper IS NOT available in the controller right away
>
> you need to add
>
> App::import(Helper,Text);
> $this->Text = new TextHelper();
>
> now you can work with it... brian probably didnt read your post and
> thought you tal
Yay! Thanks a lot.
On Oct 12, 9:24 pm, "euromark (munich)"
wrote:
> well the helper IS NOT available in the controller right away
>
> you need to add
>
> App::import(Helper,Text);
> $this->Text = new TextHelper();
>
> now you can work with it... brian probably didnt read your post and
> thought
well the helper IS NOT available in the controller right away
you need to add
App::import(Helper,Text);
$this->Text = new TextHelper();
now you can work with it... brian probably didnt read your post and
thought you talked about a component
On 12 Okt., 20:50, Lukar Dennig wrote:
> Thanks. H
Thanks. However if i use $this->Text->autoLinkUrls() i get: "Undefined
property: NewsController::$Text"...
its just as if the helper is completely ignored.
On Oct 12, 7:22 pm, brian wrote:
> Use $this->Text->whatever() while in the controller and
> $text->whatever() in the view.
>
> But note tha
Use $this->Text->whatever() while in the controller and
$text->whatever() in the view.
But note that autoLinkUrls() returns the string. You'll need to modify
the value in $this->data. Either that, or use the method in your view.
On Mon, Oct 12, 2009 at 9:52 AM, Lukar Dennig wrote:
>
> Hi everyo
Hi everyone,
im having a problem with the TextHelper and i totally dont get why...
in a nutshell my controller (based on the Blog Tutorial) looks like
this:
class NewsController extends AppController {
var $name = 'News';
var $helpers = array('Text');
function edit($id