ajax with static pages

Anyone can tell me how the second link dont work?

I get 404 server erro =(


<?php

echo CHtml::ajaxLink(

        'site/partialabout',

        array('site/partialabout'),

        array(

            'update' => '#req_res'

        )

);

?>

<?php

echo CHtml::ajaxLink(

        'site/pages',

        array('site/pages', 'view' => 'partialabout'),

        array(

            'update' => '#req_res'

        )

);

?>

They are different in what view file will be used…

The first link calls the method named actionPartialabout() in the SiteController… that method in turn renders the view file that can be named anyway you want it.

The second link looks for the "partialabout.php" file in the protected/views/site/pages folder.

Yes, I know… but what can I do to call a static page =( ?

It should work…

Just now I noticed that you have an error…

its "site/page" not "site/pages"