Hi, i newbie on cakephp.
I want to develop a shell aplication, but when i try to use model no
error shows and application don't execute.

My code
<?php
class AlertsShell extends Shell {

        var $uses = array('Pais');

    function main() {
                $this->out('First line to show');
                $results = $this->Pais->find('all');
                $this->out('End execution');
    }

}
?>

I try to use App:import('Model','Pais'); with the same result.
Model 'Pais' is ok, and works on webpage.

If i delete 'var $uses = array('Pais');' and '$results = $this->Pais-
>find('all');', program execute ok.


I'm mad trying to execute shell program and uses model.
Someone can help me?. Thanks for all and sorry for my bad english.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to