Re: Routing and html helper
If you're using 1.2 then maybe the new array based URL are what you need: $html->link('link', array('sitename' => 'a_site_name', 'controller' => 'posts', 'action' => 'index')); On May 3, 1:54 am, gerbenzomp <[EMAIL PROTECTED]> wrote: > I've changed the routes in my app, so that my paths are like this: > > $Route->connect("/:sitename/", array("controller" => "posts", "action" > => "index")); > > and urls are like this: > > site.com/sitename/controller/action/ > > But the html helper automatically creates links like this: > > site.com/controller/action/ > > Is there a way I can adjust the html helper so that the current > sitename is added to each link in the app? --~--~-~--~~~---~--~~ 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: Performance Time (debug variable)
Actually it works with any library that sets the 'X-Requested-With' HTTP header. I'm using it successfully with jQuery in a current project. Cheers! On May 3, 2:13 am, Grant Cox <[EMAIL PROTECTED]> wrote: > To the OP: just modify your index.php, removing the html comment. > > Robechar: the RequestHandler->isAjax only detects Prototype/ > Scriptaculous requests, not for any other libraries, and to change the > debug you should probably use > Configure::write('debug', 0); --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
working with nested view directories using different layouts
hi, im wondering if anybody has tried to use nested view directories with multiple layouts? basically the overall design of the app requires a "hotel" view directory with an index.thtml page that serves as the starting point to browse into individual hotel directories, like: /views /hotels/ index.thtml some_hotel/ another_hotel/ i have it able to see the indexes in the sub_hotel directories, the issue im having is really with the main "hotel_controller" and trying to use individual unique layouts for each sub_hotel... the only layout that the sub_hotel dir's will see is the one declared in the main hotel_controller... is there a way to nest controller classes for the individual sub_hotel's in one main hotel_controller super-class? not sure if anybody has had to do something like this in the past, but obviously the design of the app is falling victim to the client's SEO needs, is what im trying to do here possible? thanks for your help! --~--~-~--~~~---~--~~ 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: Performance Time (debug variable)
Grant: Thank you for pointing out that isAjax works only with Prototype/ Scripaculous. Thats a bummer! BTW, does Configure::write work with cake 1.1.14? Thanks, Mandy. On May 3, 4:13 am, Grant Cox <[EMAIL PROTECTED]> wrote: > To the OP: just modify your index.php, removing the html comment. > > Robechar: the RequestHandler->isAjax only detects Prototype/ > Scriptaculous requests, not for any other libraries, and to change the > debug you should probably use > Configure::write('debug', 0); --~--~-~--~~~---~--~~ 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: Routing and html helper
You can create another helper, like a HtmlExt (HTML Extension :) ) which do this... probably you can use the Html helper default as base Tulio, On 2 maio, 19:54, gerbenzomp <[EMAIL PROTECTED]> wrote: > I've changed the routes in my app, so that my paths are like this: > > $Route->connect("/:sitename/", array("controller" => "posts", "action" > => "index")); > > and urls are like this: > > site.com/sitename/controller/action/ > > But the html helper automatically creates links like this: > > site.com/controller/action/ > > Is there a way I can adjust the html helper so that the current > sitename is added to each link in the app? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
change element path in renderElement
A while ago AD7six told me that it is possible to override the default path of an element when calling renderElement(). Up to now, it hasn't become clear to me how to change that path, and what the path should look like. When an element resides in app/plugins/my_plugin/views/elements/ my_element.thtml, how would I point to that location using renderElement(); ? --~--~-~--~~~---~--~~ 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: Probem with custom query
Search the group, this is just the way the PHP mysql connector returns data. But try to identify your tables and fields as Cake does, maybe that will help. $result = $this->query("SELECT DISTINCT(SUBSTRING(`Game`.`date`, 1,10)) as `Game`.`date` FROM `games` AS `Game` WHERE `Game`.`date` > '2006-08-01' ORDER BY `Game`.`date` DESC"); --~--~-~--~~~---~--~~ 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: insert more data than available from form
function add() { if (!empty($this->data)) { $this->data['Idea']['user_id'] = $this->Session- >read('User_ID'); if ($this->Idea->save($this->data)) { $this->flash('entry has been saved.','/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?hl=en -~--~~~~--~~--~--~---
insert more data than available from form
I've been playing with cake and tweaking the blog demo. I want to add data into a table that is available in the session rather than just from the form. Right now my add function looks like: function add() { if (!empty($this->data)) { if ($this->Idea->save($this->data)) { $this->flash('entry has been saved.','/ideas'); } } } In addition to the form data, I have a user_id I would also like to insert, available in the session scope. $this->Session->write('User_ID', $someone['id']); How do I insert that user_id into the table? --~--~-~--~~~---~--~~ 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: Performance Time (debug variable)
To the OP: just modify your index.php, removing the html comment. Robechar: the RequestHandler->isAjax only detects Prototype/ Scriptaculous requests, not for any other libraries, and to change the debug you should probably use Configure::write('debug', 0); --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Routing and html helper
I've changed the routes in my app, so that my paths are like this: $Route->connect("/:sitename/", array("controller" => "posts", "action" => "index")); and urls are like this: site.com/sitename/controller/action/ But the html helper automatically creates links like this: site.com/controller/action/ Is there a way I can adjust the html helper so that the current sitename is added to each link in the app? --~--~-~--~~~---~--~~ 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: Cant get the mod rewrite going online
I had similar problem with one ISP. Actually adding RewriteBase / before the RewriteRule makes it works, "fixing" the base of the rule to the webroot directory. My .htaccess in webroot looked like this : RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] Hope this helps. On May 2, 1:28 pm, Dustin Weber <[EMAIL PROTECTED]> wrote: > In my experiences, you can enable mod rewrite in some shared hosting > environments by placing something like this in a .htaccess file: > > >RewriteEngine on >RewriteRule^$ app/webroot/[L] >RewriteRule(.*) app/webroot/$1 [L] > > > What you'll notice though, is that a .htaccess file exists in three > locations with that similar code in it within the cake directories (by > default). Check to make sure those files exist on the server. You > also might try to add the .htaccess file to the root (public_html) > folder of your server and that might help. However, if phpinfo() says > it's enabled, that may not help. > > Also, directly from the manual: > "Make sure that an .htaccess override is allowed in your httpd.conf > (Apache), you should have a section that defines a section for each > Directory on your server. Make sure the AllowOverride is set to All > for the correct Directory." > > You should be able to do this some other way (without needing access > to the httpd.conf)... I assume in the .htaccess file, but I'm not sure > I can tell you how to do that. > > Also, this may not be related to mod-rewrite... have you googled the > error you get when leaving mod-rewrite enabled in the Cake core? > > That stuff may or may not help, but maybe it will get you headed in > the right direction. > > Dustin Weberhttp://www.dustinweber.com > > On May 2, 1:47 pm, cakedude <[EMAIL PROTECTED]> wrote: > > > Hi there, > > > I've build a pretty fine web application in cake which runs absolutely > > smooth on my local server. However, when i try to put the app online i > > get the (browser) message that my browser doesn't understand the > > website's request. > > Figuring that this would have something to do with the mod rewrite > > module, i turned it off (uncommenting the line in the core.php) . > > Unfortunately this only gives me access to the first (index) page. > > When i try to access one of my views (for > > examplewww.mysite.com/cake/app/views/chapters) > > i get a directory listing instead of the desired view. > > > Now i looked at my online server information ( phpinfo() ). This > > stated under "Apache" that the mod_rewrite module IS loaded. > > > My knowledge of server settings is limited but after reading allot of > > posts about the mod rewrite issue i realized that in order for the mod > > rewrite function to work, i would have to make some changes in the > > httpd.conf file. Is this correct? If so, i do not have access to this > > file (as i am running my website on a third party host) but is there > > any other way i can use the mod rewrite function? > > > If not i would have to do allot of "path changing" in my application. > > However, i am also still a bit confused about the dir listing when > > turning mod rewrite off. > > > I hope someone can help me with these issues. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
session cookie delivered twice with different path restrictions
hi, i guess it happened after i activated mod_rewrite, that cookies are being delivered twice by my app. first it restricts the usage to path /app/ webroot. (Probably that's why the first login attempt always fails!) After logging in a second time, i recieve another cookie with the path /, and proceed to the app. the situation on my development machine (localhost) is different though. here everythings works nicely, the session path is /cake/ (doc root relative to my app) hope you can help, thanks jyrgen --~--~-~--~~~---~--~~ 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: Ajax: drag & drop, creating of objects and persisting of associations
Not sure if this is exactly what you are looking for, but I wrote a short tutorial relating to drag & drops in Cake on my blog. Cake makes it extremely easy to build such an interface using scriptaculous. Obviously you'll have to change it around a bit to fit your particular site. You can read it here: http://www.dustinweber.com/blog/_archives/2007/4/4/2859177.html Hopefully that will get you started solving the problem... since no one answered you previously. Dustin Weber http://www.dustinweber.com On Apr 15, 3:29 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello, > I have absolutely no ajax skills (and little js knowledge) but I have > to create something, something sounding very complicated to me, but > some of you cake/ajax-wizzes will hopefully find this very easy :-) > > First of all I want to say I'ld like to use jquery (as I read so many > good things about it) but if this is not possible or harder to do then > with scriptaculous/prototype/whatever then i use that. > I just need to achieve what I want, without wasting too much time, it > doesn't matter that much to me what lib is used. I just *need* to get > this working, quickly and decently. > > So here it goes: > order hasOne delivery > delivery belongsTo order, route > route hasMany delivery > route belongsto driver > driver hasmany route > > The interface I need should allow a person to create "routes" (pretty > abstract) and assign a driver to each route, then he should be able to > create new delivery objects for orders, and assign those delivery > objects to routes. > > The way I thought I could do this is a page that lists each existing > route as a column, with a "+" button that creates a new route (and > hence, column). Then each column would have a dropdown box where one > could select the driver for that route. > Then I thought, on the left of these columns would be another column, > listing all orders. Then the user should be able todragan order to > a route-column, when this happens a delivery object should be created, > and all the associations (between delivery and order, and between > route and delivery) should be updated. > > Maybe I could make it easier by just getting rid of the "delivery" > objects and directly linking between orders and routes. > > But I have no clue on how to achieve this with ajax, I hope you guys > can help me out :-) > > Thanks, > Dieter > > PS: it is important that the associations in the database are in sync > with what is on screen. when the user moves objects, the assocations > must be updated in the database. Likewise, when the user opens the > page for the first time, the page should represent exactly the state > of the objects like it is stored in the database --~--~-~--~~~---~--~~ 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: Cant get the mod rewrite going online
In my experiences, you can enable mod rewrite in some shared hosting environments by placing something like this in a .htaccess file: RewriteEngine on RewriteRule^$ app/webroot/[L] RewriteRule(.*) app/webroot/$1 [L] What you'll notice though, is that a .htaccess file exists in three locations with that similar code in it within the cake directories (by default). Check to make sure those files exist on the server. You also might try to add the .htaccess file to the root (public_html) folder of your server and that might help. However, if phpinfo() says it's enabled, that may not help. Also, directly from the manual: "Make sure that an .htaccess override is allowed in your httpd.conf (Apache), you should have a section that defines a section for each Directory on your server. Make sure the AllowOverride is set to All for the correct Directory." You should be able to do this some other way (without needing access to the httpd.conf)... I assume in the .htaccess file, but I'm not sure I can tell you how to do that. Also, this may not be related to mod-rewrite... have you googled the error you get when leaving mod-rewrite enabled in the Cake core? That stuff may or may not help, but maybe it will get you headed in the right direction. Dustin Weber http://www.dustinweber.com On May 2, 1:47 pm, cakedude <[EMAIL PROTECTED]> wrote: > Hi there, > > I've build a pretty fine web application in cake which runs absolutely > smooth on my local server. However, when i try to put the app online i > get the (browser) message that my browser doesn't understand the > website's request. > Figuring that this would have something to do with the mod rewrite > module, i turned it off (uncommenting the line in the core.php) . > Unfortunately this only gives me access to the first (index) page. > When i try to access one of my views (for > examplewww.mysite.com/cake/app/views/chapters) > i get a directory listing instead of the desired view. > > Now i looked at my online server information ( phpinfo() ). This > stated under "Apache" that the mod_rewrite module IS loaded. > > My knowledge of server settings is limited but after reading allot of > posts about the mod rewrite issue i realized that in order for the mod > rewrite function to work, i would have to make some changes in the > httpd.conf file. Is this correct? If so, i do not have access to this > file (as i am running my website on a third party host) but is there > any other way i can use the mod rewrite function? > > If not i would have to do allot of "path changing" in my application. > However, i am also still a bit confused about the dir listing when > turning mod rewrite off. > > I hope someone can help me with these issues. --~--~-~--~~~---~--~~ 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: Performance Time (debug variable)
You can prevent this by adding this code to your app_controller.php beforeFilter function: if ($this->RequestHandler->isAjax()) { $db =& ConnectionManager::getDataSource('default'); $db->fullDebug = false; } Make sure you have RequestHandler in your components array. On May 2, 12:15 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On 5/2/07, Alex <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > Is it possible to replan the concept of the debug-variable? > > I need to hide the performance time which is printed (index.php) as a > > html-comment at the end of each view. The ajax-inplaceeditor handles > > this comment as a value. > > what i need is to run in debug=1 mode and to hide the performance time > > separately. > > Although I see it as being of limited usage (sounds like you have an > edge case or architectural problem), feel free to alter the code > yourself to make it happen. That's the beauty of open source. > > You could always file a change request in CakePHP's trac system. > > -- > Chris Hartjes > > My motto for 2007: "Just build it, damnit!" > > @TheBallpark -http://www.littlehart.net/attheballpark > @TheKeyboard -http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ 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: Performance Time (debug variable)
On 5/2/07, Alex <[EMAIL PROTECTED]> wrote: > > Hi, > > Is it possible to replan the concept of the debug-variable? > I need to hide the performance time which is printed (index.php) as a > html-comment at the end of each view. The ajax-inplaceeditor handles > this comment as a value. > what i need is to run in debug=1 mode and to hide the performance time > separately. Although I see it as being of limited usage (sounds like you have an edge case or architectural problem), feel free to alter the code yourself to make it happen. That's the beauty of open source. You could always file a change request in CakePHP's trac system. -- Chris Hartjes My motto for 2007: "Just build it, damnit!" @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Performance Time (debug variable)
Hi, Is it possible to replan the concept of the debug-variable? I need to hide the performance time which is printed (index.php) as a html-comment at the end of each view. The ajax-inplaceeditor handles this comment as a value. what i need is to run in debug=1 mode and to hide the performance time separately. Greetings, Alex --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Cant get the mod rewrite going online
Hi there, I've build a pretty fine web application in cake which runs absolutely smooth on my local server. However, when i try to put the app online i get the (browser) message that my browser doesn't understand the website's request. Figuring that this would have something to do with the mod rewrite module, i turned it off (uncommenting the line in the core.php) . Unfortunately this only gives me access to the first (index) page. When i try to access one of my views (for example www.mysite.com/cake/app/views/chapters) i get a directory listing instead of the desired view. Now i looked at my online server information ( phpinfo() ). This stated under "Apache" that the mod_rewrite module IS loaded. My knowledge of server settings is limited but after reading allot of posts about the mod rewrite issue i realized that in order for the mod rewrite function to work, i would have to make some changes in the httpd.conf file. Is this correct? If so, i do not have access to this file (as i am running my website on a third party host) but is there any other way i can use the mod rewrite function? If not i would have to do allot of "path changing" in my application. However, i am also still a bit confused about the dir listing when turning mod rewrite off. I hope someone can help me with these issues. --~--~-~--~~~---~--~~ 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: model->save & model->saveField : creates 2 extra rows ?!
The code you have should work fine, I would turn your DEBUG level up to '2' to see what queries are being run to cause this. Usually these issues are caused by something you customized in your model class, such as in a beforeSave() function that can cause strange behavior On May 2, 5:30 am, Dan <[EMAIL PROTECTED]> wrote: > Hi, > > At a loss on this one, I'm doing the following and the save is > successfull but it's creating 2 extra 'blank' rows each time in the > table > > $this->Modelname->id = $id; > $this->Modelname->saveField('fieldname','data'); > > saves fine, but then creates 2 blank items in the table, each a few > seconds after each other? > > Help!? --~--~-~--~~~---~--~~ 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: route confusion
If you have only a couple of actions that use this, it is probably best to list those individually in your routes.php file like: $Route->connect ('/action1', array('controller'=>'pub', 'action'=>'action1')); $Route->connect ('/action2', array('controller'=>'pub', 'action'=>'action2')); ... You could also do it the way you had posted, however it it will break anything that doesn't go to your 'pub' controller. $Route->connect ('/*', array('controller'=>'pub')); // Wouldn't recommend this. So when you tried to go to /othercontroller/action, it would still be going to the 'pub' controller and try to run a 'othercontroller' action with the param 'action' If you have a lot of actions in your pub controller, it is really easiest to just keep the controller in the URI. On a side note, you can also link within the pub controller by getting rid of your '/', as long as you are in the pub controller: $html->link('go here','action1') Hope that helps. On May 2, 8:16 am, monty <[EMAIL PROTECTED]> wrote: > after reading some of the posts i'm a bit confused about routes > > on my local machine I have > localhost/app/pub/action1 > localhost/app/pub/action2 etc.. > > I want my links to be like echo $html->link('go here','/action1') to > go to /pub/action1 etc.. > > I want this to work the same on local and live server. Is this what > routes are for or should I use mod rewrite? > > I tried $Route->connect ('/*', array('controller'=>'pub', > 'action'=>'display')); > > Much appreciated, Simon. --~--~-~--~~~---~--~~ 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: Cake Helpers options array
There is one in the manual that is pretty good, look under the AJAX heading. http://manual.cakephp.org/chapter/helpers On May 2, 10:13 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi All, > > I searched high and low on the site and the group for this. I was > wondering if there is good quick reference for possible key/value > pairs that can be passed to html/form/ajax/etc helper functions that > have an $options array. > > I'm just tired of digging through the APIs for 5 minutes trying to > decipher what can and can't be done. :) > > Thanks! > > Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Cake Helpers options array
Hi All, I searched high and low on the site and the group for this. I was wondering if there is good quick reference for possible key/value pairs that can be passed to html/form/ajax/etc helper functions that have an $options array. I'm just tired of digging through the APIs for 5 minutes trying to decipher what can and can't be done. :) Thanks! Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
othAuth & Expired Sessions
Hi folks, Having an issue with othAuth that I want to get rid of. What seems to happen is when the users session expires, if they visit any page all they get is a blank page. Checking it with Firebug, all I seem to get is an empty tag in between the body tags. This of course only happens when they first hit the page - when you hit refresh it shows you page and the user is logged out. I'm using sessions in the database. Has anyone experienced this already? Tane --~--~-~--~~~---~--~~ 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: useDbConfig
Cool. Thanks for the heads up. --~--~-~--~~~---~--~~ 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: thread created count for cakephp sites
>On 5/2/07, GreyCells <[EMAIL PROTECTED]> wrote: > > @Chris It appears connections are not always closed at end of script: > http://uk2.php.net/mysql_connect (top comment) :) but cake seems to > behave impecably. Well, that's not entirely true in terms of what the commenter said. If you have a query that runs longer than the timeout for your PHP page, I'd be willing to bet that MySQL will hang onto that connection until it's finished with it. People often confuse a script timing out with a script that finishes execution. I've run into this before at a previous job, on a database-intensive site. MySQL was keeping connections open when a PHP script crashed until it could clean up the connection itself. -- Chris Hartjes My motto for 2007: "Just build it, damnit!" @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ 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: thread created count for cakephp sites
Hmmm. I thought the article answered the question 'why do I have so many Threads_created?' perfectly - and how to fix it (if indeed, it needs fixing), because Threads_created has nothing to do with cake hanging on to connections (or not). Threads_created is the number of times mysql has had to create a new connection/thread since the server was started - if your Uptime is high, this can be a very large number. It is *not* the number of currently active threads. Restart mysql and it'll drop to single figures (as will Uptime). You only have 5 connections cached, 3 of which are idle (connected) and two are in use (running). If you are concerned about the Threads_created then the above article will demonstrate how to 'fix' it. I cannot see anything that suggests there is an issue with cake (or php, or mysql) hanging on to connections. Now if you had 'Threads_running 1098' on a small site... ~GreyCells @Chris It appears connections are not always closed at end of script: http://uk2.php.net/mysql_connect (top comment) :) but cake seems to behave impecably. On May 2, 1:56 pm, redhex <[EMAIL PROTECTED]> wrote: > GaryCells: > My questions was not to know about what those number means or to know > more about mysql status. This is a cakephp forum and hence I am asking > does cakephp closes connections when the script dies. > > So any other takers? > Question again: > > Does cakephp close all connection when the script finish running? > Current I am using mysql_connect. > > Post your http://www.ablewise.com/";>Free Classifieds at > Ablewise.com > > On May 2, 4:09 pm, GreyCells <[EMAIL PROTECTED]> wrote: > > > Google is your friend: > > >http://www.google.co.uk/search?q=mysql+threads_created > > > First hit: > > >http://jeremy.zawodny.com/blog/archives/000173.html > > > ...might help. > > > ~GreyCells > > > On May 2, 7:21 am, redhex <[EMAIL PROTECTED]> wrote: > > > > Hi all, > > > I am doing monitoring for my site which is cake based and found the > > > following: > > > > mysql "show global status" > > > > [158] Threads_cached 5 > > > [159] Threads_connected 3 > > > [160] Threads_created 1098 > > > [161] Threads_running 2 > > > > I am concern with the threads_created count. I guess it is a little on > > > the high side. > > > I am requesting my host to increase the thread_cache_size value at the > > > meantime from 8 to 32. > > > > My question here is this: > > > Does cakephp close all connection when the script finish running? > > > Current I am using mysql_connect. > > > > My mysql queries are done via the model interface. i.e. $this- > > > > >modelname->query( ); > > > > All input and comments are welcomed. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
route confusion
after reading some of the posts i'm a bit confused about routes on my local machine I have localhost/app/pub/action1 localhost/app/pub/action2 etc.. I want my links to be like echo $html->link('go here','/action1') to go to /pub/action1 etc.. I want this to work the same on local and live server. Is this what routes are for or should I use mod rewrite? I tried $Route->connect ('/*', array('controller'=>'pub', 'action'=>'display')); Much appreciated, Simon. --~--~-~--~~~---~--~~ 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: thread created count for cakephp sites
Thanks Chris. I do understand php closes connections when a script finish after you said so and I did some research. Now for the second question: The connections in cakephp are pass by reference. Will that result in some sleeping connections? On May 2, 10:08 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On 5/2/07, redhex <[EMAIL PROTECTED]> wrote: > > > My question here is this: > > Does cakephp close all connection when the script finish running? > > Current I am using mysql_connect. > > As far as I know, PHP does this for you automatically when a script > finishes executing. Not a CakePHP issue at all. > > -- > Chris Hartjes > > My motto for 2007: "Just build it, damnit!" > > @TheBallpark -http://www.littlehart.net/attheballpark > @TheKeyboard -http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Probem with custom query
Could anyone tell me why i get a strange result with my custom query in my model? I would like '#sql_4d2c_0' changed to the table name, a normal with a custom query... In the end I need a list with al the different dates in my table, without the time (date is a datetime cell). Could anyone help? Greetz, Bob $result = $this->query("SELECT DISTINCT(SUBSTRING(date,1,10)) as date FROM games WHERE date > '2006-08-01' ORDER BY date DESC"); print_r($result); Array ( [0] => Array ( [#sql_4d2c_0] => Array ( [date] => 2007-05-05 ) ) [1] => Array ( [#sql_4d2c_0] => Array ( [date] => 2007-03-10 ) ) [2] => Array ( [#sql_4d2c_0] => Array ( [date] => 2007-02-20 ) ) ) --~--~-~--~~~---~--~~ 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: tag behavior, where was it ?
Ahh, ignore me. It's because I had $actAs instead if $actsAs. Do'h On 5/2/07, Tane Piper <[EMAIL PROTECTED]> wrote: > This was exactly what I was looking to implement, I've gone ahead and > put it in but cannot seem to get it to work :( > > I've posted my Post model here: http://bin.cakephp.org/view/2083589101 > > In my Post table, I created a tags VARCHAR(255) field as the tutorial > doesn't explain what it needs to be, but thats what I assume it is. > All the rest are pretty standard but just incase I've included my SQL > in the paste. > > So anyway, the tags do seem to get saved in the posts table, but tags > don't get added to the tags table, also the join table is empty. > > Can anyone help? > > Tane > > On 5/2/07, djiize <[EMAIL PROTECTED]> wrote: > > > > The Bakery / Code / Behaviors / Simple Tagging Behavior > > http://bakery.cakephp.org/ > > > > On 2 mai, 11:06, thequietlab <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > > > I remember I've seen somewhere a tag behavior and now I can't find > > > it .. > > > > > > Can anyone help ? > > > > > > Thanks, > > > thequietlab > > > > > > > > > > > --~--~-~--~~~---~--~~ 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: how to populate a second select-box by selecting a first with ajax ?
Has someone solved that issue? In my app everything works, except that the value of the ajax-completed box doesn't pass to the controller... On 30 Mar, 17:35, "Lou" <[EMAIL PROTECTED]> wrote: > Hi, > > I am facing exactly the same problem and do not know at the moment how > I can solve it. > > Theselectboxadded withAjaxdoes not post data to the controller! > > Fred: Have you meanwhile solved this item? > > Thanks to all for help! --~--~-~--~~~---~--~~ 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: thread created count for cakephp sites
On 5/2/07, redhex <[EMAIL PROTECTED]> wrote: > My question here is this: > Does cakephp close all connection when the script finish running? > Current I am using mysql_connect. > As far as I know, PHP does this for you automatically when a script finishes executing. Not a CakePHP issue at all. -- Chris Hartjes My motto for 2007: "Just build it, damnit!" @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ 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: Having something dynamic into layout
Thanks for the reply, I solved throught the use of RequestAction and RenderElement :-) On 2 Mag, 14:57, francky06l <[EMAIL PROTECTED]> wrote: > Maybe using ajax call to update a div in your default layout, but > depends how often your layout is renderer (ie : mainly ajax calls or > not). You can also place a requestAction in your default layout to > retreive the data and display them. > > On May 2, 12:44 pm, "[EMAIL PROTECTED]" > > <[EMAIL PROTECTED]> wrote: > > Hi all, > > > I have my web application made in CakePHP. In the "default.thtml" I > > have a section where I need to load dynamically some categories from > > the DB...how can I do that? I have, of course, the Category model and > > the controller ready. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Fatal error: Class dbosource: Cannot inherit from undefined class datasource
Hi All I hav e aproblem with an app that I've developed using Cake and am now having to move from one server to another. Everything was working ok on the legacy server but on teh new server all I get is an error message: Fatal error: Class dbosource: Cannot inherit from undefined class datasource in /var/www/vhosts/theleadbusiness.com/httpdocs/cake/libs/ model/datasources/datasource.php on line 37 I've checked all the obvious things but I just can't see where the problem could be. Any help would be appreciated. --~--~-~--~~~---~--~~ 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: thread created count for cakephp sites
GaryCells: My questions was not to know about what those number means or to know more about mysql status. This is a cakephp forum and hence I am asking does cakephp closes connections when the script dies. So any other takers? Question again: Does cakephp close all connection when the script finish running? Current I am using mysql_connect. Post your http://www.ablewise.com/";>Free Classifieds at Ablewise.com On May 2, 4:09 pm, GreyCells <[EMAIL PROTECTED]> wrote: > Google is your friend: > > http://www.google.co.uk/search?q=mysql+threads_created > > First hit: > > http://jeremy.zawodny.com/blog/archives/000173.html > > ...might help. > > ~GreyCells > > On May 2, 7:21 am, redhex <[EMAIL PROTECTED]> wrote: > > > Hi all, > > I am doing monitoring for my site which is cake based and found the > > following: > > > mysql "show global status" > > > [158] Threads_cached 5 > > [159] Threads_connected 3 > > [160] Threads_created 1098 > > [161] Threads_running 2 > > > I am concern with the threads_created count. I guess it is a little on > > the high side. > > I am requesting my host to increase the thread_cache_size value at the > > meantime from 8 to 32. > > > My question here is this: > > Does cakephp close all connection when the script finish running? > > Current I am using mysql_connect. > > > My mysql queries are done via the model interface. i.e. $this- > > > >modelname->query( ); > > > All input and comments are welcomed. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
model->save & model->saveField : creates 2 extra rows ?!
Hi, At a loss on this one, I'm doing the following and the save is successfull but it's creating 2 extra 'blank' rows each time in the table $this->Modelname->id = $id; $this->Modelname->saveField('fieldname','data'); saves fine, but then creates 2 blank items in the table, each a few seconds after each other? Help!? --~--~-~--~~~---~--~~ 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: Ways to send emails in Cake 1.1.x
have you gone to the Bakery http://bakery.cakephp.org/ and searched for 'email' On 5/2/07, wasim <[EMAIL PROTECTED]> wrote: > > can you please tell me ..how can i send attachment with mail. > > On Apr 24, 12:30 am, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > > have you gone to the Bakery > > > > http://bakery.cakephp.org/ > > > > and searched for 'email' > > > > On 4/23/07, Damien <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > Hi, > > > > > I'm looking for the "best" way to send emails in Cake 1.1.x - I > > > noticed that 1.2 has anemailcomponent of some sort (although not > > > much documentation about it), but I really can't afford to hit bugs > > > that I'm likely to find in the alpha version so I need to stick with > > > 1.1.x for the moment. > > > > > Can anyone point me to some tutorials or reliable components etc. I > > > could use? > > > > > I'm looking for something quite reusable that I can use for things > > > like: > > > - Welcomeemail > > > - Password resetemail > > > > > Thanks, > > > Damien > > > > -- > > (the old fart) the advice is free, the lack of crankiness will cost you > > > > - its a fine line between a real question and an idiot > > > > http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/ > > > > > -- (the old fart) the advice is free, the lack of crankiness will cost you - its a fine line between a real question and an idiot http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/ --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
My Cake application needs to connect to Websphere MQ
Hello, I know this is not a real "Cake" question, but I need somehow to have a Cake based application sending data to a Websphere MQ environement. I was just wondering if someone has done this already or had some hints for the best way to do this ..?? Thanks --~--~-~--~~~---~--~~ 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: Having something dynamic into layout
Maybe using ajax call to update a div in your default layout, but depends how often your layout is renderer (ie : mainly ajax calls or not). You can also place a requestAction in your default layout to retreive the data and display them. On May 2, 12:44 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi all, > > I have my web application made in CakePHP. In the "default.thtml" I > have a section where I need to load dynamically some categories from > the DB...how can I do that? I have, of course, the Category model and > the controller ready. --~--~-~--~~~---~--~~ 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: webserver setup vs. installing cake
Hi, You should make your domain "redirect" to your webroot app : -| root of your domain ///webroot and use /img/picture.jpg else you have to put the full path (of the server) of your pictures : Ex. /var/www/your_web_space/cakephp/your_app/webroot/img/picture.jpg the last solution, use helpers : $html->image('picture.jpg') ... so you can't put it in the css file. Well the first solution is the most secure and the best way (I think). But you should have access to the apache config. (you can do it easily on 1and1. Few free providers allow this) May be there's other solutions. + On 2 mai, 11:10, korcs <[EMAIL PROTECTED]> wrote: > Hi Bakers, > > I have a little problem with installing cake on a webserver. > > I copied the files and set up the database.php. > > Then when I type : > > http:///my_cake_app > > then the standard welcome page is shown: > > "CakePHP Rapid Development > > Your database configuration file is present. > > Cake is able to connect to the database..."ect. > > I created then one controller, model and some views and now comes the > problem: > > when i type http:///my_cake_app/index.php/controllername/action > , a 404 error mesage comes back. > > The path should be ok, i set in the core.php the define ('BASE_URL', > env('SCRIPT_NAME')); line, because there is no mod_rewrite on the > server activated. > > Actually the problem is maybe becase of the following setting of the > webserver (that i cannot change): > > If i look in the browser the properties of one image, which location > should be the: > > http:///images > > I find that it is the: http:images > > Is it possible that cake won't run on this server? > > Any ideas? > > Best, > > korcs --~--~-~--~~~---~--~~ 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: hasMany's order question
Oh, you're right, I actually noticed it right after I posted but forgot to tell anyone, good catch none the less. :D Thank you. On Apr 22, 3:52 pm, gerbenzomp <[EMAIL PROTECTED]> wrote: > As far as I can see, you just forgot to set the order clause in > categoriescontroller: > > Change: > 'Blog.created DESC' > to > 'order' => 'Blog.created DESC' > > It must have been a slip of the keys, because in the BlogsController > you've done it the right way. > > Gerben. > > On 21 apr, 15:20, matlin <[EMAIL PROTECTED]> wrote: > > > The BlogsController:http://bin.cakephp.org/view/616075649 > > and the CategoriesController:http://bin.cakephp.org/view/1748048905 > > > Staring myself blind I think ... ;) > > > On Apr 21, 1:44 am, gerbenzomp <[EMAIL PROTECTED]> wrote: > > > > What is your current code? > > > > On 21 apr, 00:26,matlin<[EMAIL PROTECTED]> wrote: > > > > > A short question, does $hasMany honor the the 'order' directive? > > > > > It doesn't seem to be so. To me. I can't get it to work anyway. --~--~-~--~~~---~--~~ 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: Undefined property: hashkey when using othAuth
How right you where. Now all I have to do is to understand how permissions are supposed to work in othAuth ... When I print out using $othAuth->getData data["Group"]["Permission"] is empty. On May 1, 10:38 am, CraZyLeGs <[EMAIL PROTECTED]> wrote: > Likely you have an old version. Update your cake version, _viewVars > has been changed to viewVars. even in 1.1 > > On Apr 30, 9:44 am, matlin <[EMAIL PROTECTED]> wrote: > > > I tried to reply to a thread where people were having problems with > > oth_auth > > I got the error below when I started to use the component/helper and > > found a solotion. > > > Notice: Undefined property:hashkeyin > > /afs/su.se/services/www/hosts/www.lab.it.su.se/pages/cake/app/views/helpers/oth_auth.phponline > > 37 > > > I figured it out, in the oth_auth.php helper init function you need to > > change the check and loop from viewVars to _viewVars. > > > NOTE!! Add underscore to the variable. > > > I'm guessing this is something that could have been caught earlier if > > I had read the change log between 1.1 and 1.2 ... ;) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
ANN: CMS plugin for CakePHP "manager"
Hi, I would like to share with you the first public release of my Manager plug-in for CakePHP! It is a generic content editor for your Cake app. When installed, it reads your app's models and allows you to create, edit or delete items. It should work on any Cake app, but I have not been able to test this extensively. In fact: I've only made 1 Cake site where this plug-in is used as a backend... I hope people will share their experiences with me so I can improve on the Manager. Please feel free to try it and give comment or suggestions. You can download the plugin at: http://www.dekeijzer.org/downloads/manager.html Joost --~--~-~--~~~---~--~~ 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: Sessions not carying over?
I finally got it working. Cakephp was deleting my session everytime I went to login page somehow. I dont have delete session in the controller class UsersController extends AppController { var $name = 'Users'; var $scaffold; function index() { } function login() { $error = false; $success = false; if (!empty($this->data)) { $someone = $this->User->findByUsername($this- >params['data']['User']['username']); if(is_array($someone)) { if(md5($this->data['User']['password']) == $someone['User']['password']) { $success = true; } } if($success) { $this->Session->write('User', $someone['User']); $this->redirect('/hunters/index'); return true; } else { $this->Session->setFlash("Login Failed"); } } $this->set('error', $error); } function logout() { $this->Session->delete('User'); $this->Session->setFlash('Logged out'); $this->redirect('/'); return true; } } Does Cakephp preload functions or something? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Having something dynamic into layout
Hi all, I have my web application made in CakePHP. In the "default.thtml" I have a section where I need to load dynamically some categories from the DB...how can I do that? I have, of course, the Category model and the controller ready. --~--~-~--~~~---~--~~ 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: tag behavior, where was it ?
This was exactly what I was looking to implement, I've gone ahead and put it in but cannot seem to get it to work :( I've posted my Post model here: http://bin.cakephp.org/view/2083589101 In my Post table, I created a tags VARCHAR(255) field as the tutorial doesn't explain what it needs to be, but thats what I assume it is. All the rest are pretty standard but just incase I've included my SQL in the paste. So anyway, the tags do seem to get saved in the posts table, but tags don't get added to the tags table, also the join table is empty. Can anyone help? Tane On 5/2/07, djiize <[EMAIL PROTECTED]> wrote: > > The Bakery / Code / Behaviors / Simple Tagging Behavior > http://bakery.cakephp.org/ > > On 2 mai, 11:06, thequietlab <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I remember I've seen somewhere a tag behavior and now I can't find > > it .. > > > > Can anyone help ? > > > > Thanks, > > thequietlab > > > > > --~--~-~--~~~---~--~~ 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: tag behavior, where was it ?
The Bakery / Code / Behaviors / Simple Tagging Behavior http://bakery.cakephp.org/ On 2 mai, 11:06, thequietlab <[EMAIL PROTECTED]> wrote: > Hi, > > I remember I've seen somewhere a tag behavior and now I can't find > it .. > > Can anyone help ? > > Thanks, > thequietlab --~--~-~--~~~---~--~~ 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: PayPal Payflow Pro Integration with CakePHP
I'm working on something similar to this for an app I'm building and then there is also the Bakesale project. At the moment I have a Paypal integration and an Authorize.net (AIM) integration done and both have been working really well for event registrations through eventhq.co.uk. I also need to do a Protx integration for a new client. My approach is in the form of a payment plugin because the eventhq allows users to choose which payment processor they want to use and so I need to offer more than one. But, I'm a bit unhappy because the plugin needs to have too much information about the application it is supporting to be easy to drop in to other apps currently in the planning stage. I recently spent some time looking through the active merchant gem abstracted out of Shopify and started "doodling" code to try to make a vendors package along similar lines. Its very early days though... An effort to develop a payments package would be good. Cheers, Ian On May 2, 8:05 am, "Tane Piper" <[EMAIL PROTECTED]> wrote: > That's great news. Makes me think though, maybe a team effort would > be nice to create a "payments" components package. > > We currently use Worldpay for our transactions and I'm going to work > on some code soon to integrate it, but it would be nice to offer a > range of payment options (Paypal, Worldpay, Nochex, etc) and just be > able to drop the components into any apps. > > Anyone up for it? > > Tane > > On 5/2/07, Mariano Iglesias <[EMAIL PROTECTED]> wrote: > > > > > This is much much simpler than Direct Payment. God bless REST :) > > > If I can manage to build myself a sandbox account (is it possible to use > > their pilot server with a user just for pilot, or do you need a real Payflow > > account to start playing), then I'll build a CakePHP component for it. > > > I'll try to make it as similar as possible to the DirectPayment API > > component, and in fact see if I can manage to include this API inside the > > Direct Payment, so you can switch between methods at runtime. > > > Thanks for the info! > > > -MI > > > --- > > > Remember, smart coders answer ten questions for every question they ask. > > So be smart, be cool, and share your knowledge. > > > BAKE ON! > > > blog:http://www.MarianoIglesias.com.ar > > > -Mensaje original- > > De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre > > de uk_maul > > Enviado el: Mi?rcoles, 02 de Mayo de 2007 02:39 a.m. > > Para: Cake PHP > > Asunto: Re: PayPal Payflow Pro Integration with CakePHP > > > Just an update. We were having trouble installing the Proflow SDK on > > Linux. Today we heard back from Paypal that they have obsoleted the > > Prolfow SDK and are encouraging everyone to use HTTPS/Curl for future > > Payflow integration. > > >http://www.pdncommunity.com/pdn/board/message?board.id=payflow&messag... > > 0 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
webserver setup vs. installing cake
Hi Bakers, I have a little problem with installing cake on a webserver. I copied the files and set up the database.php. Then when I type : http:///my_cake_app then the standard welcome page is shown: "CakePHP Rapid Development Your database configuration file is present. Cake is able to connect to the database..."ect. I created then one controller, model and some views and now comes the problem: when i type http:///my_cake_app/index.php/controllername/action , a 404 error mesage comes back. The path should be ok, i set in the core.php the define ('BASE_URL', env('SCRIPT_NAME')); line, because there is no mod_rewrite on the server activated. Actually the problem is maybe becase of the following setting of the webserver (that i cannot change): If i look in the browser the properties of one image, which location should be the: http:///images I find that it is the: http:images Is it possible that cake won't run on this server? Any ideas? Best, korcs --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
tag behavior, where was it ?
Hi, I remember I've seen somewhere a tag behavior and now I can't find it .. Can anyone help ? Thanks, thequietlab --~--~-~--~~~---~--~~ 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: Sessions not carying over?
Ok this is my login page: /admin/index.php/users/login When I redirect to: /admin/index.php/users/index I can print the session onscreen, so this means its working. But the moment I goto /admin/ The root of the site then the session does not appear. Anybody got a solution for this? --~--~-~--~~~---~--~~ 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: Cannot add new records
hi Danielle, generally i would suggest to separate the views for these different actions. For example the edit view needs to contain the item ID (as a hidden field or whatever) while the add view doesn't. However you can include shared elements as "elements". Try to post some code, part of your view as well as your action code, otherwise debugging is almost impossible, at least for me :-) cheers, jyrgen --~--~-~--~~~---~--~~ 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: Ways to send emails in Cake 1.1.x
can you please tell me ..how can i send attachment with mail. On Apr 24, 12:30 am, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > have you gone to the Bakery > > http://bakery.cakephp.org/ > > and searched for 'email' > > On 4/23/07, Damien <[EMAIL PROTECTED]> wrote: > > > > > > > Hi, > > > I'm looking for the "best" way to send emails in Cake 1.1.x - I > > noticed that 1.2 has anemailcomponent of some sort (although not > > much documentation about it), but I really can't afford to hit bugs > > that I'm likely to find in the alpha version so I need to stick with > > 1.1.x for the moment. > > > Can anyone point me to some tutorials or reliable components etc. I > > could use? > > > I'm looking for something quite reusable that I can use for things > > like: > > - Welcomeemail > > - Password resetemail > > > Thanks, > > Damien > > -- > (the old fart) the advice is free, the lack of crankiness will cost you > > - its a fine line between a real question and an idiot > > http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/ --~--~-~--~~~---~--~~ 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: thread created count for cakephp sites
Google is your friend: http://www.google.co.uk/search?q=mysql+threads_created First hit: http://jeremy.zawodny.com/blog/archives/000173.html ...might help. ~GreyCells On May 2, 7:21 am, redhex <[EMAIL PROTECTED]> wrote: > Hi all, > I am doing monitoring for my site which is cake based and found the > following: > > mysql "show global status" > > [158] Threads_cached 5 > [159] Threads_connected 3 > [160] Threads_created 1098 > [161] Threads_running 2 > > I am concern with the threads_created count. I guess it is a little on > the high side. > I am requesting my host to increase the thread_cache_size value at the > meantime from 8 to 32. > > My question here is this: > Does cakephp close all connection when the script finish running? > Current I am using mysql_connect. > > My mysql queries are done via the model interface. i.e. $this- > > >modelname->query( ); > > All input and comments are welcomed. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Cannot add new records
I am using the same view for both add and edit. When I click submit with an existing record everything works as it should and the changes are saved or the validation errors are returned. When I click submit with a new record - nothing happens the form is refreshed as if I had just called the action. Through some debugging I have determined that the $this->data is not being populated (neither is $this->params['form']) I have this setup on numerous forms none of which are working - this process was working correctly last week but many changes have been made since then by several programmers. Cake Version 1.2.0.4798 appache 2.2 and mysql 4.1 Thanks Danielle --~--~-~--~~~---~--~~ 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: PayPal Payflow Pro Integration with CakePHP
That's great news. Makes me think though, maybe a team effort would be nice to create a "payments" components package. We currently use Worldpay for our transactions and I'm going to work on some code soon to integrate it, but it would be nice to offer a range of payment options (Paypal, Worldpay, Nochex, etc) and just be able to drop the components into any apps. Anyone up for it? Tane On 5/2/07, Mariano Iglesias <[EMAIL PROTECTED]> wrote: > > This is much much simpler than Direct Payment. God bless REST :) > > If I can manage to build myself a sandbox account (is it possible to use > their pilot server with a user just for pilot, or do you need a real Payflow > account to start playing), then I'll build a CakePHP component for it. > > I'll try to make it as similar as possible to the DirectPayment API > component, and in fact see if I can manage to include this API inside the > Direct Payment, so you can switch between methods at runtime. > > Thanks for the info! > > -MI > > --- > > Remember, smart coders answer ten questions for every question they ask. > So be smart, be cool, and share your knowledge. > > BAKE ON! > > blog: http://www.MarianoIglesias.com.ar > > > -Mensaje original- > De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre > de uk_maul > Enviado el: Mi�rcoles, 02 de Mayo de 2007 02:39 a.m. > Para: Cake PHP > Asunto: Re: PayPal Payflow Pro Integration with CakePHP > > Just an update. We were having trouble installing the Proflow SDK on > Linux. Today we heard back from Paypal that they have obsoleted the > Prolfow SDK and are encouraging everyone to use HTTPS/Curl for future > Payflow integration. > > http://www.pdncommunity.com/pdn/board/message?board.id=payflow&message.id=61 > 0 > > > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---