Re: shared host setup
Thanks for your reply, i have cleared the cache and tired setting debug to 0 but the error is still there but not showed because debug is set too zero. Any other ideas ? thanks On Dec 5, 5:38 pm, Piotr Kilczuk wrote: > Hello, > > > I am trying to put a site on a shared host. after copying the code on > > the server and editing the htaccess files the default cake page says > > everything is ok. > > > but as soon as i try to access my controllers i get > > > Fatal error: Cannot access empty property in public_html/cake/libs/ > > controller/component.php on line 248 > > > any ideas ? > > Are you sure the cache is cleared so that the paths get updated? > > It is essential when the debug mode is set to 0 and you are migrating > from one environment to another... > > Regards, > Piotr Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: form->input keeps value after submit is presed
the code in the add action looks like this: function add() { if (!empty($this->data)) { $this->Comment->create(); if ($this->Comment->save($this->data)) { $comments = $this->Comment->find('all', array('conditions' => array('post_id' => $this->data['Comment']['post_id']), 'recursive' => -1)); $this->set(compact('comments')); $this->render('add_succes','ajax'); } else { $his->render('add_failure','ajax');} } } - Andrei Bogdan 2009/12/7 #2Will : > What's the code in the action when submitted? > > The values will remain until you o something and then redirect. > eg. save the comment, dd a message to the flash message thing and > then redirect to the page. > > it's the redirect bit that clears the form. > > On Dec 7, 7:38 am, "andrei.b" wrote: >> hello, >> I have a comment view for a blog witch looks like this: >> >> >> create('Comment');?> >> >> >> > echo $form->input('name', array('value' => '')); >> echo $form->input('content', array('value' => '')); >> echo $form->input('post_id'); >> ?> >> >> end('Submit');?> >> >> >> When I press submit in name and content input fields I still see the >> same values that I entered instead of viewing nothing. > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to cake-php@googlegroups.com > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com For more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: emulate hasMany relationship as Master/Detail relation or one to many
Suggested solution to your master/detail presentation: 1) When chosing (or after having added) the Tender store the tender id in the session (possibly the model already does this, haven't checked). 2) When activating "New tender document" use an element in your tender_documents add view to retrieve and present the current Tender information (summary). 3) When saving the new tender document, add the tender id from the session to the data (or from the tender model, should the model already have this information). Enjoy, John On Dec 6, 9:47 am, csplrj wrote: > I am using "hasMany" Relationship with cakephp. > > I have relationship like > > Tender=>hasMany=>TenderDocuments > > with this kind of relationship. > > I am at "http://localhost/cakephp/index.php/tenders/add"; > Now i click "New Tender Document" and > gotohttp://localhost/projects/cakephp/index.php/tender_documents/add > > What I want is that there should be either no display of tender combo > as i want it to be directly associated with the tender from where the > Tender that I am currently adding. > > How to achive the same? > > This is a kind of one-to-many relationship > > Thanks in advance > > CSJakharia > > My Code is like this > > class Tender extends AppModel > { > var $name='Tender'; > var $hasMany=array('TenderDocument'=>array( > 'className'=>'TenderDocument', > //'conditions' => array('Tender.id = > TenderDocument.tender_id'), > 'order'=>null, > 'foreignKey'=>'tender_id', > 'exclusive'=>false, > 'dependent'=>true > )); > } > > class TenderDocument extends AppModel > { > var $name='TenderDocument'; > var $belongsTo=array('Tender'=>array( > 'className'=>'Tender', > 'conditions'=>null, > 'order'=>null, > 'foreignKey'=>'tender_id' > )); > } > ?> Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: How much memory should cakephp use?
I think the memory usage is normal, as my app has the same usage. Markus Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: How much memory should cakephp use?
Hi James, First off, CakePHP is heavy... I was surprised too when I realised my application was occupying nearly 32MB according to memory_get_usage. I have confidence the next releases will be leaner. Answering to the topic 2. It ain't really CakePHP's responsability to share any resources among several webserver connections. It'd be PHP's... And PHP does not share anything by default, actually PHP lacks a Database Pool Queue, for instance. You have anything worth sharing between simultaneous connections, you may use IPC messaging or smhop functions. I hope have helped. []s Dérico Filho On Dec 5, 4:01 pm, James wrote: > I recently had some memory leak issues with my site. Php wasn't > releasing Simplepie's feed. > > Through the process of debugging, I started thinking about the memory > consumption of my site. Which brought up a couple of questions. > > 1. On my dev system, the default baked app uses around 9MB; on my site > the heaviest page uses around 20MB, and the lightest page uses about > 15MB. Is this normal? If not does anybody have any suggestions as to > where to look for optimization techniques? > > Default Baked App. > xdebug_memory_usage(): 8,925,408 bytes, 8.51 MB > xdebug_peak_memory_usage(): 9,149,064 bytes, 8.73 MB > > My heaviest page (loads simplepie rss + database query) > xdebug_memory_usage(): 21,420,048 bytes, 20.43 MB > xdebug_peak_memory_usage(): 21,660,360 bytes, 20.66 MB > > My lightest page (no database calls) > xdebug_memory_usage(): 15,549,928 bytes, 14.83 MB > xdebug_peak_memory_usage(): 15,687,840 bytes, 14.96 MB > > 2. This memory usage is base on one user connecting to the site. If > two users connect to the site, does the memory usage double, or does > cakephp share any resources? Does anybody have any suggestions as to > how to test how much memory multiple concurrent users take up? > > Thanks for any ideas. > > James Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Use of Multiple Fields in $displayField var in Models
I want to use 2 Concatenated fields in $displayField variable in a model so that the view can show both FirstName and LastName in the dropdown selection. var $displayField = "firstName"; I need something like var $displayField = "firstName"." "."lastName"; The above statement is not valid in a variable declaration inside a class. Please advice. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Use of Associations in Add / Insert
I have 3 different roles in my application. "Customers", "Customer Support Agent", "Sales Rep". Common fields in all 3 are: FirstName LastName Email username password role_id etc... Role Specific Fields are: Customers: == 1. Social Security Number 2. Date of Birth 3. Credit Card Number 4. ExpiryMonth , ExpiryYear etc.. Customer Support Agent & Sales Rep === Nothing unique. I want to create a user management plugin to be reused in all projects and want to keep common fields in users table. Question is how do i generate a single view for customers add action so that it asks for fields in both users and customers table and saves it appropriately in both the tables. Rather can creating a user first and then selecting that user in the customer add screen, i want simply a view to create customer which inserts data in both the tables. If above design looks wrong, please advice any improvements and proper solution to bake the MVCs. Thanks in advance Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: form->input keeps value after submit is presed
What's the code in the action when submitted? The values will remain until you o something and then redirect. eg. save the comment, dd a message to the flash message thing and then redirect to the page. it's the redirect bit that clears the form. On Dec 7, 7:38 am, "andrei.b" wrote: > hello, > I have a comment view for a blog witch looks like this: > > > create('Comment');?> > > > echo $form->input('name', array('value' => '')); > echo $form->input('content', array('value' => '')); > echo $form->input('post_id'); > ?> > > end('Submit');?> > > > When I press submit in name and content input fields I still see the > same values that I entered instead of viewing nothing. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Just a little help
I have tried so many different ideas and none seem to work out the way I wanted so I am asking for some input as to ideas or how you would do it. Idea is simple...I want the user to edit their info throughout the site on the same page so no clicked edit > go to edit page > save and back to view. I have tried using jquery to toggle the content with a form, that worked until validation fails since the toggle would be in the success, tried using 2 divs one for loading the form but same thing, if validation fails the div still gets toggled with the submit Ajax. I had the client side validation working but too much of a pain for what i need to make sure user enters min 5 characters, only to say its valid client side then save it and removing characters when sanitizing says nope not valid. So now I'm saying forget toggle sliding, fading and just swap out the content being edited with the form so if it saves update the div with the new content or if it fails the form with the errors appears which is what I want basically..but now cancel. How do I get the original data back if i replace the current content with the form and the user clicks cancel? Any ideas, suggestions or helpful tips would be greatly appreciated. Thanks in advance to all. Dave Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: download API documentation and book
The api is generated by the ApiGenerator plugin found at (http:// thechaw.com/api_generator). You can download it and generate your own api. -Mark On Dec 3, 5:42 am, Lorenzo Bettini wrote: > Hi > > is there a version of APIs and book documentation to be downloaded for > offline browsing? > > thanks in advance > Lorenzo > > -- > Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino > HOME:http://www.lorenzobettini.itMUSIC:http://www.purplesucker.com > BLOGS:http://tronprog.blogspot.com http://longlivemusic.blogspot.com Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
RE: Help With Ajax response - Ajax Handler component
I need to keep the if statement. Problem is , will try to explain so it makes sense. I have 2 one for the current user data displayed, click edit and that toggles away and the toggles in giving a sliding overlapping effect. The user clicks save and the toggles out hiding the form and the toggles back in showing the updated content. But if the user attempts to save the data that’s not valid I do not want the toggling of anything to happen so I wanted the "if success then do this" if not just return the form with the errors for correcting. Is there an easy way to set this up? (without client side validation) Thanks, Dave -Original Message- From: Miles J [mailto:mileswjohn...@gmail.com] Sent: December-06-09 6:48 PM To: CakePHP Subject: Re: Help With Ajax response - Ajax Handler component Well response.success will never work because your not passing a JSON object. Just remove the if statement in the JS. When your responding as html, no object is sent back, just the html itself. On Dec 6, 1:31 pm, "Dave" wrote: > I am trying to edit a form using Ajax. I have the submit, save or > error all working. Just the response I am having problems with. I am > trying to use Miles Ajax Handler component and basically from the controller i need to : > > if form saves return a success response and the Ajax view with the > updated content. If it does not save return a fail response and show > the errors on the form. I know i could use Ajax to validate but that's > more of a headache and for what i need it for i really don't care > about user side validation, the form coming back showing errors will work just fine. > > I Need the fail or success response to pass to the JavaScript because > fail and success will have 2 different functions so i need to know > what comes back and how the site should respond accordingly. > > script: > $(this).ajaxSubmit({ > type: 'post', > url: form_url, > data: queryString, > success: function () { > > // Response was a success > if (response.success == true) > { > //do my stuff here for success > > // Response contains errors > } else { > > do my stuff here for fail > } > } > }); > > Controller snip of the save part: > if (!empty($this->data)) { > $this->Experience->id = $id; > if ($this->Experience->save($this->data, true)) { > $this->set('experience', > $this->Experience->getExperienceInfo($experience['Experience']['id'], > $this->Auth->user('id'))); > $this->layout = 'ajax'; > > $this->render('/elements/experiences/ajax_edited_block'); > $this->AjaxHandler->response(true); > $this->AjaxHandler->respond('html'); > > } else { > $this->AjaxHandler->response(false); > $this->AjaxHandler->respond('html'); > } > } > > Do anyone have any ideas how I can return success = true and the html > response or success is false and return the form with the errors so > that the javascript can carry on? > > Thaks > > Dave Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group cake-php+at http://groups.google.com/group/cake-php?hl=en No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.709 / Virus Database: 270.14.94/2545 - Release Date: 12/06/09 16:07:00 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
form->input keeps value after submit is presed
hello, I have a comment view for a blog witch looks like this: create('Comment');?> input('name', array('value' => '')); echo $form->input('content', array('value' => '')); echo $form->input('post_id'); ?> end('Submit');?> When I press submit in name and content input fields I still see the same values that I entered instead of viewing nothing. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Pagination of result of SQL query in CakePHP
SELECT `User`.`id`, `User`.`username`, `User`.`password`, `User`.`email`, `User`.`country_id`, `User`.`state_id`, `User`.`city`, `User`.`zipcode`, `User`.`created`, `User`.`modified`, `Country`.`id`, `Country`.`name`, `Profile`.`id`, `Profile`.`user_id`, `Profile`.`pickupline`, `Profile`.`categoryseek_id`, `Profile`.`dob`, `Profile`.`enthnicity_id`, `Profile`.`location`, `Profile`.`zodacsign_id`, `Profile`.`description`, `Profile`.`zipcode_id` FROM `users` AS `User` LEFT JOIN `countries` AS `Country` ON (`User`.`country_id` = `Country`.`id`) LEFT JOIN `profiles` AS `Profile` ON (`Profile`.`user_id` = `User`.`id`) WHERE `User`.`id` =31 LIMIT 1 1 1 2 16 SELECT `Image`.`id`, `Image`.`user_id`, `Image`.`name` FROM `images` AS `Image` WHERE `Image`.`user_id` = (31) I have the result of this query stored on an array Now I want to paginate this array in CAKEPHP Can sb help me please.. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Pagination..
I have my result set ( of an SQL query operating on two models) in the form of an array. How can i paginate this? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
emulate hasMany relationship as Master/Detail relation or one to many
I am using "hasMany" Relationship with cakephp. I have relationship like Tender=>hasMany=>TenderDocuments with this kind of relationship. I am at "http://localhost/cakephp/index.php/tenders/add"; Now i click "New Tender Document" and goto http://localhost/projects/cakephp/index.php/tender_documents/add What I want is that there should be either no display of tender combo as i want it to be directly associated with the tender from where the Tender that I am currently adding. How to achive the same? This is a kind of one-to-many relationship Thanks in advance CSJakharia My Code is like this class Tender extends AppModel { var $name='Tender'; var $hasMany=array('TenderDocument'=>array( 'className'=>'TenderDocument', //'conditions' => array('Tender.id = TenderDocument.tender_id'), 'order'=>null, 'foreignKey'=>'tender_id', 'exclusive'=>false, 'dependent'=>true )); } array( 'className'=>'Tender', 'conditions'=>null, 'order'=>null, 'foreignKey'=>'tender_id' )); } ?> Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Help With Ajax response - Ajax Handler component
Well response.success will never work because your not passing a JSON object. Just remove the if statement in the JS. When your responding as html, no object is sent back, just the html itself. On Dec 6, 1:31 pm, "Dave" wrote: > I am trying to edit a form using Ajax. I have the submit, save or error all > working. Just the response I am having problems with. I am trying to use > Miles Ajax Handler component and basically from the controller i need to : > > if form saves return a success response and the Ajax view with the updated > content. If it does not save return a fail response and show the errors on > the form. I know i could use Ajax to validate but that's more of a headache > and for what i need it for i really don't care about user side validation, > the form coming back showing errors will work just fine. > > I Need the fail or success response to pass to the JavaScript because fail > and success will have 2 different functions so i need to know what comes > back and how the site should respond accordingly. > > script: > $(this).ajaxSubmit({ > type: 'post', > url: form_url, > data: queryString, > success: function () { > > // Response was a success > if (response.success == true) > { > //do my stuff here for success > > // Response contains errors > } else { > > do my stuff here for fail > } > } > }); > > Controller snip of the save part: > if (!empty($this->data)) { > $this->Experience->id = $id; > if ($this->Experience->save($this->data, true)) { > $this->set('experience', > $this->Experience->getExperienceInfo($experience['Experience']['id'], > $this->Auth->user('id'))); > $this->layout = 'ajax'; > > $this->render('/elements/experiences/ajax_edited_block'); > $this->AjaxHandler->response(true); > $this->AjaxHandler->respond('html'); > > } else { > $this->AjaxHandler->response(false); > $this->AjaxHandler->respond('html'); > } > } > > Do anyone have any ideas how I can return success = true and the html > response or success is false and return the form with the errors so that the > javascript can carry on? > > Thaks > > Dave Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Help With Ajax response - Ajax Handler component
I am trying to edit a form using Ajax. I have the submit, save or error all working. Just the response I am having problems with. I am trying to use Miles Ajax Handler component and basically from the controller i need to : if form saves return a success response and the Ajax view with the updated content. If it does not save return a fail response and show the errors on the form. I know i could use Ajax to validate but that's more of a headache and for what i need it for i really don't care about user side validation, the form coming back showing errors will work just fine. I Need the fail or success response to pass to the JavaScript because fail and success will have 2 different functions so i need to know what comes back and how the site should respond accordingly. script: $(this).ajaxSubmit({ type:'post', url: form_url, data: queryString, success: function () { // Response was a success if (response.success == true) { //do my stuff here for success // Response contains errors } else { do my stuff here for fail } } }); Controller snip of the save part: if (!empty($this->data)) { $this->Experience->id = $id; if ($this->Experience->save($this->data, true)) { $this->set('experience', $this->Experience->getExperienceInfo($experience['Experience']['id'], $this->Auth->user('id'))); $this->layout = 'ajax'; $this->render('/elements/experiences/ajax_edited_block'); $this->AjaxHandler->response(true); $this->AjaxHandler->respond('html'); } else { $this->AjaxHandler->response(false); $this->AjaxHandler->respond('html'); } } Do anyone have any ideas how I can return success = true and the html response or success is false and return the form with the errors so that the javascript can carry on? Thaks Dave Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Is Cake Certification still offered?
> Ive never even heard of a cake certification, care to tell? Or sources > of where you heard about it? http://cakefoundation.org/pages/certification -- jon bennett - www.jben.net - blog.jben.net Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Is Cake Certification still offered?
Ive never even heard of a cake certification, care to tell? Or sources of where you heard about it? On Dec 6, 3:55 am, hash wrote: > Hi guys, I want to know whether Cake Certification is still being > offered because I want to apply as a Cake Certified Engineer. I > emailed Cake Foundation but got no reply. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: CakePHP config issue
Hello, > Error: Database table cakephps for model Cakephp was not found." > > > I am not sure to know why I should have a "cakephps" table... How many > column, etc > > Any help around ? Don't create CakephpsController. This is an url issue. What are you trying to access, http://localhost/cakephp/ ? If so, go to http://localhost/ and you should be fine (an see contents of home.ctp with some config infos). Regards, Piotr Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
CakePHP config issue
Hi all, It's been a while that I have been trying to config cakePHP to use it... But all the time I face a new problem! Rrrr Here is my error message: "Missing Database Table Error: Database table cakephps for model Cakephp was not found." I am not sure to know why I should have a "cakephps" table... How many column, etc Any help around ? Thx Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: http://localhost/ shows nothing cakephp related
Hello, > And thank you, now it seems to work. > "If you really.." Isn't that the thing I have to do anyway when I'll > publish my site to web www.mysite.com? Yes, it should be at the domain root in production environment. I am just used to having multiple virtual local hosts on my machine and turning them on/off with Apache a2ensite / a2dissite . Regards, Piotr Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: CakephpController could not be found
The message you are getting is telling you that you have not setup any kind of app under CakePHP. The URL you provided in your post (http:// localhost/cakephp/) is not a proper URL to access a CakePHP app. If you follow the suggested installation (see http://book.cakephp.org/view/329/Getting-Cake) you will have (indentation below indicates a subdirectory): /app /cake /docs /vendors In your case is C:\xampp\htdocs. The fact that you are getting the error message you cite means that instead of putting CakePHP directly under you document_root you put it in a subdirectory i.e.: /cakephp /app /cake /docs /vendors Is possible to make CakePHP work with this structure but since you are just starting out I STRONGLY recommend you follow the Blog Tutorial at http://book.cakephp.org/view/219/Blog. Follow it exactly until you begin to get a handle on things. Firstly, this means moving everything you current have under / cakephp up one level so it matches the directory structure in the tutorial. I hope this helps, Ken On Dec 5, 10:17 am, 00Cake wrote: > Hi all, > > I have decided to create my new website with CakePHP. > > This experience is already stopped. when I open the > pagehttp://localhost/cakephp/ > ...snip... Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Email with unwanted white spaces and special characters
All I have in my template is the html/default.ctp: The message is being written in controller and sent by CakePHP Email Component. Even if I use the default text (text/default.ctp), I get the same issue... No idea on what what`s going on. On 5 dez, 18:52, mike karthauser wrote: > Perhaps you could post the php inside your template so we could see > it? Also are you sanitizing your email addresses as perhaps there is > extra characters being captured that you are giving to your view? > > Mike Karthauser > Brightstorm limited > Tel: 07939252144 > > On 5 Dec 2009, at 12:22, Mauro Ribeiro wrote: > > > Hi all! > > > I`m using the CakePHP Email Component and the resulting email appear > > with some not wanted whitespaces and special characters along the > > HTML. > > > Sometimes this happens inside tags and break the href > > property. > > > Here is an example: > > > - > > > http://www.empreendemia.com.br/users/ > > create/ > > user.em...@gmail.com+/X" target="_blank">http:// > >www.empreendemia.com.br/users/create/user.em a...@gmail.com /X > a> > > > - > > > It appeared a "+" in href link and some whitespaces inside text > > > Does someone now what`s happening? > > > Thanks in advance, > > Mauro > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help > > others with their CakePHP related questions. > > > You received this message because you are subscribed to the Google > > Groups "CakePHP" group. > > To post to this group, send email to cake-php@googlegroups.com > > To unsubscribe from this group, send email to > > cake-php+unsubscr...@googlegroups.com For more options, visit this > > group athttp://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: http://localhost/ shows nothing cakephp related
Hi Piotr! And thank you, now it seems to work. "If you really.." Isn't that the thing I have to do anyway when I'll publish my site to web www.mysite.com? -Sand On 5 joulu, 20:11, Piotr Kilczuk wrote: > Hello, > > > What should I do? > > If you really want to have your CakePHP app athttp://localhost/, > adjust the Apache DocumentRoot to c:/wamp/www/cake_1.2.5/app/webroot/ > (restart Apache afterwards). > > The better way, however, is to create a virtualhost for each of your > cakeapp, for examplehttp://app1.localhost/. This way you can test > cookies more effectively. There must be a lot of links how to create > vhosts on Windows. > > P.S. You have to create phpinfo.php manually and in the Apache section > you can check if the mod_rewrite module is enabled and running. > > Regards, > Piotr Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Authentication strategy
This is a valid discussion as it is with cake that I will be implementing this, if you dont think about strategy where are you ? On Dec 4, 10:09 am, "www.landed.at" wrote: > If I authenticate someone on my site using say an API or my own > usertable in my own database then am I right in thinking that they > will be seen as two separate individuals. > All the authentication is doing is saying that this person is who they > say they are. So for example if I get them logged on via a facebook > account and they add say a blog post then they would not be able to > come back in and log in via the sites own authentication and edit that > blog post as the system has no way of tying both accounts together. > > Its a very murky complicated thing this multiple login, and then also > ACL within these accounts ? What is a good strategy to adopt ? > I'm thinking I would like to create a facebook application which is > just really an iframe so they can aythenticate against facebook so > maybe I can capture their facebook username in my database and do > things like that so they always log in through facebook. > > Is there a good article online that goes into login strategy to employ > for a new build. > thanks Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Is Cake Certification still offered?
Hi guys, I want to know whether Cake Certification is still being offered because I want to apply as a Cake Certified Engineer. I emailed Cake Foundation but got no reply. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: CakephpController could not be found
Maybe you forget 's' suffix Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: CakephpController could not be found
Hi Piotr, Thank you for answering. The aboslute path to app/webroot is: C:\xampp\htdocs\Cakephp\app\webroot ... On 5 déc, 18:36, Piotr Kilczuk wrote: > Hello, > > > I have decided to create my new website with CakePHP. > > > This experience is already stopped. when I open the > > pagehttp://localhost/cakephp/ > > > I have put the cakephp files in C:\xampp\htdocs\CakePHP > > Seems like you have put it in htdocs... > What's the exact (absolute) path to app/webroot? > > Regards, > Piotr Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en