Meaning I cannot at all make my own view class and I should instead use the allready instantiated view object __viewClass? Or should I make a new instance of view just for the purpose of rendering layout.
And therefore I cannot bypass hacking of the core? On 12 sep., 16:19, nate <[EMAIL PROTECTED]> wrote: > You're doing it wrong. Cake handles the loading and instantiating of > view classes internally. > > On Sep 12, 9:54 am, DanielSun <[EMAIL PROTECTED]> wrote: > > > GWOO: > > I have played a little with this and for some reason doesn't work. > > > --------------------- > > my_controller { > > var $view = 'norender'; > > > function foo(){ > > $myViewObject= new norenderView($this); > > } > > > } > > > --------------------- > > > class norenderView extends View { > > function renderNOT(){}} > > > --------------------- > > > Fatal error: Class 'norenderView' not found > > > but it's not a naming problem, since if I comment out the object > > instantiation, it does all well. the custom class gets included well, > > but it cannot be instatntiated.... > > > thnkyu > > > On 11 sep., 20:28, Gwoo <[EMAIL PROTECTED]> wrote: > > > > /app/views/my_custom_view.php > > > > $this->view = 'MyCustomView'; > > > > M yCustomView extends View --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---