link: yourdomain.com/abouts/about
Controller: Abouts (filename: AboutsController.php), className:
AboutsController
method: about()

View: about (app/View/Abouts/view.ctp)

try with use no models for this controller. inside controller class add
this: public $uses = null;

--
Lep pozdrav, Tilen Majerle
http://majerle.eu



2011/12/16 Timothy O'Reilly <[email protected]>

> Tilen,
> Many thanks for replying.
>
> Yes I have my Config/core.php set to debug level 2.
> I have changed my controller file to AboutsController.php and my link as
> suggested (I also tried it with just "Abouts/about.ctp") and yet still it
> doesn't work.......
>
> Any other ideas??
> Thanks again,
> Tim
>
>
>
>
>
> On Fri, Dec 16, 2011 at 2:47 PM, Tilen Majerle <[email protected]>wrote:
>
>> make sure debug level is 2 in app/Config/core.php
>>
>> than...name for controller file should be AboutsController.php
>>
>> and views should be like this: app/View/ControllerName/methodname.ctp, so
>> in your case:
>> app/View/Abouts/about.ctp
>>
>> check for this :)
>> --
>> Lep pozdrav, Tilen Majerle
>> http://majerle.eu
>>
>>
>>
>> 2011/12/16 Timothy O'Reilly <[email protected]>
>>
>>> Hi,
>>> I am a newb to Cake.  I'm using Ver 2.0.4.  I have set up my database,
>>> default layout and created a view for "home".  All working and looking
>>> pretty.
>>> But (as I am a newb and out of ignorance) I am having difficulty in
>>> creating new views.
>>>
>>> Here is what I have done:
>>>
>>> I have my "View/Layouts/default.ctp" file working and set up;
>>> I have created a view called "about.ctp" in a folder called "about" in
>>> the "/View/Pages" folder;
>>> I have created a Controller file called "abouts_controller.php" (made it
>>> plural) in the "app/Controller" folder; and
>>> I have added the following code to my Controller.
>>>
>>> <?php
>>> class AboutsController extends AppController {
>>>
>>>     function about (){
>>>     }
>>>
>>> }
>>>
>>>
>>> Right now I get a "Not Found The requested URL /abouts/about was not
>>> found on this server." Error - nothing there.
>>>
>>> What am I doing/not doing?  What should my hyperlink address be?  I have
>>> been reading the documentation, but as a newb finding it difficult to
>>> follow.
>>> Many thanks for any help you can give,
>>> Tim
>>>
>>>
>>> --
>>> | cellphone: +18579280348 |
>>> | 123 10th Street | San Francisco | CA 94103 |
>>>
>>>  --
>>> 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