Re: Dynamic Elements
As far as I understand I can't use requestAction inside element. I solved it by calling renderElement('catmenu', array('categories'=>$this->requestAction('/categories/getlist'))); ?> from my layout template. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Dynamic Elements
Hi All! Can anyone help me with following question? Let's (for example) I have blog application. And I have some posts categories. I'd like to have an element, that shows on every page my categories list. How can I do this? Elements don't have access to controllers. I don't want to include Categories model in every controller that I have in application. I want to do it from template... Is it possible? Best Regards --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Admin Interface
Hi all! I have a question regarding admin interface creation. I know that if I'll uncomment define('CAKE_ADMIN', 'admin'); in app/config/core.php file than I'll get basic administration interface for my admin_method() function for my controllers on the url like /admin/controller/method/.../ But how can I create interface for /admin/ url itself? Should I make 'admin' controller? Or what? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---