Ajax Link Generation
Hi, I have a small Ajax question that I'm hoping someone can help me with. I'm trying to integrate the YUI (Yahoo UI) Treeview into an application and I want to execute an Ajax update of a Div on the click of a node in the tree. I need to attach the Ajax Update link to the Treeview Node and to do that I need the HREF and CData portions of the Ajax link seperately. A call to $Ajax->link() results in a string with both the fully formed HTML Link AND the CData portion (wrapped in Javascript tags).. I would like to be able to retrieve these two items seperately so that I can attach the link to the Node and include the CData portion in the HTML document. I understand the YUI portions etc just fine, I'm just struggling with the mechanics of generating the seperate portions of the AJAX link.. I hope my question makes sense? With thanks, Duncan. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Site Construction.. Integrating Views + Footer/Header/Menus etc?
OK I've discovered Layouts.. I think this is the missing link I've been looking for. Duncan. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Site Construction.. Integrating Views + Footer/Header/Menus etc?
Hi there.. I'm a Novice Baker AND a real PHP Newbie and only have a fairly sparse knowledge of HTML.. I'm using Cake 1.2/PHP5/Apache. I have worked out how everything roughly fits and plays together.. I understand the MVC concept and have a basic application now working.. its just using the Vanilla CakePHP look at the moment. I want to start making it a little prettier, some menus, footer, logout button etc.. and I'm a little unsure of how to go about adding all of the site content around the basic content rendered by a specific view. I could certainly code it all into every view but I'm guessing that wouldn't be very smart.. What is the "most correct" way of having your views render their basic bit of information (a form, a grid etc) and having that content contained with a larger HTML page that contains all of the other content that makes up a site? Hope my question makes sense.. Any thoughts really appreciated. With thanks, Duncan. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Primary Keys
You could set up a "shadow" field in the table to store the human readable form of the primary key, maintained on a trigger. Your users get their pretty field values and don't need to join and cakePHP still happily works with its expected "id" integer field..? Dunc. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Controller, Add Method.. setting default values..
Thanks.. I had a typo.. its working now :) I see that the view would be a better place for the logic. Thanks for that hint. Duncan. On Feb 15, 1:29 pm, Adam Royle <[EMAIL PROTECTED]> wrote: > This works for me in latest 1.2. > > However, maybe this logic should be in your view?? > > echo $form->input('anotherfield', array('default' => 'A default > value')); > > Cheers, > Adam > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Controller, Add Method.. setting default values..
Hi there, I guess I'm just not understanding fundamental... I have a simple controller with Baked methods for adding, editing etc.. I'm trying to modify the behaviour, when the add() method is invoked I want to populate a few default values for a couple of the fields.. My code currently looks like this: function add($resSomeIntegerValue) { if (empty($this->data)) { $this->data['Expense']['SomeField'] = $resSomeIntegerValue; $this->data['Expense']['AnotherField'] = 'A Default Value'; $this->render(); As you can see I've added two lines to set up 2 fields with the values I want as a default when calling this method. The view, when it renders, doesn't have these default values displayed.. Any help much appreciated. With thanks, Duncan. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Sample Blog Application - Permissions problem?
Hi.. I dug around a bit more.. fixed a permissions problem on the cache dir.. All fixed. Duncan. On Feb 13, 1:31 pm, duncan_m <[EMAIL PROTECTED]> wrote: > Hi there, > > I'm working through the sample blog tutorial that's provided at: > > http://manual.cakephp.org/appendix/blog_tutorial > > Everything pretty much works as it should.. I can delete, edit, add.. > But at the top of each page presented to my browser I see two > instances of this: > > Warning: file_put_contents(/home/duncan/workspace/app/tmp/cache/models/ > default_cakeblog_list) [function.file-put-contents]: failed to open > stream: Permission denied in /home/duncan/workspace/cake/basics.php on > line 936 > > No surprises.. I'm very new to PHP, CakePHP and Linux.. > > Any thoughts really appreciated. > > WIth thanks, > > Duncan. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Sample Blog Application - Permissions problem?
Hi there, I'm working through the sample blog tutorial that's provided at: http://manual.cakephp.org/appendix/blog_tutorial Everything pretty much works as it should.. I can delete, edit, add.. But at the top of each page presented to my browser I see two instances of this: Warning: file_put_contents(/home/duncan/workspace/app/tmp/cache/models/ default_cakeblog_list) [function.file-put-contents]: failed to open stream: Permission denied in /home/duncan/workspace/cake/basics.php on line 936 No surprises.. I'm very new to PHP, CakePHP and Linux.. Any thoughts really appreciated. WIth thanks, Duncan. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---