Re: controller name
I think your problem can be solved by editting inflections.php, which is located in app/config directory. To be more precisely, add niche - niches to your $irregularPlural array like this: $irregularPlural = array('niche' = 'niches'); It would work seamlessly then. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: controller name
Both $irregularPlural = array('niche' = 'niches'); or var $uses = array('Niche'); works great Thanks for the help !!! Andras --~--~-~--~~~---~--~~ 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: Newbie Introduction Book ... reviews anyone?
I'd take a look too... saschafroehlich AT gmail DOT com Am 28.07.2007 um 06:34 schrieb Dr. Tarique Sani: On 7/27/07, Dave [EMAIL PROTECTED] wrote: I'm working on a Newbie's Introduction to CakePHP book and would like to invite anyone who would like to review it for errors or considerations I may have overlooked. Let me know, and I'll send you a PDF copy of the current edition. Has it been blessed by the Cake Foundation? If no then get it blessed before asking anyone to spend time on something which possibly may be still born Tarique -- = Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz: http://sanisoft.com = --~--~-~--~~~---~--~~ 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: paginator helper: how to use it without a model?
anyone :o( --~--~-~--~~~---~--~~ 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: paginator helper: how to use it without a model?
On 7/27/07, cakeFreak [EMAIL PROTECTED] wrote: Should I build a behavihour and a model for the controller that retrieves the webservice data, and then use: Create a model for your webservice and that model should have atleast paginateCount and paginate methods HTH Tarique -- = Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz: http://sanisoft.com = --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
need possible solution to remove VALUES being quoted
Hello Groupies, I have created and AES encryption behavior to use MySQL AES_ENCRYPT and AES_DECRYPT for an array of fields. Everything is working except that on the save I can't find a way to get Cake not to add quotes around the values. So instead of getting the values with AES_ENCRYPT(value,key) I am getting 'AES_ENCRYPT(value,key)'. I have till Monday to resolve this because of deadlines on the project. Any assistance would be greatfull. ~rpeterson --~--~-~--~~~---~--~~ 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: Newbie Introduction Book ... reviews anyone?
I would like that too. toni.leivonen AT ippnet DOT fi --~--~-~--~~~---~--~~ 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: Newbie Introduction Book ... reviews anyone?
I would like to take a look :D kinda of a newb my self. On 27 Jul., 20:14, Dave [EMAIL PROTECTED] wrote: I'm working on a Newbie's Introduction to CakePHP book and would like to invite anyone who would like to review it for errors or considerations I may have overlooked. Let me know, and I'll send you a PDF copy of the current edition. --~--~-~--~~~---~--~~ 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: need possible solution to remove VALUES being quoted
Also, I am using Cake 1.2 latest, and here is the behavior for reference, http://bin.cakephp.org/view/166336900 --~--~-~--~~~---~--~~ 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: Newbie Introduction Book ... reviews anyone?
Me too please ;) bethanne1985 AT gmail.com On Jul 28, 7:34 am, hb [EMAIL PROTECTED] wrote: I would like to take a look :D kinda of a newb my self. On 27 Jul., 20:14, Dave [EMAIL PROTECTED] wrote: I'm working on a Newbie's Introduction to CakePHP book and would like to invite anyone who would like to review it for errors or considerations I may have overlooked. Let me know, and I'll send you a PDF copy of the current edition. --~--~-~--~~~---~--~~ 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: Multiple field values in select box?
Not exactly a cake solution, but in the past I've created a database view an concatenated the two columns I want in the SQL (ex) concat(last_name, ', ', first_name) and then passed the view results to generateList(). Perhpas you could do the same with query() and pass those results to generateList(), but I've not tried that method so can't say it would work, just thinking out loud. Hope that is helpful. On Jul 27, 11:17 pm, Beertigger [EMAIL PROTECTED] wrote: Is there any way to get values from multiple fields into a select box? After much searching, I've come to the conclusion I'm not going to find the answer without appealing to those far wiser than myself... Here's an old thread for reference, which discusses, w/o resolution, exactly what I'm looking for: * Is it possible to use multiple fields to make up the value of the select box? Such that it would come out looking something like option value='field1value'field2value - field3value/option http://groups.google.com/group/cake-php/browse_thread/thread/50a2ecaf... So, just wondering if anyone ever made any progress on this. Saw the code in trac, but it seems to be for 1.2 (?). Couldn't get it to work, anyway. I'd find this functionality very valuable Thanks to anyone for any 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: Did I break my Router or find a bug?
On Jul 24, 11:04 am, webmosher [EMAIL PROTECTED] wrote: Been playing with integrating the 1.2 Auth Acl components into an ongoing project. I've encountered an error in the component when it calls the private _normalizeUrl method when running in DEBUG modes. This does not appear to popup when in a DEBUG of 0. However, it does dump the entire system on an Auth redirect. I have encountered the same problem when trying to activate the Auth component. I got about as far as you did in my attempts to trace this back. Obviously $paths['base'] is empty and it can't be for the stristr operation, but it doesn't seem like $paths['base'] being empty is a bad thing. I had assumed this was a bug in this very new component, so I figured I would just be patient for the time being. My only concern was that it hadn't been posted about previously, so perhaps there is something I am doing that is finding an edge case that should be avoided. Still, it sounds like Fred is doing something as mundane as I, so perhaps it isn't an obscure edge case. Yes, nothing to add and no help to provide, just another voice with this problem. -Sam --~--~-~--~~~---~--~~ 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: Newbie Introduction Book ... reviews anyone?
i would like to check it out ..:) junal53 at gmail dot com On Jul 28, 12:14 am, Dave [EMAIL PROTECTED] wrote: I'm working on a Newbie's Introduction to CakePHP book and would like to invite anyone who would like to review it for errors or considerations I may have overlooked. Let me know, and I'll send you a PDF copy of the current edition. --~--~-~--~~~---~--~~ 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: Newbie Introduction Book ... reviews anyone?
I'd love to see it as well. [EMAIL PROTECTED] On Jul 27, 2:14 pm, Dave [EMAIL PROTECTED] wrote: I'm working on a Newbie's Introduction to CakePHP book and would like to invite anyone who would like to review it for errors or considerations I may have overlooked. Let me know, and I'll send you a PDF copy of the current edition. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Random Image Helper
Hi everyone, I made a helper for random images It's at http://mikeski.net/new/snippets/view/24 Enjoy! --~--~-~--~~~---~--~~ 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: Newbie Introduction Book ... reviews anyone?
I'd love to have a copy, raymond.h.thomas AT gmail D0T com On Jul 27, 1:14 pm, Dave [EMAIL PROTECTED] wrote: I'm working on a Newbie's Introduction to CakePHP book and would like to invite anyone who would like to review it for errors or considerations I may have overlooked. Let me know, and I'll send you a PDF copy of the current edition. --~--~-~--~~~---~--~~ 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: Newbie Introduction Book ... reviews anyone?
On 7/28/07, Dr. Tarique Sani [EMAIL PROTECTED] wrote: On 7/27/07, Dave [EMAIL PROTECTED] wrote: I'm working on a Newbie's Introduction to CakePHP book and would like to invite anyone who would like to review it for errors or considerations I may have overlooked. Let me know, and I'll send you a PDF copy of the current edition. Has it been blessed by the Cake Foundation? If no then get it blessed before asking anyone to spend time on something which possibly may be still born The blessing needs to be granted in order to use CakePHP in the name of the book or the CakePHP logo. Yes, this is required. -- Chris Hartjes Senior Developer Cake Development Corporation 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: Newbie Introduction Book ... reviews anyone?
Can some one just post it somewhere so we don't get an additional 50 replies to this thread? :) -- John On Jul 28, 2007, at 10:37 AM, [EMAIL PROTECTED] wrote: I'd love to have a copy, raymond.h.thomas AT gmail D0T com On Jul 27, 1:14 pm, Dave [EMAIL PROTECTED] wrote: I'm working on a Newbie's Introduction to CakePHP book and would like to invite anyone who would like to review it for errors or considerations I may have overlooked. Let me know, and I'll send you a PDF copy of the current edition. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
AssetPackager for CakePHP
Driven by ySlow[1] plastering an F on my application because of so many JS and CSS files (not to mention so much whitespace in those files), I really needed something like the AssetPackager plugin for Rails[2]. So last night and this morning I cobbled together a CakePHP version of AssetPackager. It uses a console script and a custom helper to do the job, plus (if you have PHP5) uses JSMin to minimize the javascript. A full write up and download is available here: http://blog.bradleyboy.com/2007/07/28/assetpackager-for-cakephp/ [1] http://developer.yahoo.com/yslow/ [2] http://synthesis.sbecker.net/pages/asset_packager --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Reusing view code
Hello, I'm struggling with my views. I can't seem to find the proper way to reuse view code so what i am doing now is a very nasty: ?php require_once(VIEWS .$this-viewPath.'/set_setting.ctp'); ? I am guessing that this is not the intended way to do It but i can't seem to figure out how i am supposed to resuse my views. The thing is, I got a the controller action - user_settings/ mySettings'. The view my_settings.ctp, contains several ajax forms, each with different actions ('setSetting', 'changePassword', 'setInformation' etc.). These actions need a view to display the form after perform the user submission of data and reload the form properly afterwards. So If i don't do the above include of my forms i would be forces to have the code in both my_settings.ctp and in each individual action view. Does anybody have a better solution than the above require/include? regards, 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: AssetPackager for CakePHP
Awesome. Simply awesome. Thank you. --~--~-~--~~~---~--~~ 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 PHP running dead slow !-- 60.6669s --
Hi, Cake PHP is running dead slow on production server, plz check it yourself ... http://www.voiceofkhanqah.com, On load, at bottom of page it shows ... !-- 60.6669s -- For phpinfo() ... http://www.voiceofkhanqah.com/afnan.php For debug level 3 logs of main page ... - 3 queries took 57 ms Nr Query Error Affected Num. rows Took (ms) 1 DESCRIBE `majalis` 6 6 18 2 DESCRIBE `users` 5 5 29 3 SELECT `Majlis`.`id`, `Majlis`.`title`, `Majlis`.`start_time`, `Majlis`.`end_time`, `Majlis`.`status`, `Majlis`.`weekdays` FROM `majalis` AS `Majlis` WHERE status=1 5 5 10 other static content (htm) on same server runs comparatively faster .. http://www.voiceofkhanqah.com/old/ please reply what i m missing, thanks in advance. Afnan. --~--~-~--~~~---~--~~ 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: Reusing view code
I think this would be likely best case $this-viewPath = 'anothercontrollers_folder'; // not needed if file is in controllers viewPath already $this-render('view_file', 'ajax'); // don't use extention ('ajax' is the layout name) Also read up on RequestHandler, it might help you automate this, maybe overwrite beforeRender in app_controller. On Jul 28, 12:16 pm, safl [EMAIL PROTECTED] wrote: Hello, I'm struggling with my views. I can't seem to find the proper way to reuse view code so what i am doing now is a very nasty: ?php require_once(VIEWS .$this-viewPath.'/set_setting.ctp'); ? I am guessing that this is not the intended way to do It but i can't seem to figure out how i am supposed to resuse my views. The thing is, I got a the controller action - user_settings/ mySettings'. The view my_settings.ctp, contains several ajax forms, each with different actions ('setSetting', 'changePassword', 'setInformation' etc.). These actions need a view to display the form after perform the user submission of data and reload the form properly afterwards. So If i don't do the above include of my forms i would be forces to have the code in both my_settings.ctp and in each individual action view. Does anybody have a better solution than the above require/include? regards, 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: Turn off writing to debug.log
What version of cake? I looked through the code.. couldn't find anything clear.. Try putting one or both of these somewhere in bootstrap perhaps... Configure::write('debug', 0); Configure::write('log', 0); On Jul 27, 1:46 pm, starkey [EMAIL PROTECTED] wrote: Anyone know how to turn off writing to the debug.log? I've set define('DEBUG', 0); and just about everything else I can think of off. 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: Reusing view code
Also I would look at Elements. Here is a very good article on the sort of thing you are trying to do http://bakery.cakephp.org/articles/view/creating-reusable-elements-with-requestaction Geoff -- http://lemoncake.wordpress.com On Jul 29, 8:05 am, rtconner [EMAIL PROTECTED] wrote: I think this would be likely best case $this-viewPath = 'anothercontrollers_folder'; // not needed if file is in controllers viewPath already $this-render('view_file', 'ajax'); // don't use extention ('ajax' is the layout name) Also read up on RequestHandler, it might help you automate this, maybe overwrite beforeRender in app_controller. On Jul 28, 12:16 pm, safl [EMAIL PROTECTED] wrote: Hello, I'm struggling with my views. I can't seem to find the proper way to reuse view code so what i am doing now is a very nasty: ?php require_once(VIEWS .$this-viewPath.'/set_setting.ctp'); ? I am guessing that this is not the intended way to do It but i can't seem to figure out how i am supposed to resuse my views. The thing is, I got a the controller action - user_settings/ mySettings'. The view my_settings.ctp, contains several ajax forms, each with different actions ('setSetting', 'changePassword', 'setInformation' etc.). These actions need a view to display the form after perform the user submission of data and reload the form properly afterwards. So If i don't do the above include of my forms i would be forces to have the code in both my_settings.ctp and in each individual action view. Does anybody have a better solution than the above require/include? regards, 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 -~--~~~~--~~--~--~---
Cake Generating Odd Session Errors
When i call a renderElement function, it is generating Session related issues. Code: div class=store_menu ?php echo $this-renderElement('store_nav');? /div Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\apache2triad\htdocs\sonsofmaxwell\som\app \views\helpers\fck.php:44) in C:\apache2triad\htdocs\sonsofmaxwell\som \cake\libs\session.php on line 154 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C: \apache2triad\htdocs\sonsofmaxwell\som\app\views\helpers\fck.php:44) in C:\apache2triad\htdocs\sonsofmaxwell\som\cake\libs\session.php on line 154 Warning: Cannot modify header information - headers already sent by (output started at C:\apache2triad\htdocs\sonsofmaxwell\som\app \views\helpers\fck.php:44) in C:\apache2triad\htdocs\sonsofmaxwell\som \cake\libs\session.php on line 155 I didn't receive these errors until i moved the code over to an Element: div id=store-navigation ?php $categories = $this-requestAction('categories/index');? h2Categories/h2 ul ?php foreach ($categories as $category): ? li?php echo $html-link($category['Category']['name'],'/products/ index/' . $category['Category']['id'])?/li ?php endforeach; ? /ul h2Cart Links/h2 ul li?php echo $html-link('View Cart', '/', array('title' = 'View Cart')) ?/li li?php echo $html-link('My Account', '/', array('title' = 'My Account')) ?/li /ul h2Customer Service/h2 ul li?php echo $html-link('Return Policy', '/', array('title' = 'Return Policy')) ?/li /ul h2Shipping Information/h2 ul li?php echo $html-link('Shipping Rates', '/', array('title' = 'Shipping Rates')) ?/li /ul /div --~--~-~--~~~---~--~~ 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 Generating Odd Session Errors
On 7/29/07, r557 [EMAIL PROTECTED] wrote: Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\apache2triad\htdocs\sonsofmaxwell\som\app \views\helpers\fck.php:44) It means what it says - your fck helper is messing up stuff HTH Tarique -- = Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz: http://sanisoft.com = --~--~-~--~~~---~--~~ 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 Generating Odd Session Errors
On 7/29/07, r557 [EMAIL PROTECTED] wrote: Yes, Aware of this. Then fix it - start with moving back the code in view - I think the errors will still occur if the fck helper is an issue... work forwards from that point... T -- = Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz: http://sanisoft.com = --~--~-~--~~~---~--~~ 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 PHP running dead slow !-- 60.6669s --
Just need to confirm... is there some known issue of cake with Apache1.3/CGI . i have also asked server hosting company to check load. sometimes it takes 2-3s and sometimes 20-60s for php exec. plz reply if someone have any idea ... On Jul 28, 11:44 pm, AzGhanv/. [EMAIL PROTECTED] wrote: Hi, Cake PHP is running dead slow on production server, plz check it yourself ...http://www.voiceofkhanqah.com, On load, at bottom of page it shows ... !-- 60.6669s -- For phpinfo() ...http://www.voiceofkhanqah.com/afnan.php For debug level 3 logs of main page ... - 3 queries took 57 ms Nr Query Error Affected Num. rows Took (ms) 1 DESCRIBE `majalis` 6 6 18 2 DESCRIBE `users` 5 5 29 3 SELECT `Majlis`.`id`, `Majlis`.`title`, `Majlis`.`start_time`, `Majlis`.`end_time`, `Majlis`.`status`, `Majlis`.`weekdays` FROM `majalis` AS `Majlis` WHERE status=1 5 5 10 other static content (htm) on same server runs comparatively faster ..http://www.voiceofkhanqah.com/old/ please reply what i m missing, thanks in advance. Afnan. --~--~-~--~~~---~--~~ 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 Generating Odd Session Errors
I've followed the tutorial for the fck helper from the bakery http://bakery.cakephp.org/articles/view/using-fckeditor-with-cakephp and included the helper in my app_controller as several controllers will use this helper. It only creates the error on this one page that is using a requestAction renderElement, but nowhere in either is it actually trying to load the fck editor. this is the helper causing the issue on one page only. for some reason, my renderElement is generating a session warning because of this even though it's not trying to load the fck editor into any text areas. every other area is functional, as well as the editor loads properly when called. ?php class FckHelper extends HtmlHelper { function load($id, $toolbar = 'Default') { $did = Inflector::camelize(str_replace('/', '_', $id)); $js = $this-webroot.'js/'; returnFCK_CODE script type=text/javascript fckLoader_$did = function () { var bFCKeditor_$did = new FCKeditor('$did'); bFCKeditor_$did.BasePath = '$js'; bFCKeditor_$did.ToolbarSet = '$toolbar'; bFCKeditor_$did.ReplaceTextarea(); } fckLoader_$did(); /script FCK_CODE; } function fileBrowserInput($fieldName, $htmlAttributes = array(), $return = false) { $output = $this-input($fieldName, $htmlAttributes, $return); if (!isset($htmlAttributes['id'])) { $htmlAttributes['id'] = $this-model . Inflector::camelize($this-field); } $output .= 'script type=text/javascript'; $output .= //![CDATA[\n; $output .= function openFileBrowser(id){\n; $output .= var fck = new FCKeditor(id);\n; $output .= fck.BasePath = '.$this-webroot.js/'\n; $output .= var url = fck.BasePath + 'editor/filemanager/ browser/default/browser.html?Type=ImageConnector=connectors/php/ connector.php';\n; $output .= var sOptions = 'toolbar=no,status=no,resizable=yes,dependent=yes,scrollbars=yes';\n; $output .= sOptions += ',width=640';\n; $output .= sOptions += ',height=480';\n; $output .= window.SetUrl = function(fileUrl){\n; $output .= \$(id).value = fileUrl;\n; $output .= }\n; $output .= var oWindow = window.open( url, 'FCKBrowseWindow', sOptions ) ;\n; $output .= }\n; $output .= //]]\n; $output .= '/script'; $output .= 'a href=# onclick=openFileBrowser(\''. $htmlAttributes['id'].'\'); return false;select an image.../a'; return $output; } } ? On Jul 28, 11:47 pm, Dr. Tarique Sani [EMAIL PROTECTED] wrote: On 7/29/07, r557 [EMAIL PROTECTED] wrote: Yes, Aware of this. Then fix it - start with moving back the code in view - I think the errors will still occur if the fck helper is an issue... work forwards from that point... T -- = Cheesecake-Photoblog:http://cheesecake-photoblog.org PHP for E-Biz:http://sanisoft.com = --~--~-~--~~~---~--~~ 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 do you usually create admin area on site with CakePHP?
Thanks, but I think that it's very poor admin interface and all my contollers will be mixed with checks of privileges. And in point of fact Admin Interface is simply different application but with same models On 23 июл, 18:27, cauld [EMAIL PROTECTED] wrote: Have a look at the advanced routing configuration in section 4 in the manual (http://manual.cakephp.org/chapter/configuration). This should give you what you need. On Jul 22, 10:49 pm, Pento [EMAIL PROTECTED] wrote: So, there are usual site andadminarea for add some news, materials and so on. It's good idea to make thisadminarea on subdomain (for example, admin.somesite.org)? As I think it's only one way for it. --~--~-~--~~~---~--~~ 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: Newbie Introduction Book ... reviews anyone?
Only a couple chapters here: http://www.davidgoldingdesign.com/newbie-cakephp.pdf On Jul 28, 11:45 am, John David Anderson [EMAIL PROTECTED] wrote: Can some one just post it somewhere so we don't get an additional 50 replies to this thread? :) -- John On Jul 28, 2007, at 10:37 AM, [EMAIL PROTECTED] wrote: I'd love to have a copy, raymond.h.thomas AT gmail D0T com On Jul 27, 1:14 pm, Dave [EMAIL PROTECTED] wrote: I'm working on a Newbie's Introduction to CakePHP book and would like to invite anyone who would like to review it for errors or considerations I may have overlooked. Let me know, and I'll send you a PDF copy of the current edition. --~--~-~--~~~---~--~~ 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: Newbie Introduction Book ... reviews anyone?
Ah, well, there is a little more involved when it comes to trademark and patent law. But yes, the logo is definitely owned and must be blessed. However, in a past project I worked on, Hasbro games tried to convince my publisher that they couldn't use the word Monopoly in the title of a book and lost the case flat out. So it is a little less cut-and-dry legally when referring to something rather than taking the logo, etc. On Jul 28, 11:44 am, Chris Hartjes [EMAIL PROTECTED] wrote: On 7/28/07, Dr. Tarique Sani [EMAIL PROTECTED] wrote: On 7/27/07, Dave [EMAIL PROTECTED] wrote: I'm working on a Newbie's Introduction to CakePHP book and would like to invite anyone who would like to review it for errors or considerations I may have overlooked. Let me know, and I'll send you a PDF copy of the current edition. Has it been blessed by the Cake Foundation? If no then get it blessed before asking anyone to spend time on something which possibly may be still born The blessing needs to be granted in order to use CakePHP in the name of the book or the CakePHP logo. Yes, this is required. -- Chris Hartjes Senior Developer Cake Development Corporation 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: Newbie Introduction Book ... reviews anyone?
On 7/29/07, Dave [EMAIL PROTECTED] wrote: So it is a little less cut-and-dry legally when referring to something rather than taking the logo, etc. Well I remarked only because there has been precedences where contributions have been quashed (well intentioned maybe) - I would be glad if someone did take the *fair use* issue WRT to CakePHP and CakePHP logo and thrashed it out good and final. Even as my understanding of fair use goes - referring to a trademark while describing something at the same time acknowledging the TMs to the owners is fair use. That said Monopoly is a common use word where as CakePHP is not. Tarique -- = Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz: http://sanisoft.com = --~--~-~--~~~---~--~~ 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: Newbie Introduction Book ... reviews anyone?
I read http://www.davidgoldingdesign.com/newbie-cakephp.pdf and applaud your effort. I would point out if you are trying to provide guidance for people new to Cake and PHP you really ought to do away with asp/short tags in your examples. Just a thought. On Jul 28, 9:57 pm, Dave [EMAIL PROTECTED] wrote: Ah, well, there is a little more involved when it comes to trademark and patent law. But yes, the logo is definitely owned and must be blessed. However, in a past project I worked on, Hasbro games tried to convince my publisher that they couldn't use the word Monopoly in the title of a book and lost the case flat out. So it is a little less cut-and-dry legally when referring to something rather than taking the logo, etc. On Jul 28, 11:44 am, Chris Hartjes [EMAIL PROTECTED] wrote: On 7/28/07, Dr. Tarique Sani [EMAIL PROTECTED] wrote: On 7/27/07, Dave [EMAIL PROTECTED] wrote: I'm working on a Newbie's Introduction to CakePHP book and would like to invite anyone who would like to review it for errors or considerations I may have overlooked. Let me know, and I'll send you a PDF copy of the current edition. Has it been blessed by the Cake Foundation? If no then get it blessed before asking anyone to spend time on something which possibly may be still born The blessing needs to be granted in order to use CakePHP in the name of the book or the CakePHP logo. Yes, this is required. -- Chris Hartjes Senior Developer Cake Development Corporation 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: Newbie Introduction Book ... reviews anyone?
On 7/29/07, efournier [EMAIL PROTECTED] wrote: I read http://www.davidgoldingdesign.com/newbie-cakephp.pdf and applaud your effort. I would point out if you are trying to provide guidance for people new to Cake and PHP you really ought to do away with asp/short tags in your examples. Just a thought. +1 stick to good coding practices all around Also write for V1.2 - no point in writing for something soon to be deprecated. T -- = Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz: http://sanisoft.com = --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---