Thanks.  The issue was retrieving a huge dataset and that was screwing
things up (giving the impression that nothing was working, when in reality
it was just hanging).

On Thu, Oct 13, 2011 at 2:48 PM, Chris Cinelli <
[email protected]> wrote:

> Going back to your original email:
> 1) http://pastebin.com/ or https://gist.github.com/
>
> 2)
> And here is my view:
>
> <?php
> $this->layoutPath = 'rest';
> $this->layout = 'default';
>
> The $this->layout is usually specified in the controller.  I have never
> seen it in the view. Also if you put your layouts in app/View/Layouts you
> should not need to use layoutPath.
>
> You did not post the code in your layout but be sure your layout has at
> some point:
> <?php echo $content_for_layout; ?> that will pt the code in the view.
>
> Best,
>    Chris
>
>
>
>
>
>
> On Thu, Oct 13, 2011 at 9:20 AM, Yves S. Garret <
> [email protected]> wrote:
>
>> You mean app/cake/core.php?  It's set to 2 already.
>>
>>
>> On Thu, Oct 13, 2011 at 11:31 AM, Chris Cinelli <
>> [email protected]> wrote:
>>
>>> 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
>>>
>>
>>  --
>> 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