Re: Group Chat in cake
Did you try to google? http://bakery.cakephp.org/articles/mattc/2007/02/03/ajax-chat-plugin http://bakery.cakephp.org/articles/mattc/2008/10/26/ajax-chat-plugin-using-jquery http://www.comm100.com/livechat/ -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Recent CakePHP US 3 City Tour
About a month ago José Lorenzo, Graham Weldon and I did a 3 city tour across the US. On March 14th we started the tour at the NY CakePHP user group, and from there we left on March 15th to Chicago and met with the Chicago PHP user group on the 16th. The 17th of March we flew to LA, our final stop, to meet with the LA PHP user group on the 18th. The LA meet up was the largest group we met with on this tour, 90 attendees and and the event was streamed live to 942 viewers across the globe on the CakePHP Live site. I just uploaded the recordings from the event tonight and you can view them on the CakePHP TV site. http://bit.ly/gmG3MQ Hope you enjoy them, -- Larry E. Masters -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Relaunched CakePHP Live Site
Some of you may not be aware that we relaunched the CakePHP Live site recently. We had 1 live broadcast just before leaving on our tour and plan to do these more often. There will be a list on http://live.cakephp.org soon with upcoming dates and topics. I would also like everyone to respond to this thread with topics they would like to see us discuss on these live video streams. -- Larry E. Masters -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Add Wordpress posts and pages from CakePHP
Enable XML-RPC and then do something like function wpPostXMLRPC($title,$body,$rpcurl,$username,$password,$category,$keywords='',$encoding='UTF-8') { $title = htmlentities($title,ENT_NOQUOTES,$encoding); $keywords = htmlentities($keywords,ENT_NOQUOTES,$encoding); $content = array( 'title'=$title, 'description'=$body, 'mt_allow_comments'=0, // 1 to allow comments 'mt_allow_pings'=0, // 1 to allow trackbacks 'post_type'='post', 'mt_keywords'=$keywords, 'categories'=array($category) ); $params = array(0,$username,$password,$content,true); $request = xmlrpc_encode_request('metaWeblog.newPost',$params); $ch = curl_init(); curl_setopt($ch, CURLOPT_POSTFIELDS, $request); curl_setopt($ch, CURLOPT_URL, $rpcurl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 1); $results = curl_exec($ch); curl_close($ch); return $results; } The above uses cURL you can try using the builtin http class HTH Tarique On Wed, Apr 6, 2011 at 10:44 PM, alberto alberto.pri...@gmail.com wrote: Hi! I would like to have the possibility to add posts and pages to Wordpress from CakePHP. How can I do that? Thanks in advance! Alberto -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- = PHP for E-Biz: http://sanisoft.com = -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: convert to javascript to cake
i want to display image when mouuseover. on other image On Thu, Apr 7, 2011 at 10:54 AM, andy_the ultimate baker anandghaywankar...@gmail.com wrote: what exaxtly u wants to do? javascript is good for that. On Apr 7, 10:17 am, Master Ram ramganga...@gmail.com wrote: Hi to all a href=javascript:void(); class=applybutton onmouseout=MM_swapImgRestore() onmouseover=MM_swapImage('Apply','','images/adminControls/ button_apply_hover.jpg',1) /a how to write this thing in CakePHP -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Master Ram. Founder n Director of rgPlanets Pvt. Ltd. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: convert to javascript to cake
You need to check thisproperly. onmouseover=MM_swapImage(' Apply','','images/adminControls/ button_apply_hover.jpg',1) On 7 April 2011 12:34, Master Ram...! ramganga...@gmail.com wrote: i want to display image when mouuseover. on other image On Thu, Apr 7, 2011 at 10:54 AM, andy_the ultimate baker anandghaywankar...@gmail.com wrote: what exaxtly u wants to do? javascript is good for that. On Apr 7, 10:17 am, Master Ram ramganga...@gmail.com wrote: Hi to all a href=javascript:void(); class=applybutton onmouseout=MM_swapImgRestore() onmouseover=MM_swapImage('Apply','','images/adminControls/ button_apply_hover.jpg',1) /a how to write this thing in CakePHP -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Master Ram. Founder n Director of rgPlanets Pvt. Ltd. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: hasAndBelongsToMany gives server error in CakePHP 1.3
yes thanks alot, debug was one problem why i didnt know why its not working. But interestingly i didnt do anything else and it seems to work now I have another problem now. In the list it shows the id numbers unless i have a field called name, can we make it show someother field? On Apr 6, 1:51 am, cricket zijn.digi...@gmail.com wrote: On Tue, Apr 5, 2011 at 3:08 PM,PankajAgrawal pankaj.visi...@gmail.com wrote: Error Message: An Internal Error Has Occurred Error: An Internal Error Has Occurred. Is this message from your code somewhere? Which web server are you using? Apache? IIS? No logs in errors and debug logs What about the server's log? This is the code: That looks fine, I guess. But what was the data? And what does the code look like where it is attempted to save? Also, do you have debug set to 2? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: What's the deep difference between App::import and ClassRegistry::init?
and what your problem concerns... both should behave EXACTLY the same in your case what you tell us is not what I ever experienced before did you pr() both models? my guess: the model relation setup is not correct - maybe ClassRegistry gets you an AppModel instance? On 7 Apr., 06:30, Miles J mileswjohn...@gmail.com wrote: App::import() is basically a glorified file includer. ClassRegistry::init() is a registry class and only works with models. It internally calls App::import(). On Apr 6, 5:08 pm, adam_g2000 a...@designcollective.co.nz wrote: Hi Guys, Before continuing, I have a basic understanding of what they do (and their syntax), but have hit upon something I find strange, and worrying. I needed to import a foreign model into a controller and initially tried this: App::import('Model','Category'); $cat = new Category(); $cats = $cat-find('all', array('conditions' = array('Category.status' = '1'))); $this-set('categories', $cats); What I discovered when I tried to access the data in a view (and debugging) was that $categories['Category']['title'] did not work, it failed. Debugging showed me that in fact it was being returned in lowercase, so I'd have to use $categories['category']['title'] (note lowercase c). This wasn't acceptable as I wanted to reuse an *element* I'd created for the original Category controller set and views. So after some searching I discovered and tried this: $cat = ClassRegistry::init('Category'); $cats = $cat-find('all', array('conditions' = array('Category.status' = '1'))); $this-set('categories', $cats); ...which worked perfectly, however I'm using Cake 1.3 and the entry for this indicates (though I'm not 100% sure on this) that App::import is preferred, and that ClassRegistry may be deprecated. So have I screwed up App::import? Can I get a sanity check on the code? Should I be concerned about using ClassRegistry::init? Thanks in advance for any pointers, Adam. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Problem with importing a controller
Hey Guys, I am trying to import a controller into my another controller. Say i am importing controller1 into my controller2 like ds: App::import('Controller', 'Users'); after that when i am trying to instantiate it i am getting an error: Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION i am trying to instantiate it like ds: $Users = new UsersController(); Can i know wat i am doing wrong?? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Problem with importing a controller
Are you doing this inside a function? Can we see some code? Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 7 Apr 2011, at 11:29, Shashank wrote: Hey Guys, I am trying to import a controller into my another controller. Say i am importing controller1 into my controller2 like ds: App::import('Controller', 'Users'); after that when i am trying to instantiate it i am getting an error: Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION i am trying to instantiate it like ds: $Users = new UsersController(); Can i know wat i am doing wrong?? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Memory Leak in Model::Save()
On 4/4/2011 6:38 PM, ProFire wrote: I was very careful not to have any memory leak. You don't control memory in PHP, you can't have memory leaks. http://goo.gl/nm6OZ -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Cake core might benefit from some more developers helping out
I dont think cake development is based on the free time of one single person, for what i can see on github. But yes cake and every other framework might improve a lot with more developers joining the core team. I really wish i will fully understand how the framework work so i can begin to help as well. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Cake core might benefit from some more developers helping out
I'm the same. I don't really feel experienced/qualified enough to go meddling with the framework, but want to help if I can. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 7 Apr 2011, at 12:21, huoxito wrote: I dont think cake development is based on the free time of one single person, for what i can see on github. But yes cake and every other framework might improve a lot with more developers joining the core team. I really wish i will fully understand how the framework work so i can begin to help as well. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Redirection not accepting named parameters
Hey all, I have a redirect set up that uses this array: Array ( [country] = za [action] = listing [0] = south-africa ) That works and it correctly redirects to /za/properties/listing/south- africa As soon as I try to add a named parameter to the mix, the redirect ignores every extra parameter. Array ( [country] = za [action] = listing [0] = south-africa [sale] = 1 ) Redirects to /za/properties/listing without ANY parameters. Anyone know what's going on here? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Model class not found
lass Tag extends AppModel { $name = 'Tag'; } Fatal error: Class 'Tag' not found in /home/downtown/public_html/test_cake/cake/libs/ class_registry.php on line 140 in ..\app\models\tag.php I have class Tag extends AppModel { $name = 'Tag'; } What silly blunder am I making? I have tried clearing tmp/cache and I have reloaded cakePHP from scratch. I have seen this error in Google searches but it was a relatively obvious syntax error. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
State of teh art way to SEo urls
Hello, I am looking for a way to have SEO urls. At the moment my urls look like this: http://www.zigarrenlounge.eu/addresses/view/99 I would like to have something like this http://www.zigarrenlounge.eu/addresses/view/restaurnt-elisenbrunnen so instead of the id I would have the display name (maybe id enhanced to have something unique). I searched the web and found several solutions between 2006 and 2009. What is the state of the art method to achieve this in the year of 2011 using Cake 1.3? Any suggestions anybody? Thanks in advance for any help Anja -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Paginate an array?
Hi, I need to push this up, I still get in trouble with it. I select all my members with a find call: $getMembers = $this-Member-find('all', $findoptions); Then I loop through and make some checks and calculating stuff. At a certain point I am even deleting rows out of the array and do some sorting and re-arrangment stuff. After all, I want to give the $getMembers array to the view and I want to paginate it. All my data is finally stored in $getMembers. What can I do to pagine through the $getMembers Array? Thanks!! On 1 Apr., 18:33, Krissy Masters naked.cake.ba...@gmail.com wrote: Something like: $this-paginate = $this-Model-__customPaging( $my_conditions);//function just like any other find to return an array of data $this-set( 'query', $this-paginate( 'Model' ) ); -Original Message- From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Ofheohni Sent: Friday, April 01, 2011 10:50 AM To: CakePHP Subject: Paginate an array? Hi, I have a find() function to get some data. The user has the chance to modfiy the data and all changes I keep in an array. Can I also give that array to the paginate function? As I want to paginate through the users custom made data and not the original DB result? Any ideas on that? Thanks and I wish everbody a nice and relaxing weekend! -- Our newest site for the community: CakePHP Video Tutorialshttp://tv.cakephp.org Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: State of teh art way to SEo urls
On Apr 7, 4:37 pm, acl68 c...@anjaliebermann.de wrote: Hello, I am looking for a way to have SEO urls. At the moment my urls look like this:http://www.zigarrenlounge.eu/addresses/view/99 I would like to have something like thishttp://www.zigarrenlounge.eu/addresses/view/restaurnt-elisenbrunnen so instead of the id I would have the display name (maybe id enhanced to have something unique). I searched the web and found several solutions between 2006 and 2009. What is the state of the art method to achieve this in the year of 2011 using Cake 1.3? the same methods people have used since cake was created: routes (and a slug behavior). AD -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Cake core might benefit from some more developers helping out
@keymaster - What exactly are you expecting Cake to become? Cake pretty much already has a stable framework and feature list. I don't see them putting in any new features in the future. Most, if not all of their time is spent on bug fixing, patching and preparing for Cake 2.0. On Apr 7, 4:23 am, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: I'm the same. I don't really feel experienced/qualified enough to go meddling with the framework, but want to help if I can. Jeremy Burns Class Outfit jeremybu...@classoutfit.comhttp://www.classoutfit.com On 7 Apr 2011, at 12:21, huoxito wrote: I dont think cake development is based on the free time of one single person, for what i can see on github. But yes cake and every other framework might improve a lot with more developers joining the core team. I really wish i will fully understand how the framework work so i can begin to help as well. -- Our newest site for the community: CakePHP Video Tutorialshttp://tv.cakephp.org Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Memory Leak in Model::Save()
@Alex - Yes you can have memory leaks in PHP. http://www.google.com/search?q=memory+leaks+in+phpie=utf-8oe=utf-8aq=trls=org.mozilla:en-US:officialclient=firefox-a On Apr 7, 3:59 am, Alex Ciobanu ics.cake...@gmail.com wrote: On 4/4/2011 6:38 PM, ProFire wrote: I was very careful not to have any memory leak. You don't control memory in PHP, you can't have memory leaks.http://goo.gl/nm6OZ -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
RE: Paginate an array?
What does $getMembers aryay have? I have done it before where I just pass the array of id's only Do your find get what you need then $data = $this-paginate( 'Member', array( 'Member.id' = $getMembers) ); $this-set( 'Members', $data ); Try that K -Original Message- From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of heohni Sent: Thursday, April 07, 2011 12:15 PM To: CakePHP Subject: Re: Paginate an array? Hi, I need to push this up, I still get in trouble with it. I select all my members with a find call: $getMembers = $this-Member-find('all', $findoptions); Then I loop through and make some checks and calculating stuff. At a certain point I am even deleting rows out of the array and do some sorting and re-arrangment stuff. After all, I want to give the $getMembers array to the view and I want to paginate it. All my data is finally stored in $getMembers. What can I do to pagine through the $getMembers Array? Thanks!! On 1 Apr., 18:33, Krissy Masters naked.cake.ba...@gmail.com wrote: Something like: $this-paginate = $this-Model-__customPaging( $my_conditions);//function just like any other find to return an array of data $this-set( 'query', $this-paginate( 'Model' ) ); -Original Message- From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Ofheohni Sent: Friday, April 01, 2011 10:50 AM To: CakePHP Subject: Paginate an array? Hi, I have a find() function to get some data. The user has the chance to modfiy the data and all changes I keep in an array. Can I also give that array to the paginate function? As I want to paginate through the users custom made data and not the original DB result? Any ideas on that? Thanks and I wish everbody a nice and relaxing weekend! -- Our newest site for the community: CakePHP Video Tutorialshttp://tv.cakephp.org Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Problem with importing a controller
What is your reasoning for importing another controller? You should never need to do this. On Apr 7, 3:30 am, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: Are you doing this inside a function? Can we see some code? Jeremy Burns Class Outfit jeremybu...@classoutfit.comhttp://www.classoutfit.com On 7 Apr 2011, at 11:29, Shashank wrote: Hey Guys, I am trying to import a controller into my another controller. Say i am importing controller1 into my controller2 like ds: App::import('Controller', 'Users'); after that when i am trying to instantiate it i am getting an error: Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION i am trying to instantiate it like ds: $Users = new UsersController(); Can i know wat i am doing wrong?? -- Our newest site for the community: CakePHP Video Tutorialshttp://tv.cakephp.org Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Data Modeling - Modelagem de dados
Hey everybody! I'm new here! I need a help! how can I model this case in cake? in the database and the model of cake an employee belongs to many departments and a department has many employees. and an employee is the department head? I could not think of a way. I appreciate the help! == pt-br === Fala galera! sou novo por aqui! estou precisando de uma ajuda! como eu posso modelar esse caso no cake? no banco e no modelo do cake um funcionário pertence a muitos departamentos e um departamento tem muitos funcionários. e um dos funcionários é o chefe do departamento? Não consegui pensar em uma maneira. agradeço a ajuda! -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
RE: Paginate an array?
But essentially your find is the paginate params, the same thing your manually finding and passing could be done as paginate is intended. Include the use of manual joins if your grabbing related sensitive conditions for the member model. K -Original Message- From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of heohni Sent: Thursday, April 07, 2011 12:15 PM To: CakePHP Subject: Re: Paginate an array? Hi, I need to push this up, I still get in trouble with it. I select all my members with a find call: $getMembers = $this-Member-find('all', $findoptions); Then I loop through and make some checks and calculating stuff. At a certain point I am even deleting rows out of the array and do some sorting and re-arrangment stuff. After all, I want to give the $getMembers array to the view and I want to paginate it. All my data is finally stored in $getMembers. What can I do to pagine through the $getMembers Array? Thanks!! On 1 Apr., 18:33, Krissy Masters naked.cake.ba...@gmail.com wrote: Something like: $this-paginate = $this-Model-__customPaging( $my_conditions);//function just like any other find to return an array of data $this-set( 'query', $this-paginate( 'Model' ) ); -Original Message- From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Ofheohni Sent: Friday, April 01, 2011 10:50 AM To: CakePHP Subject: Paginate an array? Hi, I have a find() function to get some data. The user has the chance to modfiy the data and all changes I keep in an array. Can I also give that array to the paginate function? As I want to paginate through the users custom made data and not the original DB result? Any ideas on that? Thanks and I wish everbody a nice and relaxing weekend! -- Our newest site for the community: CakePHP Video Tutorialshttp://tv.cakephp.org Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Strange error passing from windows to linux
I starting developing my app on windows on Apache/MySQL/PHP environment, today i've copied my htdocs directory returned on my ubuntu, again under AMP environment (and paste my htdocs). Every things work quite good, but sometimes I have error like: Notice(8) Undefined index: id [CORE/cake/libs/model/model.php, line 1329] Warnign(2) Cannot modify header information - headers already sent by (output started at /opt/lampp/htdocs/cakephp/cake/libs/debugger.php: 673) [CORE/cake/libs/controller/controller.php, line 742] Database operetions work as usual but there's this little problem. Anyway if I set debug to 0 this error disappear. What error is this??? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
How should I handle cart data in a session?
I was trying to do this for a website I wanted to get done quickly. Because I didn't want to go through the whole ACL setup I just wanted to make any user that went to the website able to buy things stored in a session(or cookie but I'm not sure how to do that in cake either). The data would need to hold an array of model Photo. I figured the way I should do it was create non-view controller methods to add items to the cart that is accessed by link then redirected to that photo's page. Then I'd show a page with their cart. But I couldn't seem to figure it all out though. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Whats happening in Cake 2.0?
I hear about how CakePHP 2.0 is having a lot of work poured in to it. I'm stuck here wondering what the differences (generally, I'm not seriously asking for a whole wiki worth of an answer on google groups :P ) between 2.0 and say 1.3(which is what I use). Will there be any major syntax changes or major new features in 2.0 that I should eagerly await (or beta test / try to fix on github)? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Whats happening in Cake 2.0?
i can recommend: tv.cakephp.org/video/CakeFoundation/2011/04/07/ la_meetup_2011_part_four + all cake docs on this subject at http://cakephp.lighthouseapp.com/ On 7 Apr., 23:13, Chris theswimmingf...@gmail.com wrote: I hear about how CakePHP 2.0 is having a lot of work poured in to it. I'm stuck here wondering what the differences (generally, I'm not seriously asking for a whole wiki worth of an answer on google groups :P ) between 2.0 and say 1.3(which is what I use). Will there be any major syntax changes or major new features in 2.0 that I should eagerly await (or beta test / try to fix on github)? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Paginate an array?
if you already fetched all records anyway its kinda nonsense to paginate over them again you would need some temp tables that is makes sense. you could pass them to the view and paginate with js instead On 7 Apr., 20:06, Krissy Masters naked.cake.ba...@gmail.com wrote: But essentially your find is the paginate params, the same thing your manually finding and passing could be done as paginate is intended. Include the use of manual joins if your grabbing related sensitive conditions for the member model. K -Original Message- From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of heohni Sent: Thursday, April 07, 2011 12:15 PM To: CakePHP Subject: Re: Paginate an array? Hi, I need to push this up, I still get in trouble with it. I select all my members with a find call: $getMembers = $this-Member-find('all', $findoptions); Then I loop through and make some checks and calculating stuff. At a certain point I am even deleting rows out of the array and do some sorting and re-arrangment stuff. After all, I want to give the $getMembers array to the view and I want to paginate it. All my data is finally stored in $getMembers. What can I do to pagine through the $getMembers Array? Thanks!! On 1 Apr., 18:33, Krissy Masters naked.cake.ba...@gmail.com wrote: Something like: $this-paginate = $this-Model-__customPaging( $my_conditions);//function just like any other find to return an array of data $this-set( 'query', $this-paginate( 'Model' ) ); -Original Message- From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Ofheohni Sent: Friday, April 01, 2011 10:50 AM To: CakePHP Subject: Paginate an array? Hi, I have a find() function to get some data. The user has the chance to modfiy the data and all changes I keep in an array. Can I also give that array to the paginate function? As I want to paginate through the users custom made data and not the original DB result? Any ideas on that? Thanks and I wish everbody a nice and relaxing weekend! -- Our newest site for the community: CakePHP Video Tutorialshttp://tv.cakephp.org Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorialshttp://tv.cakephp.org Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: hasAndBelongsToMany gives server error in CakePHP 1.3
On Thu, Apr 7, 2011 at 5:58 AM, Pankaj Agrawal pankaj.visi...@gmail.com wrote: yes thanks alot, debug was one problem why i didnt know why its not working. But interestingly i didnt do anything else and it seems to work now I have another problem now. In the list it shows the id numbers unless i have a field called name, can we make it show someother field? http://book.cakephp.org/view/1062/displayField -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Redirection not accepting named parameters
On Thu, Apr 7, 2011 at 7:53 AM, meekamoo bryanpadd...@gmail.com wrote: Hey all, I have a redirect set up that uses this array: Array ( [country] = za [action] = listing [0] = south-africa ) That works and it correctly redirects to /za/properties/listing/south- africa As soon as I try to add a named parameter to the mix, the redirect ignores every extra parameter. Array ( [country] = za [action] = listing [0] = south-africa [sale] = 1 ) Redirects to /za/properties/listing without ANY parameters. Anyone know what's going on here? You should create a route. And why pass the country name if you already have the ISO code in the URL? Router::connect( '/properties/:country', array( 'controller' = 'properties', 'action' = 'listing' ), array( 'country' = '[a-z]{2}', 'pass' = array('country') ) ); public function listing($country = null) {} I didn't include sale here because it's not clear to me what that param is for. There may be a better way to approach this than just passing 1 as a param. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Cache Confusion
Cache action, query and view/element. So how do you know which to use, when? Basic example we use Post action = view, id = 123 We cache the query data from the database so every time that Post is viewed we simply read the cached data, fine easy enough delete that data cache on update so we always pull new data. ***But*** If the action is cached do we need to cache the query data also? The view holds the data so if the view is cached as the final product does cake still try to get the database query. I guess think of a cascade effect if the action is cached for x amount of time does that override the view and query cache since that action and the query inside the action would not even be run since the total action and everything inside is cached whatever is inside the action should be skipped all together no? $cacheAction as it sounds would cache everything the action does, all its thinking, data requests and result if your caching the whole action then you don't need to cache anything else? Cacheing you query is just the data from the db in a file / memory wherever you save it View just the rendered output with the query data in it $cacheAction = view/123 = 1 month whatever for a rough example function view ($id) { //after initial first time viewing of this page everything inside here would be completely skipped? If your caching the total actions end result why would you cache the query data? Would it not be cached inside the action already? } I guess with the available options it can be a bit confusing and knowing when to use with what and when. Any insight to clear this up would be great. Thanks all, K -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Data Modeling - Modelagem de dados
2011/4/7 Vinícius Arantes vinicius@gmail.com: Hey everybody! I'm new here! I need a help! how can I model this case in cake? in the database and the model of cake an employee belongs to many departments and a department has many employees. and an employee is the department head? I could not think of a way. I appreciate the help! class Employee extends AppModel { public $hasAndBelongsTo = array( 'Department' = array( 'className' = 'Department', 'joinTable' = 'departments_employees', 'foreignKey' = 'employee_id', 'associationForeignKey' = 'department_id', 'unique' = true ) ); } class Department extends AppModel { public $hasAndBelongsTo = array( 'Employee' = array( 'className' = 'Employee', 'joinTable' = 'departments_employees', 'foreignKey' = 'department_id', 'associationForeignKey' = 'employee_id', 'unique' = true ) ); public $hasOne = array( 'Head' = array( 'className' = 'Employee', 'foreignKey' = 'head_id' ) ); } Add a column in departments table for head_id using whatever type you're using for employees.id. This is the foreign key. In your find() calls, refer to the departmant head as class Head. This is the alis. The class is still Employee. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Strange error passing from windows to linux
On Thu, Apr 7, 2011 at 4:47 PM, Mariano C. mariano.calan...@gmail.com wrote: I starting developing my app on windows on Apache/MySQL/PHP environment, today i've copied my htdocs directory returned on my ubuntu, again under AMP environment (and paste my htdocs). Every things work quite good, but sometimes I have error like: Notice(8) Undefined index: id [CORE/cake/libs/model/model.php, line 1329] Warnign(2) Cannot modify header information - headers already sent by (output started at /opt/lampp/htdocs/cakephp/cake/libs/debugger.php: 673) [CORE/cake/libs/controller/controller.php, line 742] Well, line 1329 is in save() method: $fInfo = $this-_schema[$this-primaryKey]; It looks like you have some disparity in your table definitions. Database operetions work as usual but there's this little problem. Anyway if I set debug to 0 this error disappear. That's because the notice is being suppressed. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: How should I handle cart data in a session?
On Thu, Apr 7, 2011 at 5:03 PM, Chris theswimmingf...@gmail.com wrote: I was trying to do this for a website I wanted to get done quickly. Because I didn't want to go through the whole ACL setup I just wanted to make any user that went to the website able to buy things stored in a session(or cookie but I'm not sure how to do that in cake either). Sessions and cookies are interrelated. When you write to the session, a cookie is also created. On the next request, the cookie is read. This is how one maintains state between requests. I don't think you should be considering ACL for something like that, anyway. Not unless your buyers must be logged in first, and certain buyers cannot buy certain products, or something like that. Otherwise, a shopping cart shouldn't require that users are logged in. The data would need to hold an array of model Photo. Why not just save the id? When it comes time to check out, read the ids from the cart and fetch the releavant photos. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: cakephp 1.3.8 plugin ACL Filter on Croogo
What debug level is set in core.php when you get that blank page? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
My Links Pages
Hi everyone, Im fairly new to cakephp and php, but im learning fast. Im helping a friend do some minor updates to his website, and have come stuck, basically the links page (and system needs updating) needs sorting out. What im trying to do is im trying to get all the links pages to display on the home page, (ex: 1,2,3,4,5,6) without the user having to click the links button first and then travel services and then through each page...Obviously it would be alot easier if the user could just click on the page numbers. Heres the link so you can see http://www.disneyvillavacations.com/links/travel_services/page:1 I know its something quite simple but i just cant get me head round it. Could anyone point me in the right direction?? thanks in advance for the assistance Brook -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Reverse lookup of routes
I configured my route similar to one example in the CakePHP Book. I want to reach the ArtistsController's view action via the URL http://xxx/artists/id. Everything is working fine with the following Routes entry and this direction: Router::connect('/:language/artists/:id', array('controller'='artists','action'='view'), array('pass' = array('id'), 'language' = '[a-z]{3}','id' = '[0-9]{1}')); But what about the proper reverse lookup? If I use the HtmlHelper Function Link in the following way: $html-link('Artist 2', array( 'controller' = 'artists', 'action' = 'view', 2 )) , the link is resolved to http://xxx/artists/view/2 instead of the desired http://xxx/artists/2 . Is this the desired behavior? Regards, Alex -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Why Can't Components See Methods from App_Controller?
I've got a component to do some common functions for a number of controllers. When I'm in those controllers, I can use globally-common functions from the app_controller. But when I'm in a component called by a controller, those functions from the app_controller aren't available. Isn't that sort of the point of the app_controller, and since a component is under a controller, shouldn't it be able to access? I don't quite understand why $this loses all its information once you roll into a component. Why is this the case (interested in the theory behind this part of the MVC), and is there a best practice way to access things from the app_controller in a component? Thanks. --David -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Whats happening in Cake 2.0?
actually http://tv.cakephp.org/video/CakeFoundation/2011/04/07/la_meetup_2011_part_four On Thu, Apr 7, 2011 at 6:29 PM, euromark dereurom...@googlemail.com wrote: i can recommend: tv.cakephp.org/video/CakeFoundation/2011/04/07/ la_meetup_2011_part_four + all cake docs on this subject at http://cakephp.lighthouseapp.com/ On 7 Apr., 23:13, Chris theswimmingf...@gmail.com wrote: I hear about how CakePHP 2.0 is having a lot of work poured in to it. I'm stuck here wondering what the differences (generally, I'm not seriously asking for a whole wiki worth of an answer on google groups :P ) between 2.0 and say 1.3(which is what I use). Will there be any major syntax changes or major new features in 2.0 that I should eagerly await (or beta test / try to fix on github)? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Raphael http://blog.rmontanaro.com/ -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Problemas ao acessar o domínio cakephp.org
Alguém aí está com problemas para acessar o domínio cakephp.org? Com o meu laptop eu consigo acessar no trabalho e na faculdade, mas em casa não. Tem alguém com o mesmo problema?? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Relaunched CakePHP Live Site
All the people on this list and not one person has suggestions what they would like to see the core development discuss live? -- Larry E. Masters On Thu, Apr 7, 2011 at 1:35 AM, Larry E. Masters php...@gmail.com wrote: Some of you may not be aware that we relaunched the CakePHP Live site recently. We had 1 live broadcast just before leaving on our tour and plan to do these more often. There will be a list on http://live.cakephp.orgsoon with upcoming dates and topics. I would also like everyone to respond to this thread with topics they would like to see us discuss on these live video streams. -- Larry E. Masters -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Relaunched CakePHP Live Site
Yawwwnn sorry just woke up :) I'd like to see: - Version 2 changes/demonstration - MongoDB support/demo - JS helper setup + config with standard jQuery + jQuery UI - Maybe a spotlight on peoples development process, from database to code to testing to deployment. e.g. How does cakedc do it? - File uploading handling/Media plugin - Containable behavior I know some of the answers already but I think it's lacking in docs so a rundown for those who dont would be good :) Cheerio On 8 April 2011 11:00, Larry E. Masters php...@gmail.com wrote: All the people on this list and not one person has suggestions what they would like to see the core development discuss live? -- Larry E. Masters On Thu, Apr 7, 2011 at 1:35 AM, Larry E. Masters php...@gmail.com wrote: Some of you may not be aware that we relaunched the CakePHP Live site recently. We had 1 live broadcast just before leaving on our tour and plan to do these more often. There will be a list on http://live.cakephp.orgsoon with upcoming dates and topics. I would also like everyone to respond to this thread with topics they would like to see us discuss on these live video streams. -- Larry E. Masters -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Relaunched CakePHP Live Site
I think the best subject that could be approached is the current state of development of version 2.0 of cakephp... what can we expect? experiments that mark the story is making using Sphinx to generate documentation in various formats, what is your intention 2011/4/8 Larry E. Masters php...@gmail.com All the people on this list and not one person has suggestions what they would like to see the core development discuss live? -- Larry E. Masters On Thu, Apr 7, 2011 at 1:35 AM, Larry E. Masters php...@gmail.com wrote: Some of you may not be aware that we relaunched the CakePHP Live site recently. We had 1 live broadcast just before leaving on our tour and plan to do these more often. There will be a list on http://live.cakephp.orgsoon with upcoming dates and topics. I would also like everyone to respond to this thread with topics they would like to see us discuss on these live video streams. -- Larry E. Masters -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- *Vitor Pacheco* *71 8626-7909 71 3378-5778 **71 3287-3475*** -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Problemas ao acessar o domínio cakephp.org
aqui eu consigo acessar normalmente, algumas pessoas dizem que a velox tá com problemas no dns e não consegue chegar no servidor deles... mas eu uso velox em casa, gvt no trabalho e embratel na faculdade e consigo acessar de todos os lugares... Em 7 de abril de 2011 22:43, Vital vitalci.jun...@gmail.com escreveu: Alguém aí está com problemas para acessar o domínio cakephp.org? Com o meu laptop eu consigo acessar no trabalho e na faculdade, mas em casa não. Tem alguém com o mesmo problema?? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- *Vitor Pacheco* *71 8626-7909 71 3378-5778 **71 3287-3475*** -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Relaunched CakePHP Live Site
I'd like to see some of what Ryan's mentioned, plus the following : * ACL configuration, the docs are decent but what we've had massive issues with is having control of individual records. I'd like to see more examples of how people are setting this up. * More examples of Boiler plate AppControllers and AppModels Thanks Warren On 08/04/2011 05:18, Ryan Snowden wrote: Yawwwnn sorry just woke up :) I'd like to see: * Version 2 changes/demonstration * MongoDB support/demo * JS helper setup + config with standard jQuery + jQuery UI * Maybe a spotlight on peoples development process, from database to code to testing to deployment. e.g. How does cakedc do it? * File uploading handling/Media plugin * Containable behavior I know some of the answers already but I think it's lacking in docs so a rundown for those who dont would be good :) Cheerio On 8 April 2011 11:00, Larry E. Masters php...@gmail.com mailto:php...@gmail.com wrote: All the people on this list and not one person has suggestions what they would like to see the core development discuss live? -- Larry E. Masters On Thu, Apr 7, 2011 at 1:35 AM, Larry E. Masters php...@gmail.com mailto:php...@gmail.com wrote: Some of you may not be aware that we relaunched the CakePHP Live site recently. We had 1 live broadcast just before leaving on our tour and plan to do these more often. There will be a list on http://live.cakephp.org soon with upcoming dates and topics. I would also like everyone to respond to this thread with topics they would like to see us discuss on these live video streams. -- Larry E. Masters -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com mailto:cake-php%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Reverse lookup of routes
On Apr 7, 2011, at 12:42, ThunderTD wrote: I configured my route similar to one example in the CakePHP Book. I want to reach the ArtistsController's view action via the URL http://xxx/artists/id. Everything is working fine with the following Routes entry and this direction: Router::connect('/:language/artists/:id', array('controller'='artists','action'='view'), array('pass' = array('id'), 'language' = '[a-z]{3}','id' = '[0-9]{1}')); But what about the proper reverse lookup? If I use the HtmlHelper Function Link in the following way: $html-link('Artist 2', array( 'controller' = 'artists', 'action' = 'view', 2 )) , the link is resolved to http://xxx/artists/view/2 instead of the desired http://xxx/artists/2 . Is this the desired behavior? It doesn't look like you specified the language in the $html-link (properly: $this-Html-link) command, and your route does seem to rely on the language being set. Did you mean to specify it there, or is it being included by some other means that you didn't show? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: My Links Pages
On Apr 7, 2011, at 09:38, dvvbrook79 wrote: Im fairly new to cakephp and php, but im learning fast. Im helping a friend do some minor updates to his website, and have come stuck, basically the links page (and system needs updating) needs sorting out. What im trying to do is im trying to get all the links pages to display on the home page, (ex: 1,2,3,4,5,6) without the user having to click the links button first and then travel services and then through each page...Obviously it would be alot easier if the user could just click on the page numbers. Heres the link so you can see http://www.disneyvillavacations.com/links/travel_services/page:1 Ok, I've taken a look at that page, but I didn't understand what you wanted to change about it. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: convert to javascript to cake
On Apr 7, 2011, at 00:17, Master Ram wrote: a href=javascript:void(); class=applybutton onmouseout=MM_swapImgRestore() onmouseover=MM_swapImage('Apply','','images/adminControls/ button_apply_hover.jpg',1) /a Please consider doing this using CSS (e.g. the :hover modifier) instead of JavaScript. Swapping images on mouse over / out using JavaScript was the way to do it in the late 1990's, but not today. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Why Can't Components See Methods from App_Controller?
On Thu, Apr 7, 2011 at 5:02 PM, David dav...@ayamba.com wrote: I've got a component to do some common functions for a number of controllers. When I'm in those controllers, I can use globally-common functions from the app_controller. But when I'm in a component called by a controller, those functions from the app_controller aren't available. Isn't that sort of the point of the app_controller, and since a component is under a controller, shouldn't it be able to access? I don't quite understand why $this loses all its information once you roll into a component. Why is this the case (interested in the theory behind this part of the MVC), and is there a best practice way to access things from the app_controller in a component? Components don't extend controllers. But the controller is passed to the component's initialize() and startup() methods. class FooComponent extends Object { private $__Controller; function startup($controller) { $this-__Controller = $controller; } } -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Relaunched CakePHP Live Site
On Thu, Apr 7, 2011 at 11:18 PM, Ryan Snowden sicapi...@gmail.com wrote: Version 2 changes/demonstration ++ on that. Also, different strategies for caching. And perhaps some discussion on using shells. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Model class not found
?php class Tag extends AppModel { $name = 'Tag'; } ? On Apr 7, 9:35 pm, abhimanyu bv vmabhi...@gmail.com wrote: lass Tag extends AppModel { $name = 'Tag'; } Fatal error: Class 'Tag' not found in /home/downtown/public_html/test_cake/cake/libs/ class_registry.php on line 140 in ..\app\models\tag.php I have class Tag extends AppModel { $name = 'Tag'; } What silly blunder am I making? I have tried clearing tmp/cache and I have reloaded cakePHP from scratch. I have seen this error in Google searches but it was a relatively obvious syntax error. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Memory Leak in Model::Save()
On 4/7/2011 8:37 PM, Miles J wrote: @Alex - Yes you can have memory leaks in PHP. http://www.google.com/search?q=memory+leaks+in+phpie=utf-8oe=utf-8aq=trls=org.mozilla:en-US:officialclient=firefox-a Miles, please point me to calloc/malloc PHP equivalent so I can test memory leaking in PHP. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Cake core might benefit from some more developers helping out
2.0, 2.x, 3.x, ... There's plenty to do. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Memory Leak in Model::Save()
I think Miles is pointing out there is a bug in php interpreter which can lose memory under certain circumstances, and through our coding we can trigger that bug. So, yes, it appears possible that memory can leak, and that by changing our code, we can stop it. Pretty scary, isn't it. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Memory Leak in Model::Save()
On 4/8/2011 7:47 AM, keymaster wrote: I think Miles is pointing out there is a bug in php interpreter which can lose memory under certain circumstances, and through our coding we can trigger that bug. So, yes, it appears possible that memory can leak, and that by changing our code, we can stop it. Pretty scary, isn't it. Yeah, this can get nasty :-) -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Relaunched CakePHP Live Site
plans regarding evolution of cake's model and ORM, in light of all the new stuff now available in open source (eg. Propel, Doctrine...). -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php