Hi

I've got an action that based on on the parameters passed to it either
renders its default view or one of a number of alternate views based
on the values in $this->params['pass'];

This is stripped back version of the action, $this->render('/sections/
view'); seeme to be what is causing the problem, but it is still
rendering the correct view file despite the errors.

function view() {
                $this->Node->recursive = -1;
                $this->pass_count = count($this->params['pass']);
                $this->pass_position = $this->pass_count - 1;

                $data = $this->view_sub();
                $this->data = $data;

                if(!empty($data['Node']['model_placeholder'])){

                        $section = ClassRegistry::init('Section');
                        $section_data = 
$section->view_section($this->params['pass'], $this-
>pass_count, $this->pass_position);

                        if(count($section_data) == 2){
                                $this->data['Section'] = 
$section_data[0]['Section'];
                                $this->set('subsections', $section_data[1]);
                                $this->render('/sections/view');
                        }
                } else {
                        // do nothing this will render the default view
                }
        }

The error I'm getting is:

is_file() [function.is-file]: open_basedir restriction in effect. File
(/sections/view) is not within the allowed path(s): (/var/www/vhosts/
somedomain.com/subdomains/coastal/httpdocs:/tmp) [CORE/cake/libs/view/
view.php, line 792]

Looking on Google about similar sounding errors I've tried to force
the path to views into bootstrap.php setting: $viewPaths = array(APP .
'app' . DS . 'views' . DS );

I'm sure its something obvious and I'm just being thick, any help
greatly appreciated (I'm using 1.2.1.8004)

Cheers
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to