If you put debug to 2 in core.php, cake shold give you descriptive errors
especially when it cannot find a controlller or a view.
On Oct 13, 2011 8:00 AM, "Yves S. Garret" <[email protected]>
wrote:

> One more question that I have, is there a way for me to test whether the
> models, controllers and views are connected as they should be?
>
> On Thu, Oct 13, 2011 at 10:58 AM, Yves S. Garret <
> [email protected]> wrote:
>
>> The name of the view is view_admin_lookup.ctp.
>>
>> On Oct 13, 10:29 am, "Yves S. Garret" <[email protected]>
>> wrote:
>> > Hi all,
>> >
>> >    1 - What's the name of the CakePHP site that I can use to dump my
>> code
>> > and not post it in my e-mail?  Don't remember what it was :-] .
>> >
>> >    2 - So I got an assignment to make a small CakePHP app and this is
>> what I
>> > have now.  At the moment it's supposed to just dump rows to a screen
>> from a
>> > DB.
>> >
>> > <?php
>> > class ProviderController extends AppController {
>> >     var $name = 'Providers';
>> >
>> >     ............
>> >
>> >     function viewAdmitLookup() {
>> >         $this->set('provider', $this->Provider->find('all'));
>> >     }}
>> >
>> > ?>
>> >
>> > And here is my view:
>> >
>> > <?php
>> > $this->layoutPath = 'rest';
>> > $this->layout = 'default';
>> >
>> > /*foreach($provider as $Provider => $value) {
>> >     echo ucfirst(strtolower($Provider['last_name'])).',
>> > '.ucfirst(strtolower($Provider['first_name']));
>> >
>> > }*/
>> >
>> > echo "<pre>asdf";
>> > print_r($provider);
>> > ?>
>> >
>> > When I run this, I get _nothing_, literally nothing.  When I view the
>> source
>> > I get this:
>> >
>> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
>> > <HTML><HEAD>
>> > <META content="text/html; charset=windows-1252"
>> > http-equiv=Content-Type></HEAD>
>> > <BODY></BODY></HTML>
>> >
>> > I don't get it.  When I change the name of the method in the
>> > ProviderController class to just admitLookup, I get an error saying that
>> > there is no viewAdmitLookup method and I need to create one.  What am I
>> > missing?
>>
>> --
>> 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
>> [email protected] For more options, visit this group
>> at http://groups.google.com/group/cake-php
>>
>
>  --
> 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
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to