Kindly Hep Me !!
Hello Every one !! warm greetings from me.. i am sorry to post such a post which might be not suitable for anybody but i wann to know..!! I have just learn PHP it been 3 month now.. I want to know about Cake_PHP ,PHP NUke i dont know what is this all about kindly help me on it.. I will be highly Appriciated if you comment on this post !! Thanks Rizwan --~--~-~--~~~---~--~~ 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 1.2
On 1/15/07, Cheeze <[EMAIL PROTECTED]> wrote: Right now I'm helping document the code (and hopefully a developer/user guide in the future) for Bakesale with a few hours of work every week. Been really busy but I still want to contribute in some ways. Nice to know that - in many ways being consistent in documentation is much better than being exhaustive So what I do is to document two files every week (at least). With the complexity of a framework I guess that'll take longer. But my point is maybe some system can be put in place such that the documentation can be put up bit by bit? What I can think of is a wiki which is maintained by a group of volunteers who follow a set of guidelines, with a section where Random Joe can contribute as well. Cheers Tarique -- = PHP Applications for E-Biz: http://www.sanisoft.com Cheesecake-Photoblog: http://cheesecake-photoblog.org = --~--~-~--~~~---~--~~ 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: Bakesale vs IIS
Juan, This was not enough to solve my problem. I continue searching solutions. I thank its reply. []´s, Aldemir On 1/13/07, Juan Basso <[EMAIL PROTECTED]> wrote: Aldemir, To it, you only need uncomment the line below in file app/config/core.php: //define ('BASE_URL', env('SCRIPT_NAME')); Good look, Juan Basso Aldemir Vieira escreveu: > I having problems to install Bakesale (cakeforge) in the IIS. > > Somebody knows what to make to disable the mod_rewrite in bakesale and still > thus to continue functioning? > > -- > []´s, > Aldemir Vieira > -- Atc, Aldemir Vieira -- // lutandoporwasp.blogspot.com // Ajude a Creche Zélia Ribeiro: // www.crechezr.theducks.com.br --~--~-~--~~~---~--~~ 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: Rapid Developement / Bloated Product?
Cake (and especially Cake 1.2) has several runtime caching enhancements which happen automatically when you set DEBUG to 0 (in app/config/core.php). That by itself should give you a significant boost. Also, there are several other posts on the list which detail other server side configuration changes you can make to optimize your performance. With a bit of strategic caching, you should be able to hit 0.03s pretty easily. --~--~-~--~~~---~--~~ 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 1.2
How about an incremental documentation process? I'm not even sure what exactly I'm talking about here, haha. Right now I'm helping document the code (and hopefully a developer/user guide in the future) for Bakesale with a few hours of work every week. Been really busy but I still want to contribute in some ways. So what I do is to document two files every week (at least). With the complexity of a framework I guess that'll take longer. But my point is maybe some system can be put in place such that the documentation can be put up bit by bit? Just my 2 cents worth. --~--~-~--~~~---~--~~ 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: page objects are showing up in an unexpected order
Hi all, I fixed the problem it was a typo. I passed the wrong value for autorender into the requestAction parameters!!! 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 -~--~~~~--~~--~--~---
Any downside to using direct SQL with query()
I have a fairly custom SQL query, which probably *could* be written with findAll(), but would involve unpleasant contortions. I figure this is why the cake developers provided us with query() for the complex stuff, while letting us unload the easier time consuming stuff on findAll(). My question is: what am I losing out on by going with a custom SQL query() instead of the findAll()? 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: Rapid Developement / Bloated Product?
I have been looking into using cake for a few projects, and performance related issues are exactly what I am worried about... Would it be not possible to cache certain data/metadata at runtime once you are in production mode (and not in dev mode) such as mysql metadata. Some other things I can think of is parsing and caching layout templates, information on views, metadata information about probably controllers/helpers/models/etc using lazy caching (cache as you go). One more thing that worried me was the fact that caching system was built-into the core and that it is not replacable. For example, I want to use memcached which is way waster than using php files for caching, and for that it looks like I need to go into core and hack it, which is the last thing I want to do... On Jan 14, 12:35 pm, "eagerterrier" <[EMAIL PROTECTED]> wrote: I've been using cake for about 3 weeks now (extremely intensively), and it is a marvellous tool for developing sites quickly and being able to divide work up between developers in a logical way.However, with speeds at a *minimum* of 0.2 seconds per page regardless of what's on them, I am concerned. The current site which I am revamping has at present *maximum* speeds of 0.03 seconds for the home page, and it needs to be this tight because it is a high traffic site (2m+ PIs per month). And although I'm pleased to see that CakePHP version 1.2 has stopped carrying around 1Mb+ of repeated information in arrays, its processing speed is still on the slow side. What I'm looking for is a way of altering bootsrap and basics (which appear to be the main culrpits -http://www.cakephp.org/profile.png) to bypass some of this processor intensive stuff and replace it with static text (for example, setting up a flat file of arrays of my SQL table structure rather than cake looking for it the whole time). Does anyone know how to go about this? I have presently only been looking into *how* CakePHP works (to get my project up to speed), and not *why* it works, so I would be grateful for the Cake aficionados to point me in the right direction. Perhaps I'm missing something and in the same way that you have the bake function, you might also have a 'decorate' function that would do what I am asking, but I can't find it anywhere and I am losing sleep over the site performance. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Rapid Developement / Bloated Product?
I've been using cake for about 3 weeks now (extremely intensively), and it is a marvellous tool for developing sites quickly and being able to divide work up between developers in a logical way.However, with speeds at a *minimum* of 0.2 seconds per page regardless of what's on them, I am concerned. The current site which I am revamping has at present *maximum* speeds of 0.03 seconds for the home page, and it needs to be this tight because it is a high traffic site (2m+ PIs per month). And although I'm pleased to see that CakePHP version 1.2 has stopped carrying around 1Mb+ of repeated information in arrays, its processing speed is still on the slow side. What I'm looking for is a way of altering bootsrap and basics (which appear to be the main culrpits - http://www.cakephp.org/profile.png) to bypass some of this processor intensive stuff and replace it with static text (for example, setting up a flat file of arrays of my SQL table structure rather than cake looking for it the whole time). Does anyone know how to go about this? I have presently only been looking into *how* CakePHP works (to get my project up to speed), and not *why* it works, so I would be grateful for the Cake aficionados to point me in the right direction. Perhaps I'm missing something and in the same way that you have the bake function, you might also have a 'decorate' function that would do what I am asking, but I can't find it anywhere and I am losing sleep over the site performance. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
page objects are showing up in an unexpected order
Hi, We have three actions that we request and set in a variable for the view and layout to have access. //make the profile navigation menu available to the layout $divId = 'ajax_user_wiki_page'; $this->set('profile_navigation_menu', $this->requestAction('/wiki_pages/wikiSiteNavigation/' . $divId . '/' . $wikiPageId, array('return'=>true) ) ); // Make the top navigation menu available to the layout $this->set('top_navigation_menu', $this->requestAction('/navigations/top/'. TN_SEARCH, array('return'=>false)) ); // Make the left tools menu available to the layout $this->set('left_tools_menu', $this->requestAction( '/navigations/leftTools/' . PT_ORG_PROFILE, array('return'=>false)) ); The layout that we use expects those variables. We can see that each action is indeed working. However the html markup that each one returns is not in the expected order. For instance, the left_tools_menu does not show up where we specify in our layout. Here is our layout code: ... ... Now here is the generated html markup ... Tool 1 Tool 2 Tool 3 ... ... As you can see the left menu is showing up outside of the leftColumn_3 div even though in the layout it is displayed inside of the div tag. We have checked to see if that div tag existed elsewhere but it does not. Does anyone have any ideas as to why this would be happening. 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 -~--~~~~--~~--~--~---
Re: Getting my validation errors to do like I want
It's still early in the morning here in NZ so my brain has not switched on completely... However, I know for sure that the html and form helper have access to the validation errors list. Check out this function found in the html helper : function tagIsInvalid($model, $field) { return empty($this->validationErrors[$model][$field]) ? 0 : $this->validationErrors[$model][$field]; } So, the html helper definitely has access to the list. Also, another function which may give us a clue : function validateErrors() { $objects = func_get_args(); if (!count($objects)) { return false; } $errors = array(); foreach($objects as $object) { $errors = array_merge($errors, $object->invalidFields($object->data)); } return $this->validationErrors = (count($errors) ? $errors : false); } I would start debugging in your view's on $this->validationErrors, or access them via the html helper using the handy functions you find in there (such as tagIsInvalid). HTH mikee On 13/01/07, tracyfloyd <[EMAIL PROTECTED]> wrote: I'd like to be able to customize how a form's validation errors are displayed... i.e. instead of using the tagErrorMsg and having it spit out a div with a class applied to it for each error message, I'd like to just make the field label text red and add something like: "Please correct the errors below...". I can't figure out how to access the validationErrors in my view, though. I can see them when I run a print_r on $this in my controller (but of course they aren't in the viewVars). Any 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 -~--~~~~--~~--~--~---
Re: Integrate a datepicker
As far as the component code goes, I would check out the following chapter of the manual : http://manual.cakephp.org/chapter/components And as for selection of datepicker, there are some quality ones out there. Just a matter of finding which one suits your purpose. The dynarch works fine for me and I like it's look and feel. Have a go at the component stuff based on the instructions from the manual, if you are still struggling let me know. cheers, mikee On 13/01/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Thank you for the link. I'm really a beginner on this and don't know where to put the 'component' code. Do I just create some filename or do I add the code to an existing file? Also, is there a better/nicer calendar to use? I'm not that picky, I would rather just have something besides the boring drop-downs. Thank you 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: OT - Q for PHPNut on DBDesigner 4 - Was: ER Tools
Yup, works fine with Windows :-) (I pretty much use it every day) --~--~-~--~~~---~--~~ 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: where to find ajax info to use in cakephp ??
http://manual.cakephp.org/chapter/helpers The Ajax section is about 1/3 of the way down the page. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Firefox/Mozilla 2.0 focus between fields quick hack
For those using the vanilla cake.generic.css and facing the DIV->label->field focus misbehaviour in Firefox, Mozilla or SeaMonkey, a quick hack is commenting out the "overflow: auto;" line in cake.generic.css "form div" definition. Norman --~--~-~--~~~---~--~~ 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: Performing controller operations in a view
Thank you both for your responses, I think I may have to go down the requestAction() route, as the model from which I need the data is rather large and long winded, and wouldn't import into the other model too well! Thanks again. kez. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
where to find ajax info to use in cakephp ??
Hello everyone, i always do the normal php programming and do not include ajax in my projects , they always work and do what i want them to do but im looking to add ajax to my projects probably you guys know all the reasons. First i started thinking that i needed to google for "cakephp ajax" or "cakephp ajax examples" , and all the related queries, but ive found only one example or two, so im thinking now that i need to look for something like scriptaculous examples , or something more related to php and ajax, am i right ?? Lets say i need to look more for the php ajax stuff, where do you guys find the examples , or what is the right path to seek getting to know ajax and how to implement it on your cake's projects. Im also starting to think i need to find a book on the subject , should i go for this looonnngg road ?? Thanks for your time on helping me :D --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Ajax evalScripts not working for IE?
The following is included in the content for an ajax updated DIV, wich is a sortable list. The intention is to re-generate the sortables on each update so the user can continue sorting elements. It works fine for Firefox, but evalScripts does not seem to work on IE. Any clues why? I've digged the previous posts on similar subjects, scriptaculous docs and CakePHP API without luck. BTW, I'm using CakePHP 1.2 sortable('nsortable',array('onUpdate'=>"function(element){ new Effect.Appear('feedback'); new Ajax.Updater('noticias','/admin/news/sort', { postBody:Sortable.serialize('nsortable'), onComplete:function(obj){ new Effect.Fade('feedback'); }, asynchronous:true, evalScripts:true, requestHeaders:['X-Update', 'noticias'] } ) }")) ?> This, and scriptaculous IE bug with slides, are making what should be a simple work into a nightmare :P --~--~-~--~~~---~--~~ 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 behavior (hasMany/belongsTo etc.)
Hello everyone, I have a problem and I hope anyone of you can help me with that. Certainly I have read a lot of topics about hasMany and the likes, but so far I couldn't find the answer I need. Let me start by explaining what I want: For now I have 2 models: message.php and user.php [code] class Message extends AppModel { var $name = 'Message'; var $belongsTo = array('User' => array( 'className' => 'User', 'foreignKey' => 'user_id' ) ); /* AND */ class User extends AppModel { var $name = 'User'; var $hasMany = array( 'Message' =>array( 'className' => 'Message', 'conditions'=> 'User.id = Message.from_id', 'foreignKey'=> 'user_id' ) ); } [/code] Ok sofar for the models. The thing I want is to do a select on the messages table getting all the messages send to a certain id. For now with this setup it's possible. However.. I want to get the username who have sent the message. I tried to do it with a ordinary query on my db and that worked: [sql code] SELECT m.user_id, m.from_id, m.subject, m.content, u.username FROM users u, messages m WHERE u.id = m.from_id AND m.user_id = 1 [/sql code] outputs: user_id from_id subject content username 2 1subject contentsXYZ Which is the result that I want. Here's the controller code: [code] var $uses=array('Message','User'); function xyz() { $message = $this->Message->findAll('Message.user_id=1'); pr($message); } [/code] cake gives me back this: [array output snippet] [0] => Array ( [Message] => Array ( [id] => 3 [user_id] => 1 [from_id] => 2 [created] => 2007-01-14 13:53:53 [subject] => 2nd message from test to username [content] => bdfiugfigsdifgisudgfiudsf fljhfughofdhpgifhoghdfg sdfghfsoguhodhfgohfdohg sdlghfdouhgodfhgohdfohodf ) [User] => Array ( [id] => 1 [useremail] => [username] => username [userpassword] => # [userfirstname] => first [userlastname] => last [created] => now() [delete_date] => -00-00 00:00:00 [ip] => ) ) [/array output snippet] Which is not what I want. I want to get the username and the messages this 'from_id' sent. So my question.. how do I get cake to give me back the same output as the ordinary query? Hope anyone can help me with this. Thanks in advance! Greets Ed --~--~-~--~~~---~--~~ 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: othAuth component v0.5.2 and Stable: 1.1.12.4205 go it?
Well, can you please paste your controller's code and the user/group/permissions in the database. also if it doesn't redirect to access page, what does it do ? --~--~-~--~~~---~--~~ 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: Problem with mod_rewrite
On Friday 12 January 2007 01:35, roby wrote: I've contacted the admin already and the admin said that I've been given the permissions to write... but the problems still appeared :| ...permission to write by the webserver. Ask your admin to make your app/tmp directory writable by the webserver (or ask him/her if it's okay if you make one of your directories "others-writable", and if it's okay then make it writable by others). [snip] Lemuel --~--~-~--~~~---~--~~ 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: Layout specific helpers
function beforeRender() { if ($this->autoLayout && is_array($this->helpers)) { switch ($this->layout) { case 'custom_one': $this->helpers = am($this->helpers, array('Menu', 'BreadCrumbs')); break; case 'custom_two': $this->helpers[] = 'Menu'; break; default: break; } } } --~--~-~--~~~---~--~~ 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: TestSuite with cakePHP
On 1/14/07, Duo <[EMAIL PROTECTED]> wrote: The URL: http://wiki.cakephp.org/tutorials:testing_cake_apps shows that "The Wiki is finished." Where can I get the relate document about configure the TestSuite and how to test a cakePHP app? Last I noticed the TestSuite was not working. Little point in asking for wiki but you can try google cache HTH Tarique -- = PHP Applications for E-Biz: http://www.sanisoft.com Cheesecake-Photoblog: http://cheesecake-photoblog.org = --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
TestSuite with cakePHP
The URL: http://wiki.cakephp.org/tutorials:testing_cake_apps shows that "The Wiki is finished." Where can I get the relate document about configure the TestSuite and how to test a cakePHP 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: othAuth component v0.5.2 and Stable: 1.1.12.4205 go it?
If I login, it dont redirect to acces page. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---