Re: View subdirectories names ... problem
Ahhh... the mistake was mine sorry to bother... my var $Name should've been in plural : ProductCats...feel stuppid. But no debug info shows that i guess.. or not... i got to read some info on the debugging process.. Anyway Thanks very much for the support guys. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: View subdirectories names ... problem
Hi purepear, I would guess that you have some (unchecked) logic in your default layout file. I would either: put pr (get_defined_vars()); at the top of your layout file rename your layout file, add some if (isset($javascripts)) {} type logic to your layout so that it will still succeed for a missing X error message. HTH, AD7six --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: View subdirectories names ... problem
Thanks for the response, Spark. But i dont think that's the problem... i've included the Html helper in my controller. I woke up and i'm gonna see what's happening with that view...if i secceed i'll let you know.. till then .. hope to help me with some ideas :) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: View subdirectories names ... problem
the problem seems to be you are using some helpers , and you didn't include the HTML helper, which contains the function $html->link() just add the html helper to your controller. tell us if it works :) spark! On 8/21/06, purepear <[EMAIL PROTECTED]> wrote: > > Hi, > my problem: > > I have a controller called - ProductCatsController with an action > - admin_index > I have a /views/productcats/admin_index.thtml file > > But the this url /admin/product_cats/ says "Missing View" in the > title.. and some > "Notice: Undefined variable: javascript in " > "Fatal error: Call to a member function link() on a non-object in > .." > > I'm sure that the action is executed... the SQL queries in it too > but i dont know why cakePHP can't find my view... > I tried to rename /views/productcats/to /views/product_cats/ > but still the same. > I have other controllers that work with the admin path ... so i dont > think this is the problem. > I think it's because of the controller name btw my model name is > ProductCat and set the var $Name in the controller.. > > anybody.. ? :) > > > > > -- [web] http://synapsisdi.com.br [livesets] http://djspark.com.br --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: View subdirectories names ... problem
Is there a way to see what is the View file (and its path) that cakePHP is trying to render in this action ? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
View subdirectories names ... problem
Hi, my problem: I have a controller called - ProductCatsController with an action - admin_index I have a /views/productcats/admin_index.thtml file But the this url /admin/product_cats/ says "Missing View" in the title.. and some "Notice: Undefined variable: javascript in " "Fatal error: Call to a member function link() on a non-object in .." I'm sure that the action is executed... the SQL queries in it too but i dont know why cakePHP can't find my view... I tried to rename /views/productcats/to /views/product_cats/ but still the same. I have other controllers that work with the admin path ... so i dont think this is the problem. I think it's because of the controller name btw my model name is ProductCat and set the var $Name in the controller.. anybody.. ? :) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---