php - joomla JViewHTML constructor and "Layout Path Not Found" -
please read last line of question.
jviewhtml constructor contains following statement
$this->paths = isset($paths) ? $paths : $this->loadpaths();
i setting default path of myview using $path variable , passing constructor.
$paths = new splpriorityqueue; $paths->insert(jpath_component . '/views/' . $viewname . '/tmpl', 'normal');
in net beans debugger when execute following statement of constructor $this->paths not showing value of $paths variable. although data type of both splpriorityque
$this->paths = isset($paths) ? $paths : $this->loadpaths();
first statement of render render()
$path = $this->getpath($this->getlayout());
$path returend false value.
my main page shows error "layout path not found". solutions problem
update: last line paths splpriorityque $abc=$paths; $this->paths=clone $paths
after these 2 statement $abc showing correct value $this->paths has missing or loastdata.in netbeans debugger
first decided delete question because of stupid mistake. later decided remain is.
there setting problem or bug in netbeans, thats why unable expand $this object member "splpriorityqueue".
$this->paths = isset($paths) ? $paths : $this->loadpaths();
above statement correct.
and error "layout path not found" beacause named tmpl folder templ. causing realpath() function in
jpath::find()
to not work properly.
Comments
Post a Comment