Yeah, that is partially my confusion also. I have a controller there the
file is called ajax_controller.php with:
<?php
class AjaxController extends AppController{
var $name = "Ajax";
var $uses = "Ajax";
var $layout = 'ajax';
function index(){
}
function toggleActive(){
$json = array(
"car" => "mine",
"bike" => "yours"
);
$this->set('json_array',$json);
}
}
?>
This site is my first attempt at cakePhp so not sure how to problem solve it
just yet.
thanks.
--------------------------------------------------------------------
Benjamin Sterling
KenzoMedia.com <http://www.kenzomedia.com>
KenzoHosting.com <http://www.kenzohosting.com>
On 1/22/07, Dr. Tarique Sani <[EMAIL PROTECTED]> wrote:
>
>
> On 1/22/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> wrote:
> > As it stands now, i go to
> > http://www.kenzohosting.com/wesco/www/ajax/toggleactive and I get the
> > layout for the homepage and not what I would expect.
>
> I am getting a missing controller error.... and errors are rendered
> with default layouts
>
> HTH
> Tarique
>
> --
> =============================================================
> PHP Applications for E-Biz: http://sanisoft.com
> Cheesecake-Photoblog: http://cheesecake-photoblog.org
> =============================================================
>
> >
>
--
----------------------------------------------------------------
Benjamin Sterling
KenzoMedia.com
KenzoHosting.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---