Wednesday, June 24, 2009

Re: The shell class does not work as I want it to...

Thanks for the replay.

App:import("/var/www/tl/app/vendors/shells/tasks/imdbphp/
imdb.class.php");
That line did not work.
I'm getting: Fatal error: Class 'imdb' not found in /var/www/tl/app/
vendors/shells/new.php

$this->out prints the same as before, nothing :D

The "funny" thing is that some of the functions are set.
$movie->writing() works for example, but not cast.
$movie->mpaa() is set but not $movie->rating(), very very strange.

This class works perfect when using it in a Controller....

On Jun 24, 12:05 pm, Miles J <mileswjohn...@gmail.com> wrote:
> First off you should use App::import() instead of require.
>
> Secondly, you use $this->out('test') to display data.
--~--~---------~--~----~------------~-------~--~----~
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: