Re: Cakephp 3.x Validation Error issue
Hi John, I am working on form builder here you can see the image https://www.dropbox.com/s/tefh2auwqy97g10/form_builder.png?dl=0 It is working in cakephp 2.x fine. here are answers of your questions. *Have you studied the CakePHP book?* yes I read the cakephp 3.x cook book *What have you tried?* In cakephp 2.x I have written validations like following but I have no idea how to try multiple index validation in cakephp 3.x Cakephp 2.x Form fields are $this->Form->input('FormElement.text.1.title', ['type'=>'text', 'label'=>false, 'class'=>'form-control']); $this->Form->input('FormElement.text.2.title', ['type'=>'text', 'label'=>false, 'class'=>'form-control']); Cakephp 2.x Model Validations are public $validate = array( 'text'=> array( 'mustNotEmpty'=>array( 'rule' => 'checkForText', 'message'=> '', 'last'=>true) ), 'textarea'=> array( 'mustNotEmpty'=>array( 'rule' => 'checkForTextarea', 'message'=> '', 'last'=>true) ) ); function checkForText() { if(!empty($this->data['FormElement']['text'])) { foreach($this->data['FormElement']['text'] as $key=>$val) { if(empty($val['title'])) { $this->validationErrors['text'][$key]['title'] = "Please enter title"; } } } return true; } function checkForTextarea() { if(!empty($this->data['FormElement']['textarea'])) { foreach($this->data['FormElement']['textarea'] as $key=>$val) { if(empty($val['title'])) { $this->validationErrors['textarea'][$key]['title'] = "Please enter title"; } } } return true; } so the validation work like a charm on multi index input fields 'FormElement.text.1.title' etc. The form fields are dynamically added. I am not getting any clue to convert this code in cakephp 3.x *What does not work?* In cakephp 3.x I have tried so far. Cakephp 3.x Form fields are $this->Form->input('FormElements.text.1.title', ['type'=>'text', 'label'=>false, 'class'=>'form-control']); $this->Form->input('FormElements.text.2.title', ['type'=>'text', 'label'=>false, 'class'=>'form-control']); Cakephp 3.x Model Validations are public function validationForFormElements($validator) { $validator ->add('text', [ 'mustNotEmpty'=>[ 'rule'=>'checkForText', 'provider'=>'table', 'message'=>'' ] ]) ->add('textarea', [ 'mustNotEmpty'=>[ 'rule'=>'checkForTextarea', 'provider'=>'table', 'message'=>'' ] ]); return $validator; } function checkForText($value, $context) { if(!empty($context['data']['text'])) { foreach($context['data']['text'] as $key=>$val) { if(empty($val['title'])) { *I have no idea how add validation error on particular index* } } } return true; } function checkForTextarea($value, $context) { if(!empty($context['data']['textarea'])) { foreach($context['data']['textarea'] as $key=>$val) { if(empty($val['title'])) { *I have no idea how add validation error on particular index* } } } return true; } *Do you get any error messages?* I did not get any error messages Please let me know if anything is not clear. On Thursday, April 23, 2015 at 10:30:23 PM UTC+5:30, John Andersen wrote: > > Please provide more information and also real life examples of your form > code, so that we may better be able to help. > > Have you studied the CakePHP book? > What have you tried? > What does not work? > Do you get any error messages? > > Please show the validation code you have tried, the code for the form and > whatever else that may help us understand your problem. > > Kind regards > John Aage Andersen > > On Wednesday, 22 April 2015 01:30:20 UTC+3, Cake Developer wrote: >> >> Hi, >> >> I am facing issue on form input validations errors. my input fields are >> following >> >> $this->Form->input('FormElements.text.1.title', ['type'=>'text', >> 'label'=>false, 'class'=>'form-control']); >> >> $this->Form->input('FormElements.text.2.title', ['type'=>'text', >> 'label'=>false, 'class'=>'form-control']); >> >> $this->Form->input('FormElements.textarea.1.description', >> ['type'=>'textarea', 'label'=>false, 'class'=>'form-control']); >> >> $this->Form->input('FormElements.textarea.2.description', >> ['type'=>'textarea', 'label'=>false, 'class'=>'form-control']); >> >> Please help me anyone to apply validation rules and display errors. >> >> Thanks in advance. >> > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: Cakephp 3.x Validation Error issue
Hi Experts, any help? On Wednesday, April 22, 2015 at 4:00:20 AM UTC+5:30, Cake Developer wrote: > > Hi, > > I am facing issue on form input validations errors. my input fields are > following > > $this->Form->input('FormElements.text.1.title', ['type'=>'text', > 'label'=>false, 'class'=>'form-control']); > > $this->Form->input('FormElements.text.2.title', ['type'=>'text', > 'label'=>false, 'class'=>'form-control']); > > $this->Form->input('FormElements.textarea.1.description', > ['type'=>'textarea', 'label'=>false, 'class'=>'form-control']); > > $this->Form->input('FormElements.textarea.2.description', > ['type'=>'textarea', 'label'=>false, 'class'=>'form-control']); > > Please help me anyone to apply validation rules and display errors. > > Thanks in advance. > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Cakephp 3.x Validation Error issue
Hi, I am facing issue on form input validations errors. my input fields are following $this->Form->input('FormElements.text.1.title', ['type'=>'text', 'label'=>false, 'class'=>'form-control']); $this->Form->input('FormElements.text.2.title', ['type'=>'text', 'label'=>false, 'class'=>'form-control']); $this->Form->input('FormElements.textarea.1.description', ['type'=>'textarea', 'label'=>false, 'class'=>'form-control']); $this->Form->input('FormElements.textarea.2.description', ['type'=>'textarea', 'label'=>false, 'class'=>'form-control']); Please help me anyone to apply validation rules and display errors. Thanks in advance. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: Cakephp 3.0 Get and Modify Query conditions in beforeFind function
Hi, Ok I managed solution. Thanks On Thursday, January 29, 2015 at 8:26:57 PM UTC+5:30, Cake Developer wrote: > > Hi Mark Story, > > any help please? > > thanks > > On Friday, January 23, 2015 at 6:02:46 PM UTC+5:30, Cake Developer wrote: >> >> Hi Josh, >> >> I tried both PlumSearch and Search Plugin in my application and they are >> not working as expected. >> >> They are adding search arguments in existing conditions in query object. >> >> Failing Situation. >> Existing condition has Users.active = 1 and If new condition array has >> Users.active = 0 so this way merged conditions will have Users.active = 1 >> AND Users.active = 0 //No Result >> >> I believe it is really a issue. >> >> Thanks in advance. >> > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
How to get all classes of given type in cakephp 3.0
Hello Experts, How to get all classes of given type in cakephp 3.0 for example we have in cakephp 2.x `App::objects('plugin');` returns `array('DebugKit', 'Blog', 'User');` `App::objects('Controller');` returns `array('PagesController', 'BlogController');` Thanks -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: Validate a multiple select in cakephp 3.0
Hi Jose, for example Form->input('courses', ['type'=>'select', 'multiple'=>true, 'options'=>$courses, 'label'=>false, 'div'=>false, 'autocomplete'=>'off', 'class'=>'form-control']); ?> user may select 1 or many courses. On Friday, February 27, 2015 at 7:12:20 PM UTC+5:30, José Lorenzo wrote: > > What field are you trying to validate? > > On Friday, February 27, 2015 at 2:02:00 PM UTC+1, Cake Developer wrote: >> >> I see cakephp 3.0 has same multiple select validation but I am getting >> error Array to string conversion >> >> here is what I tried >> >> ->notEmpty('input_field', __('Please select option(s)')) >> ->add('input_field', [ >> 'multiple'=>[ >> 'rule'=>['multiple', ['min'=>1]], >> 'message'=>'Please select option' >> ] >> ]) >> >> >> >> On Friday, February 27, 2015 at 6:08:41 PM UTC+5:30, Cake Developer wrote: >>> >>> Hello Experts, >>> >>> We have multiple select validation in cakephp 2.x >>> public static function multiple($check, $options = array(), >>> $caseInsensitive = false) { >>> .. >>> } >>> >>> any idea what is equivalent validation in cakephp 3.0 ? >>> >>> Thanks >>> >> -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: cakephp 3.0 supporting web hosting list
Hi Mark, Thanks I will check it out. Can you check and answer of my other issue regarding get and modify conditions? here is a link https://groups.google.com/forum/#!topic/cake-php/rOINCsXs2Vg Thanks On Friday, February 27, 2015 at 6:35:02 PM UTC+5:30, mark_story wrote: > > Linode also has a vps for $10/mth which has been pretty great for me so > far and provides what CakePHP needs. Their support has been pretty great > from the few times I have needed to use it. > > -mark -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: Validate a multiple select in cakephp 3.0
I see cakephp 3.0 has same multiple select validation but I am getting error Array to string conversion here is what I tried ->notEmpty('input_field', __('Please select option(s)')) ->add('input_field', [ 'multiple'=>[ 'rule'=>['multiple', ['min'=>1]], 'message'=>'Please select option' ] ]) On Friday, February 27, 2015 at 6:08:41 PM UTC+5:30, Cake Developer wrote: > > Hello Experts, > > We have multiple select validation in cakephp 2.x > public static function multiple($check, $options = array(), > $caseInsensitive = false) { > .. > } > > any idea what is equivalent validation in cakephp 3.0 ? > > Thanks > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Validate a multiple select in cakephp 3.0
Hello Experts, We have multiple select validation in cakephp 2.x public static function multiple($check, $options = array(), $caseInsensitive = false) { .. } any idea what is equivalent validation in cakephp 3.0 ? Thanks -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: cakephp 3.0 supporting web hosting list
Hi Jose, FYI today I got solution from hostgator they have enabled INTL extension. Thanks On Thursday, February 26, 2015 at 7:04:54 PM UTC+5:30, Cake Developer wrote: > > Hi Jose, > > This is what I told you, This is first time I did not get support form > hostgator in last 5 years. > > On Thursday, February 26, 2015 at 7:01:27 PM UTC+5:30, José Lorenzo wrote: >> >> Is waiting 45 days for an answer quick support? :P >> >> On Thursday, February 26, 2015 at 2:18:08 PM UTC+1, Cake Developer wrote: >>> >>> Hi Jose, >>> >>> I am using Hostgator since last 5 years they have instant support for >>> any issue with toll free number. I see digital ocean has no quick support >>> https://www.digitalocean.com/company/contact. This is the first time I >>> face issue with hostgator. >>> >>> Thanks >>> >>> >>> >>> On Thursday, February 26, 2015 at 6:00:07 PM UTC+5:30, José Lorenzo >>> wrote: >>>> >>>> That is a lot of money! I guess you are hosting plenty sites in that >>>> server. >>>> >>>> You can compare with DigitalOcean, for example, you get a very decent >>>> server for 160$ a year. https://www.digitalocean.com/pricing/ >>>> >>>> It requires a bit of server management knowledge, though. That is what >>>> you are paying for in hostgator. >>>> >>>> On Thursday, February 26, 2015 at 12:16:54 PM UTC+1, Cake Developer >>>> wrote: >>>>> >>>>> Hello Jose, >>>>> >>>>> I am paying $180/yearly($15/month) to hostgator business plan. and I >>>>> checked godaddy and found Ultimate plan $180/year which is equivalent to >>>>> hostgator business plan. >>>>> but godaddy delux plan is okay with cost $108/year >>>>> >>>>> Thanks >>>>> >>>>> On Thursday, February 26, 2015 at 3:47:46 PM UTC+5:30, José Lorenzo >>>>> wrote: >>>>>> >>>>>> I'd like to ask you a couple things, for curiosity sake. How much are >>>>>> you paying in hostgator? and in your opinion is 5$ a month is an >>>>>> expensive >>>>>> deal? >>>>>> >>>>>> On Thursday, February 26, 2015 at 10:22:24 AM UTC+1, Cake Developer >>>>>> wrote: >>>>>>> >>>>>>> Hi Jose, >>>>>>> >>>>>>> You won't believe I asked to hostgator so many times to install INTL >>>>>>> extension. My ticket on hosgator is in pending status since last 45 >>>>>>> days. I >>>>>>> keep emailing/phone call them to resolve the ticket. But same response >>>>>>> they >>>>>>> cannot support INTL. I am waiting till final version of cakephp 3.0 >>>>>>> release >>>>>>> date If they come up with solution otherwise I will ask to refund. >>>>>>> >>>>>>> Thanks I will try to switch on godaddy. >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Thursday, February 26, 2015 at 2:36:03 PM UTC+5:30, José Lorenzo >>>>>>> wrote: >>>>>>>> >>>>>>>> Even godaddy supports 5.4 and intl, and I wouldn't say they are >>>>>>>> expensive. >>>>>>>> >>>>>>>> Ask your provider to install the intl extension, as it comes by a >>>>>>>> default in php 5.4. The more people asking for it, the quicker they >>>>>>>> will >>>>>>>> install it :) >>>>>>>> >>>>>>>> On Thursday, February 26, 2015 at 9:32:13 AM UTC+1, Cake Developer >>>>>>>> wrote: >>>>>>>>> >>>>>>>>> Hi Jose, >>>>>>>>> >>>>>>>>> I am using shared hosting from hostgator.com (business plan) with >>>>>>>>> php 5.4.38 and they do not support INTL extension also VPS solution >>>>>>>>> of >>>>>>>>> hostgator does not support INTL. Other provider's VPS may support >>>>>>>>> INTL as >>>>>>>>> per your thought. >>>>>>>>> >>>>>>>>> But what I am thinking, only rich people can use cakephp 3.0 >>>>>>>>> because they can only afford VPS cost. The only issue is INTL >>>>>>>>> extension. >>>>>>>>> what do you think how middle class people will use cakephp 3.0 ? >>>>>>>>> >>>>>>>>> Thanks >>>>>>>>> >>>>>>>>> >>>>>>>>> On Wednesday, February 25, 2015 at 7:58:14 PM UTC+5:30, Cake >>>>>>>>> Developer wrote: >>>>>>>>>> >>>>>>>>>> Hello experts, >>>>>>>>>> >>>>>>>>>> Please provide the web hosting list that support cakephp 3.0. >>>>>>>>>> >>>>>>>>>> thanks >>>>>>>>>> >>>>>>>>> -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: cakephp 3.0 supporting web hosting list
Hi Jose, This is what I told you, This is first time I did not get support form hostgator in last 5 years. On Thursday, February 26, 2015 at 7:01:27 PM UTC+5:30, José Lorenzo wrote: > > Is waiting 45 days for an answer quick support? :P > > On Thursday, February 26, 2015 at 2:18:08 PM UTC+1, Cake Developer wrote: >> >> Hi Jose, >> >> I am using Hostgator since last 5 years they have instant support for any >> issue with toll free number. I see digital ocean has no quick support >> https://www.digitalocean.com/company/contact. This is the first time I >> face issue with hostgator. >> >> Thanks >> >> >> >> On Thursday, February 26, 2015 at 6:00:07 PM UTC+5:30, José Lorenzo wrote: >>> >>> That is a lot of money! I guess you are hosting plenty sites in that >>> server. >>> >>> You can compare with DigitalOcean, for example, you get a very decent >>> server for 160$ a year. https://www.digitalocean.com/pricing/ >>> >>> It requires a bit of server management knowledge, though. That is what >>> you are paying for in hostgator. >>> >>> On Thursday, February 26, 2015 at 12:16:54 PM UTC+1, Cake Developer >>> wrote: >>>> >>>> Hello Jose, >>>> >>>> I am paying $180/yearly($15/month) to hostgator business plan. and I >>>> checked godaddy and found Ultimate plan $180/year which is equivalent to >>>> hostgator business plan. >>>> but godaddy delux plan is okay with cost $108/year >>>> >>>> Thanks >>>> >>>> On Thursday, February 26, 2015 at 3:47:46 PM UTC+5:30, José Lorenzo >>>> wrote: >>>>> >>>>> I'd like to ask you a couple things, for curiosity sake. How much are >>>>> you paying in hostgator? and in your opinion is 5$ a month is an >>>>> expensive >>>>> deal? >>>>> >>>>> On Thursday, February 26, 2015 at 10:22:24 AM UTC+1, Cake Developer >>>>> wrote: >>>>>> >>>>>> Hi Jose, >>>>>> >>>>>> You won't believe I asked to hostgator so many times to install INTL >>>>>> extension. My ticket on hosgator is in pending status since last 45 >>>>>> days. I >>>>>> keep emailing/phone call them to resolve the ticket. But same response >>>>>> they >>>>>> cannot support INTL. I am waiting till final version of cakephp 3.0 >>>>>> release >>>>>> date If they come up with solution otherwise I will ask to refund. >>>>>> >>>>>> Thanks I will try to switch on godaddy. >>>>>> >>>>>> >>>>>> >>>>>> On Thursday, February 26, 2015 at 2:36:03 PM UTC+5:30, José Lorenzo >>>>>> wrote: >>>>>>> >>>>>>> Even godaddy supports 5.4 and intl, and I wouldn't say they are >>>>>>> expensive. >>>>>>> >>>>>>> Ask your provider to install the intl extension, as it comes by a >>>>>>> default in php 5.4. The more people asking for it, the quicker they >>>>>>> will >>>>>>> install it :) >>>>>>> >>>>>>> On Thursday, February 26, 2015 at 9:32:13 AM UTC+1, Cake Developer >>>>>>> wrote: >>>>>>>> >>>>>>>> Hi Jose, >>>>>>>> >>>>>>>> I am using shared hosting from hostgator.com (business plan) with >>>>>>>> php 5.4.38 and they do not support INTL extension also VPS solution of >>>>>>>> hostgator does not support INTL. Other provider's VPS may support INTL >>>>>>>> as >>>>>>>> per your thought. >>>>>>>> >>>>>>>> But what I am thinking, only rich people can use cakephp 3.0 >>>>>>>> because they can only afford VPS cost. The only issue is INTL >>>>>>>> extension. >>>>>>>> what do you think how middle class people will use cakephp 3.0 ? >>>>>>>> >>>>>>>> Thanks >>>>>>>> >>>>>>>> >>>>>>>> On Wednesday, February 25, 2015 at 7:58:14 PM UTC+5:30, Cake >>>>>>>> Developer wrote: >>>>>>>>> >>>>>>>>> Hello experts, >>>>>>>>> >>>>>>>>> Please provide the web hosting list that support cakephp 3.0. >>>>>>>>> >>>>>>>>> thanks >>>>>>>>> >>>>>>>> -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: cakephp 3.0 supporting web hosting list
Hi Jose, I am using Hostgator since last 5 years they have instant support for any issue with toll free number. I see digital ocean has no quick support https://www.digitalocean.com/company/contact. This is the first time I face issue with hostgator. Thanks On Thursday, February 26, 2015 at 6:00:07 PM UTC+5:30, José Lorenzo wrote: > > That is a lot of money! I guess you are hosting plenty sites in that > server. > > You can compare with DigitalOcean, for example, you get a very decent > server for 160$ a year. https://www.digitalocean.com/pricing/ > > It requires a bit of server management knowledge, though. That is what you > are paying for in hostgator. > > On Thursday, February 26, 2015 at 12:16:54 PM UTC+1, Cake Developer wrote: >> >> Hello Jose, >> >> I am paying $180/yearly($15/month) to hostgator business plan. and I >> checked godaddy and found Ultimate plan $180/year which is equivalent to >> hostgator business plan. >> but godaddy delux plan is okay with cost $108/year >> >> Thanks >> >> On Thursday, February 26, 2015 at 3:47:46 PM UTC+5:30, José Lorenzo wrote: >>> >>> I'd like to ask you a couple things, for curiosity sake. How much are >>> you paying in hostgator? and in your opinion is 5$ a month is an expensive >>> deal? >>> >>> On Thursday, February 26, 2015 at 10:22:24 AM UTC+1, Cake Developer >>> wrote: >>>> >>>> Hi Jose, >>>> >>>> You won't believe I asked to hostgator so many times to install INTL >>>> extension. My ticket on hosgator is in pending status since last 45 days. >>>> I >>>> keep emailing/phone call them to resolve the ticket. But same response >>>> they >>>> cannot support INTL. I am waiting till final version of cakephp 3.0 >>>> release >>>> date If they come up with solution otherwise I will ask to refund. >>>> >>>> Thanks I will try to switch on godaddy. >>>> >>>> >>>> >>>> On Thursday, February 26, 2015 at 2:36:03 PM UTC+5:30, José Lorenzo >>>> wrote: >>>>> >>>>> Even godaddy supports 5.4 and intl, and I wouldn't say they are >>>>> expensive. >>>>> >>>>> Ask your provider to install the intl extension, as it comes by a >>>>> default in php 5.4. The more people asking for it, the quicker they will >>>>> install it :) >>>>> >>>>> On Thursday, February 26, 2015 at 9:32:13 AM UTC+1, Cake Developer >>>>> wrote: >>>>>> >>>>>> Hi Jose, >>>>>> >>>>>> I am using shared hosting from hostgator.com (business plan) with >>>>>> php 5.4.38 and they do not support INTL extension also VPS solution of >>>>>> hostgator does not support INTL. Other provider's VPS may support INTL >>>>>> as >>>>>> per your thought. >>>>>> >>>>>> But what I am thinking, only rich people can use cakephp 3.0 because >>>>>> they can only afford VPS cost. The only issue is INTL extension. >>>>>> what do you think how middle class people will use cakephp 3.0 ? >>>>>> >>>>>> Thanks >>>>>> >>>>>> >>>>>> On Wednesday, February 25, 2015 at 7:58:14 PM UTC+5:30, Cake >>>>>> Developer wrote: >>>>>>> >>>>>>> Hello experts, >>>>>>> >>>>>>> Please provide the web hosting list that support cakephp 3.0. >>>>>>> >>>>>>> thanks >>>>>>> >>>>>> -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: cakephp 3.0 supporting web hosting list
Hello Jose, I am paying $180/yearly($15/month) to hostgator business plan. and I checked godaddy and found Ultimate plan $180/year which is equivalent to hostgator business plan. but godaddy delux plan is okay with cost $108/year Thanks On Thursday, February 26, 2015 at 3:47:46 PM UTC+5:30, José Lorenzo wrote: > > I'd like to ask you a couple things, for curiosity sake. How much are you > paying in hostgator? and in your opinion is 5$ a month is an expensive > deal? > > On Thursday, February 26, 2015 at 10:22:24 AM UTC+1, Cake Developer wrote: >> >> Hi Jose, >> >> You won't believe I asked to hostgator so many times to install INTL >> extension. My ticket on hosgator is in pending status since last 45 days. I >> keep emailing/phone call them to resolve the ticket. But same response they >> cannot support INTL. I am waiting till final version of cakephp 3.0 release >> date If they come up with solution otherwise I will ask to refund. >> >> Thanks I will try to switch on godaddy. >> >> >> >> On Thursday, February 26, 2015 at 2:36:03 PM UTC+5:30, José Lorenzo wrote: >>> >>> Even godaddy supports 5.4 and intl, and I wouldn't say they are >>> expensive. >>> >>> Ask your provider to install the intl extension, as it comes by a >>> default in php 5.4. The more people asking for it, the quicker they will >>> install it :) >>> >>> On Thursday, February 26, 2015 at 9:32:13 AM UTC+1, Cake Developer wrote: >>>> >>>> Hi Jose, >>>> >>>> I am using shared hosting from hostgator.com (business plan) with php >>>> 5.4.38 and they do not support INTL extension also VPS solution of >>>> hostgator does not support INTL. Other provider's VPS may support INTL as >>>> per your thought. >>>> >>>> But what I am thinking, only rich people can use cakephp 3.0 because >>>> they can only afford VPS cost. The only issue is INTL extension. >>>> what do you think how middle class people will use cakephp 3.0 ? >>>> >>>> Thanks >>>> >>>> >>>> On Wednesday, February 25, 2015 at 7:58:14 PM UTC+5:30, Cake Developer >>>> wrote: >>>>> >>>>> Hello experts, >>>>> >>>>> Please provide the web hosting list that support cakephp 3.0. >>>>> >>>>> thanks >>>>> >>>> -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: cakephp 3.0 supporting web hosting list
Hi Jose, You won't believe I asked to hostgator so many times to install INTL extension. My ticket on hosgator is in pending status since last 45 days. I keep emailing/phone call them to resolve the ticket. But same response they cannot support INTL. I am waiting till final version of cakephp 3.0 release date If they come up with solution otherwise I will ask to refund. Thanks I will try to switch on godaddy. On Thursday, February 26, 2015 at 2:36:03 PM UTC+5:30, José Lorenzo wrote: > > Even godaddy supports 5.4 and intl, and I wouldn't say they are expensive. > > Ask your provider to install the intl extension, as it comes by a default > in php 5.4. The more people asking for it, the quicker they will install it > :) > > On Thursday, February 26, 2015 at 9:32:13 AM UTC+1, Cake Developer wrote: >> >> Hi Jose, >> >> I am using shared hosting from hostgator.com (business plan) with php >> 5.4.38 and they do not support INTL extension also VPS solution of >> hostgator does not support INTL. Other provider's VPS may support INTL as >> per your thought. >> >> But what I am thinking, only rich people can use cakephp 3.0 because they >> can only afford VPS cost. The only issue is INTL extension. >> what do you think how middle class people will use cakephp 3.0 ? >> >> Thanks >> >> >> On Wednesday, February 25, 2015 at 7:58:14 PM UTC+5:30, Cake Developer >> wrote: >>> >>> Hello experts, >>> >>> Please provide the web hosting list that support cakephp 3.0. >>> >>> thanks >>> >> -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: cakephp 3.0 supporting web hosting list
Hi Jose, I am using shared hosting from hostgator.com (business plan) with php 5.4.38 and they do not support INTL extension also VPS solution of hostgator does not support INTL. Other provider's VPS may support INTL as per your thought. But what I am thinking, only rich people can use cakephp 3.0 because they can only afford VPS cost. The only issue is INTL extension. what do you think how middle class people will use cakephp 3.0 ? Thanks On Wednesday, February 25, 2015 at 7:58:14 PM UTC+5:30, Cake Developer wrote: > > Hello experts, > > Please provide the web hosting list that support cakephp 3.0. > > thanks > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
cakephp 3.0 supporting web hosting list
Hello experts, Please provide the web hosting list that support cakephp 3.0. thanks -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: Cakephp 3.0 Get and Modify Query conditions in beforeFind function
Hi Mark Story, any help please? thanks On Friday, January 23, 2015 at 6:02:46 PM UTC+5:30, Cake Developer wrote: > > Hi Josh, > > I tried both PlumSearch and Search Plugin in my application and they are > not working as expected. > > They are adding search arguments in existing conditions in query object. > > Failing Situation. > Existing condition has Users.active = 1 and If new condition array has > Users.active = 0 so this way merged conditions will have Users.active = 1 > AND Users.active = 0 //No Result > > I believe it is really a issue. > > Thanks in advance. > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: Cakephp 3.0 Get and Modify Query conditions in beforeFind function
Hi Josh, I tried both PlumSearch and Search Plugin in my application and they are not working as expected. They are adding search arguments in existing conditions in query object. Failing Situation. Existing condition has Users.active = 1 and If new condition array has Users.active = 0 so this way merged conditions will have Users.active = 1 AND Users.active = 0 //No Result I believe it is really a issue. Thanks in advance. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: Cakephp 3.0 Get and Modify Query conditions in beforeFind function
Hi Experts, Can anyone solve my problem please? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: Cakephp 3.0 Get and Modify Query conditions in beforeFind function
Hi Josh, Thanks for your answer. I tried both PlumSearch and Search Plugin in my application and they are not working as expected. They are adding search argumentsin existing conditions in query object. Failing Situation. Existing condition has Users.active = 1 and If new condition array has Users.active = 0 so this way merged conditions will have Users.active = 1 AND Users.active = 0 //No Result If you think I am trying to complicate it then what about failure cases? It is not a good idea to match each new condition in original conditions by traverse the query. I believe this would be helpful to every programmers if we find out a simple and perfect solution. Thanks in advance. On Monday, January 19, 2015 at 11:35:57 PM UTC+5:30, José Lorenzo wrote: > > I don't think it is possible in an easy way, I also think you are trying > to complicate the problem, given the existence of other clean solutions > that already work. > > There are two methods that clause('where') object has that can be used to > traverse the query. They are iterateParts() and traverse(). iterateParts() > will call the passed function for each of the conditions in the same level > of depth. traverse() will call the passed function for all the conditions > that are stored in a ExpressionInterface object. > > There are basically 2 types of interesting ExpressionInterface objects. > QueryExpression (contains multiple conditions in the same level and you can > call iterateParts() on it) and Comparison, which is a single condition. > > With a bit (maybe a lot) of work you can traverse each of the levels of > conditions and build an array out of it. Again, sounds like something > complicated for something that can be done differently in a simpler way. > > On Monday, January 19, 2015 at 5:45:55 PM UTC+1, Cake Developer wrote: >> >> Hi Jose, >> >> I gone through both of the plugin links you provided, It seems they are >> complicated and do not meet my requirements. >> >> I am trying to write a generic solution to filter records with less code. >> Is there any way to get original conditions from query object as an array >> format. >> >> For e.g. >> >> $this->paginate = ['conditions'=>['Users.active'=>1]]; >> >> I want original conditions in beforeFind method like >> >> function beforeFind(Event $event, Query $query, $options, $primary) { >> $orgCondtions = $query->clause('where'); //it returns Expression >> Object >> >> $orgCondtions = convertExpressionObjectToArray($orgCondtions); >> pr($orgCondtions); >> output should be array('Users.active'=>1) >> } >> >> >> I am looking for a way to convert Expression Object to Array. Please help >> me if possible. >> >> Thanks in advance. >> >> >> >> On Mon, Jan 19, 2015 at 4:22 PM, José Lorenzo > > wrote: >> >>> Sorry, I forgot to answer... What you are doing sounds similar to what >>> some plugins are doing as well. Please try these: >>> >>> https://github.com/skie/plum_search >>> >>> https://github.com/FriendsOfCake/search >>> >>> As for the second case. I suggest doing as I suggested at the beginning, >>> use the query options to hint the beforeFind() or any other finder method >>> on what to do or overwrite. That way you can avoid traversing the >>> conditions tree. >>> >>> If you are in absolute need of inspecting the where clause and modifying >>> stuff, you will need to do as follows: >>> >>> $query->clause('where')->traverse(function ($expression) { >>> if ($expression instanceof \Cake\Database\Expression\Comparison) { >>> if ($expression->getField() === 'Users.active' && >>> $expression->getValue() === true) { >>> $expression->setValue(false); >>> } >>> } >>> }); >>> >>> But that can get a bit complicated and difficult to read. Hence my >>> suggestion to treat the Query as a command by passing options to it. >>> >>> >>> On Monday, January 19, 2015 at 10:32:22 AM UTC+1, Cake Developer wrote: >>>> >>>> Hi Experts, >>>> >>>> any help? >>>> >>>> Thanks in advance. >>>> >>>> On Friday, January 16, 2015 at 12:47:39 AM UTC+5:30, José Lorenzo wrote: >>>>> >>>>> Even though that is possible you are tying to do it the hard way. The >>>>> easie
Re: Cakephp 3.0 Get and Modify Query conditions in beforeFind function
Hi Experts, any help? Thanks in advance. On Friday, January 16, 2015 at 12:47:39 AM UTC+5:30, José Lorenzo wrote: > > Even though that is possible you are tying to do it the hard way. The > easiest way you can implement the same is by using the query as a "command" > object, > thus instructing the custom finders to do stuff based on the passed > options. An example > > $table->find('forUser', ['user' => $user])->find('withStatus', ['status' > => 'active']); > > Then in your table you would create your finders this way: > > public function finWithStatus($query, $options) { > if (!empty($options['user'])) { > // The user is available from the previous finder, I can add more > conditions here based on that > } > } > > > I guess the best way I can help you find the best strategy is if you > mention what exactly you are trying to do :D > On Thursday, January 15, 2015 at 3:26:09 PM UTC+1, Cake Developer wrote: >> >> Hello, >> >> I am trying to get and modify query conditions in beforeFind function of >> Behaviour. >> >> function beforeFind(Event $event, Query $query, $options, $primary) { >>// here is what I tried so far. >> $conditions = $query->clause('where'); >> // this gives me Object of Expression Interface and I am not able to >> convert it in condition array like we have in cakephp 2.x >> >> //what I want to achieve... >> //I want to modify existing conditions in query. >> //I want to add new condition in query >> >> } >> >> I spent last 2 days but could not figure out any solution. >> Thanks for any help you may be able to provide regarding this. >> >> -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: Cakephp 3.0 Get and Modify Query conditions in beforeFind function
Hi Josh, Thanks for the answer. Let me explain what I am trying to achieve. I am working on filter records based on data entered on search form. ---Controller code $this->paginate = ['searchFilter'=>true, 'limit'=>10, 'order'=>['Users.id'=>'DESC'], 'conditions'=>['Users.active'=>1]]; $users = $this->paginate('Users')->toArray(); $this->set(compact('users')); View code Here are search form fields for example First Name, Last Name, Email, Status("", Active, Inactive) etc these should be anything based on configuration [Search][Reset] buttons Users data in HTML table Searchable Behaviour FYI- In Search Component I attach a Search behaviour with current model table and pass predefined Search Form Fields(same we displayed in view) to behaviour as config. function beforeFind(Event $event, Query $query, $options, $primary) { // here I have Search Form Fields and based on 'searchFilter' option in $options array I can modify only desired Query. Case 1- I can make a new condition array based on search form fields. and call $query->where($cond); This way it adds new conditions in existing conditions in query object. Failing Situation. Existing condition has Users.active = 1 and If new condition array has Users.active = 0 so this way merged conditions will have Users.active = 1 AND Users.active = 0 //No Result Case 2- I can make a new condition array based on search form fields. and call $query->where($cond, [], ture); This way it overwrite exiting conditions with new conditions in query object. Failing Situation. Existing condition has Users.active = 1 and If new condition array *has not* Users.active field so this way wrong result comes, means inactive users also comes. //in this case original condition should preserve. // What I want solution is If some how I get existing condition as an array then I can modify them and can call $query->where($cond, [], ture); //As we do in cakephp 2.x. return $query; } I hope it's clear to you. Please let me know if you want any more clarification. Thanks On Friday, January 16, 2015 at 12:47:39 AM UTC+5:30, José Lorenzo wrote: > > Even though that is possible you are tying to do it the hard way. The > easiest way you can implement the same is by using the query as a "command" > object, > thus instructing the custom finders to do stuff based on the passed > options. An example > > $table->find('forUser', ['user' => $user])->find('withStatus', ['status' > => 'active']); > > Then in your table you would create your finders this way: > > public function finWithStatus($query, $options) { > if (!empty($options['user'])) { > // The user is available from the previous finder, I can add more > conditions here based on that > } > } > > > I guess the best way I can help you find the best strategy is if you > mention what exactly you are trying to do :D > On Thursday, January 15, 2015 at 3:26:09 PM UTC+1, Cake Developer wrote: >> >> Hello, >> >> I am trying to get and modify query conditions in beforeFind function of >> Behaviour. >> >> function beforeFind(Event $event, Query $query, $options, $primary) { >>// here is what I tried so far. >> $conditions = $query->clause('where'); >> // this gives me Object of Expression Interface and I am not able to >> convert it in condition array like we have in cakephp 2.x >> >> //what I want to achieve... >> //I want to modify existing conditions in query. >> //I want to add new condition in query >> >> } >> >> I spent last 2 days but could not figure out any solution. >> Thanks for any help you may be able to provide regarding this. >> >> -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Cakephp 3.0 Get and Modify Query conditions in beforeFind function
Hello, I am trying to get and modify query conditions in beforeFind function of Behaviour. function beforeFind(Event $event, Query $query, $options, $primary) { // here is what I tried so far. $conditions = $query->clause('where'); // this gives me Object of Expression Interface and I am not able to convert it in condition array like we have in cakephp 2.x //what I want to achieve... //I want to modify existing conditions in query. //I want to add new condition in query } I spent last 2 days but could not figure out any solution. Thanks for any help you may be able to provide regarding this. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Image is not displaying
Hi to All, I have been trying to display the images after they have been uploaded using $this->Html->image(). It provides the right path to the image but the image is not showing. mod_rewrite is working fine, and no error seems to occur. I tried displaying the image directly from the web browser with the link provided in the image path, it gives me the following error: Missing Controller Error: ImgController could not be found. Error: Create the class ImgController below in file: app\Controller\ImgController.php Image location is on default location 'img'. I tried Googling for an hour already with no working result. I am using version 2.4.7 if that helps things sort out. Thanks, Andrew -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: 3.0: a peek into CakePHP's future
Hi i am using cake php in windows in xampp server , when i am trying to do manually bake application it is working fine , but when i use console mode after setting environment vasriables and try to bake in console mode i get this errors Plz help me rectify this error *Warning*: include(Cake\bootstrap.php) [function.include<http://localhost/c12/function.include>]: failed to open stream: No such file or directory in* C:\wamp\www\c12\webroot\index.php* on line *79* *Warning*: include() [function.include<http://localhost/c12/function.include>]: Failed opening 'Cake\bootstrap.php' for inclusion (include_path='C:\wamp\www\lib;.;C:\php5\pear') in * C:\wamp\www\c12\webroot\index.php* on line *79* *Fatal error*: CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your \cake core directory and your \vendors root directory. in *C:\wamp\www\c12\webroot\index.php* on line *88* On Friday, July 6, 2012 8:06:03 AM UTC+5:30, José Lorenzo wrote: > > Since its creation, more than 7 years ago, CakePHP has grown with a life > of its own. Its main goal has always been to empower developers with tools > that are both easy to learn and use, leverage great libraries requiring low > documentation and low dependencies too. We've had several big releases > along these years and an ever growing community. Being one of the most > popular frameworks out there and probably the first one (!) we have also > gotten a lot of criticism from the developer community in general. We have, > though, accepted it and learnt from our mistakes to keep building the best > PHP framework there is. > > CakePHP is known for having a very slow pace of adopting new stuff and it > has served very well to its community. Back when we were doing version 2.0 > we decided to hold on version 5.2 of PHP for multiple reasons and despite > it didn't let us innovate as much as we wished to, it was an excellent > choice given the general environment regarding hosting solutions and > general adoption of PHP 5.3. A look back into the past reminded us that we > were big innovators in PHP, bringing features to developers that few dreamt > possible to do in this language. Now, it's time to look ahead in future and > decide on staying in our comfort zone or take back our leading position as > innovators. > > So it is with great excitement that we announce we are putting our our > efforts in bringing you the next major release of CakePHP. Version 3.0 will > leverage the new features in PHP 5.4 and will include an important change > in our models and database system. CakePHP 3.0 will not be ready less than > 6 or 8 months and we reckon that, given the rise of cheap cloud hosting > solutions and upcoming release of new operating system versions, there is > no better time to jump on the most current stable version of PHP. > > As you may already know, PHP 5.4 offers awesome features that would > introduce useful new concepts and interesting solutions to old problems. > Closure binding, traits, multibyte support are tools we see of great > usefulness for properly implemented advanced framework features we've had > in mind for a long time. Also new syntax sugar added to the language will > make it more pleasant to write both small and complex applications with the > framework and a always welcomed free performance increase. > > We have a young but already well defined road map for what we want to > accomplish in next release and you are invited to contribute and suggest > what's next: > >- Drop support for 5.2.x and support 5.4+ only >- Add proper namespaces for all classes. This will make it easier to >reuse classes outside CakePHP and to use external libraries and finally no >chances of collisions between your app classes and core ones. >- Use traits were possible and makes sense >- Improve bootstrapping process to allow more developer control and >better performance >- Model layer rewrite: > - Models to return objects from queries > - Datamapper-like paradigm > - Richer query API > - Support for any database type > - Support for more database drivers both PDO and native >- Improve Router: > - Make it faster > - Remove named parameters > - Add support for named routes > - Smarter router prefixes > - Shorter url syntax > > As you may imagine most of the time will be spent or rewriting the model > layer, but it will also be one of the most powerful features CakePHP 3.0 > will have. It's new architecture based on PHP 5.4 capabilities will offer > an easier and more powerful set of
Re: OpenID server/provider component
Requesting the Gurus again. Any help would be a great favor. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
OpenID server/provider component
Greetings! I am experimenting with OpenID as I need to use it for a single-sign-on type application. I used the wonderful OpenID component by Daniel: http://code.42dh.com/openid/ I could successfully make a OpenID consumer application. Thank you! However, I also need to have a OpenID server running to serve the single-sign-on. Why? Only a set of trusted sites are allowed to use this OpenID which is why we need our own server. Further we would be sharing some custom fields using Attribute Exchange. I would really appreciate if someone could guide me in creating a OpenID server component, or extending the existing one. I searched this forum and Internet for help but could not find. Thanks in advance! -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
redirect problem
Everytime I use $this -> redirect( ) to forward to the specific page it adds app/webroot/index.php to the url between "http://www.mywebappdomain.com"; name and "/ controller/action" so it looks like http://www.mywebappdomain.com/app/webroot/index.php/controller/action The page itself is displayed properly but is it something wrong with .htaccess file? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
possible to add a new database connection?
I am developping web app for creating customized surveys. Each user will have own subdomain like client1.mywebapp.com and each client will have their own database for saving surveys and tracking results. I already made it so that the same cakephp source code is used for all subdomain but I want to know if newly created databases can be added to database connection list. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: model find function
I mean I can always go 10 mins with this once in a while. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
model find function
why cakephp is not generating any errors when I go model -> find( 'all', array( 'id' => 5 ) ); instead of model -> find( 'all', array( 'conditions' => array( 'id' => 5 ) ); It is very helpful if it does. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
how can i set up this in cakephp?
I want to add a feature to create a note for all accounts in my system. You can create a note for yourself and note for others. All account will have a page to see all notes in a page and also have a widget to display recent notes in the dashboard. Everytime someone create a note you you will receive an email. To do this, I created a NotesControll class to do this. However now I have a little problem import into the dashboard. I used App:import to use in DashbaordControll class but it's complaining about other components ( Email etc... ) I used in the NotesControll. I am thinking that this NotesControll should been something else ( Components or Behavior... ) If someone can clarify this it would be a big help. Thanks in advance. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
find list
Can I get the search result so that it returns the id as key? so if you are searching for the users I want to get the result returned like this. array( [1] => array( [name] => "jone done" [email] => 'j...@test.com" ), [2] => array( [name] => "mike tyson" [email] => 'm...@test.com" ) ) i tried to use find list specifying the fields but it returns meanless result array( [ 1 ] => "jone done" => "m...@test.com" ) I am using 1.2.8 -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
cakephp gives me a lot of empty page
I found it cakephp likes errors with blank page so we don't know how to solve. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
add extra function to model but cakephp thinks it's query???
I just add an function to model and call that function from another controller. but what i get is the following error. What happen? In Model( department.php ), class Department extends AppModel { var $useDbConfig = 'default_account'; function get_child_dep( $dep_id, $child ){ } } In Controll( orgmap_controller.php ), $this -> loadModel( 'Department' ); $this -> Department -> get_child_dep( 1 ) error message Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'get_child_dep' at line 1 [CORE/cake/libs/ model/datasources/dbo_source.php, line 535] -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Response in object array?
I read somewhere in cakephp 2.0 model -> find will return the object instead of array? Did anyone create a wrapper class so that the "find" function return the array of object for 1.2.8 or 1.3? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Validate from within a model
I always do validation with Jquery plugins not with cakephp function since the form function is limited. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
naming Model
I have following Controller and Model set up manually since the baker is not so easy to use. But somehow I can't get to work. First of all, about the class name, I am not sure why they want to use singular for model and plural for controller and small letters for routes.php. It's been nightmare with cakephp project for last 5 months. class TemplatesController extends AppController { $name = "Templates"; function index(){ } } class Template extends exends Model{ $name = "Template"; } Router::connect('/template_page/:id',array('controller'=>templates', 'action' => 'index', 'client'=>$domains[0]) ); -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
save object in Session Component
I have set up an application object to save all info in session, but I don't know how to save with "cakephp" session. In app_controller, i have set up like this in beforefilter() and beforeRender() but I am not able to retrieve the informatoin when i go to the next page. What I am doing wrong here? beforefilter(){ if( $gwo = unserialize( $this -> Session -> read( "GWO" ) ) instanceof GWO ) ){ $this -> gwo = $gwo; }else{ $this -> gwo = new GWO(); } } and beforeRender(){ $this -> Session -> write( "GWO", serialize( $this -> gwo ) ); } class GWO{ var $curUser; var $curSurv; var $curRev; var $curEmp; var $curDep; var $depList; var $surveyType; var $curSurv_id; } -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
execute query twice in a short time is a problem?
I have a problem saving model in a loop. I am not sure the problem is executing a query twice in such a short time or how I am calling is the problem. I tried with $this -> controller -> Notification -> save but didn't work so i am trying to do with maunally query instead but still get the same result. only the first get saved but not the second one. foreach( $arrEmp as $employeeObj ){ $options = array( "survey_name" => $surveyObj[ 0 ][ 'Survey' ] [ 'survey_name' ] ); $this -> Notification -> create( 'Report card is realeased','', $currentUser[ 'Account' ][ 'id' ], $employeeObj[ 'e' ] [ 'accounts_id' ], 7, "HR Department", $options ); } /** * create function in Notification Component */ function create( $subject, $message="", $creator, $recepient, $type = 0, $from, $options=null ){ $this -> controller -> loadModel('Notification'); $this -> controller -> Notification -> create(); $notification[ 'subject' ] = htmlentities( $subject ); $notification[ 'message' ] = htmlentities( $message ) . $defaultMessage; $notification[ 'from' ] = htmlentities( $from ); $notification[ 'creator' ] = $creator; $notification[ 'sentto' ] = $recepient; $notification[ 'type' ] = $type; foreach( $notification as $key => $value ){ $arrKey[] = $key; $arrValues[] = $value; } $sql .= "INSERT INTO notifications (" . implode( ",", $arrKey ) . ") values (" . implode( "," , $arrValues ) . " )"; $this -> controller -> Notification -> Query( $sql ); } -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
syncing two databases
Is there any way to sync tables schema between two databases? I have already set up a script to push source code to live whenever it's ready, but i want to know there is a way to sync tables to make sure any changes on database will be updated to live database as well. I know there are a couple of ways to do it and saw that desktop application to do it, but i want to know if there are ways that more people follow. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
my app developer with cakephp is slow
Is there anything I need to do before putting my app on live. Now i set false to Cache.disable and 0 to debug, but looks like it takes quite some time to load the page. If there is any way to find a bottle neck I would appreciate, too. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
select multiple options
how can i select multiple options? i do like this but didn't work. select( 'SurveyCategory.'.$index.'.department_list', $department_list, array( 'selected' => array( 232,233 ), 'mutiple' => 'true' ), array( 'multiple'=>'true', 'class' => 'input_selection group_selection' ) ); ?> http://book.cakephp.org/view/3/The-Manual#!/view/728/select -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
session not saved in app controller
I set up my app object in both beforeFilter and afterFilter callback functions class AppController extends Controller{ var $myAppObj; var $components = array("Site" , "Notification", "Auth", "Mailer", "Session"); function beforeFilter(){ $this -> myAppObj = unserailize( $this -> Session -> read( 'AO' ) ); } function afterFilter(){ $this -> Session -> write( 'AO', $this -> myAppObj ); } } however the session 'AO' is not saved when i go to other pages. Do you guys know how I am doing wrong? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
is htaccess problem or cakephp's problem?
My app used to forward to login.php page when user comes into the page but today it started going to index.php/login instead. mydomin.com/login page still exists but when i rediret( /login ) it goes to index.php/login -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
cakephp 2.0 will be like this to save the data?
I hope we can do this oop way pretty soon to save data not the array( which cost me a lot of time to debug ) $obj = new myObject(); $obj -> name = 'myname'; $obj -> save(); $obj = myObject::load(id); $obj -> save(); -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: cakephp model problem
find function doesn't work on component. Say if i execute the following sentence $this -> Account -> find( 'all' ); cakephp execute select from accounts( there is not * ). As long as I get the sql working i don't mind not using the find On Mar 7, 3:49 am, "Krissy Masters" wrote: > Whats wrong with a cake find()? > > If data is coming from a form it would be in $this->data > > Have you read or looked at the cookbook? > > $account = $this->Account->find('first', array('conditions' => > array('Account.username' => $emailAddress))); > > -----Original Message- > From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf > > Of cake-learner > Sent: Monday, March 07, 2011 7:34 AM > To: CakePHP > Subject: cakephp model problem > > Still continue having problem with cakephp model. > > I always have the account empty and don't know why. > > Configure::write( "debug", 2 ); > $emailAddress = $_POST[ 'email_address' ]; > $sql = "SELECT * FROM accounts WHERE username = '" . $emailAddress . > "' LIMIT 1"; > echo $sql; > $account = $this -> Account -> Query( $sql ); > var_dump( $account ); > > The following is the sql executed and works ( can get the result ) > when try to execute this sql sentence on phpmyadmin. > SELECT * FROM accounts WHERE username = '...@xxx.net' LIMIT 1 > > -- > Our newest site for the community: CakePHP Video > Tutorialshttp://tv.cakephp.org > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help > others with their CakePHP related questions. > > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com For more options, visit this group > athttp://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: cakephp model problem
It works when executing that sql. On Mar 7, 3:23 am, Jeremy Burns | Class Outfit wrote: > You're not using Cake here. You are referring to $_POST and then running > plain SQL queries. > > What happens when you run the SQL in a db client? > > Jeremy Burns > Class Outfit > > jeremybu...@classoutfit.comhttp://www.classoutfit.com > > On 7 Mar 2011, at 11:03, cake-learner wrote: > > > Still continue having problem with cakephp model. > > > I always have the account empty and don't know why. > > > Configure::write( "debug", 2 ); > > $emailAddress = $_POST[ 'email_address' ]; > > $sql = "SELECT * FROM accounts WHERE username = '" . $emailAddress . > > "' LIMIT 1"; > > echo $sql; > > $account = $this -> Account -> Query( $sql ); > > var_dump( $account ); > > > The following is the sql executed and works ( can get the result ) > > when try to execute this sql sentence on phpmyadmin. > > SELECT * FROM accounts WHERE username = '...@xxx.net' LIMIT 1 > > > -- > > Our newest site for the community: CakePHP Video > > Tutorialshttp://tv.cakephp.org > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help > > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > > cake-php+unsubscr...@googlegroups.com For more options, visit this group > > athttp://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
cakephp model problem
Still continue having problem with cakephp model. I always have the account empty and don't know why. Configure::write( "debug", 2 ); $emailAddress = $_POST[ 'email_address' ]; $sql = "SELECT * FROM accounts WHERE username = '" . $emailAddress . "' LIMIT 1"; echo $sql; $account = $this -> Account -> Query( $sql ); var_dump( $account ); The following is the sql executed and works ( can get the result ) when try to execute this sql sentence on phpmyadmin. SELECT * FROM accounts WHERE username = 's...@xxx.net' LIMIT 1 -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Creating Shell for cron job
I am setting up the shell so that i can register as a cron job for maintenance tasks. In the past i do it manually and need to check if there is the same process running. If I use the shell I don't need to consider that? Thanks, -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: 1.2.8 cake console
Thanks i got it working. I just had to relogin. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: 1.2.8 cake console
but I can call baker by 'cake bake' On Feb 22, 11:46 am, cake-learner wrote: > i can't get it workig the console. Everytime i typed in "cake -app / > home/myaccount/public_html/dev/app" it just gives me to error saying > like the following > > my app folder is "/home/myaccount/public_html/dev/app". However I am > not sure about "working" directory seems > like as I change the -app path it changes. > > Welcome to CakePHP v1.2.8 Console > --- > Current Paths: > -app: app > -working: /home/myaccount/public_html/dev/app > -root: /home/myaccount/public_html/dev > -core: /home/myaccount/public_html/dev > > Changing Paths: > your working path should be the same as your application path > to change your path use the '-app' param. > Example: -app relative/path/to/myapp or -app /absolute/path/to/myapp > > Available Shells: > > APP/vendors/shells: > - none > > ROOT/vendors/shells: > - none > > CORE/console/libs: > acl > api > bake > console > i18n > schema > testsuite > > To run a command, type 'cake shell_name [args]' > To get help on a specific command, type 'cake shell_name help' > root@host [~]# -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: 1.2.8 cake console
but baker works by going "cake bake" On Feb 22, 11:46 am, cake-learner wrote: > i can't get it workig the console. Everytime i typed in "cake -app / > home/myaccount/public_html/dev/app" it just gives me to error saying > like the following > > my app folder is "/home/myaccount/public_html/dev/app". However I am > not sure about "working" directory seems > like as I change the -app path it changes. > > Welcome to CakePHP v1.2.8 Console > --- > Current Paths: > -app: app > -working: /home/myaccount/public_html/dev/app > -root: /home/myaccount/public_html/dev > -core: /home/myaccount/public_html/dev > > Changing Paths: > your working path should be the same as your application path > to change your path use the '-app' param. > Example: -app relative/path/to/myapp or -app /absolute/path/to/myapp > > Available Shells: > > APP/vendors/shells: > - none > > ROOT/vendors/shells: > - none > > CORE/console/libs: > acl > api > bake > console > i18n > schema > testsuite > > To run a command, type 'cake shell_name [args]' > To get help on a specific command, type 'cake shell_name help' > root@host [~]# -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
1.2.8 cake console
i can't get it workig the console. Everytime i typed in "cake -app / home/myaccount/public_html/dev/app" it just gives me to error saying like the following my app folder is "/home/myaccount/public_html/dev/app". However I am not sure about "working" directory seems like as I change the -app path it changes. Welcome to CakePHP v1.2.8 Console --- Current Paths: -app: app -working: /home/myaccount/public_html/dev/app -root: /home/myaccount/public_html/dev -core: /home/myaccount/public_html/dev Changing Paths: your working path should be the same as your application path to change your path use the '-app' param. Example: -app relative/path/to/myapp or -app /absolute/path/to/myapp Available Shells: APP/vendors/shells: - none ROOT/vendors/shells: - none CORE/console/libs: acl api bake console i18n schema testsuite To run a command, type 'cake shell_name [args]' To get help on a specific command, type 'cake shell_name help' root@host [~]# -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: move to new server
error message on firefox "The page isn't redirecting properly" and when i look at in fiddler it's trying to go back to root(mydomain.com/) 20 times -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: move to new server
yes seems like all files are there. I see router.php is there. yes i was developing the app on the other server. only difference is htaccess files .htaccess root "empty" app/ RewriteEngine on RewriteBase / RewriteRule^$webroot/[L] RewriteRule(.*) webroot/$1[L] webroot/ "empty" and when i set up like that in new server it was making the infinite loop of redirect -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: move to new server
After setting debug to 2, Fatal error: Class 'Router' not found in /home/gowerk/public_html/dev/ cake/dispatcher.php on line 281 -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: move to new server
I debug and removed all errors, but now it doesn't show any thing but a blank page. http://cakephp.org) * Copyright 2005-2010, Cake Software Foundation, Inc. (http:// cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://cakephp.org CakePHP(tm) Project * @package cake * @subpackagecake.app.webroot * @since CakePHP(tm) v 0.2.9 * @version $Revision$ * @modifiedby$LastChangedBy$ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ /** * Use the DS to separate the directories in other defines */ /** * Editing below this line should NOT be necessary. * Change at your own risk. * */ if (!defined('DS')) { define('DS', DIRECTORY_SEPARATOR); } if (!defined('ROOT')) { define('ROOT', dirname(dirname(__FILE__))); } if (!defined('CAKE_CORE_INCLUDE_PATH')) { define('CAKE_CORE_INCLUDE_PATH', ROOT); } if (!defined('APP_DIR')) { define('APP_DIR', "" ); } define( 'CORE_PATH', "/home/gowerk/public_html/dev/" ); if (!defined('WEBROOT_DIR')) { define('WEBROOT_DIR', basename(dirname(__FILE__))); } if (!defined('WWW_ROOT')) { define('WWW_ROOT', dirname(__FILE__) . DS); } if (!include(CORE_PATH . 'cake' . DS . 'bootstrap.php')) { trigger_error("CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your " . DS . "cake core directory and your " . DS . "vendors root directory.", E_USER_ERROR); } if (isset($_GET['url']) && $_GET['url'] === 'favicon.ico') { return; } else { //echo Configure::version(); $Dispatcher = new Dispatcher(); $Dispatcher->dispatch($url); } if (Configure::read() > 0) { echo ""; } ?> -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: move to new server
No I have been trying to get it working and CAKE_CORE_INCLUDE_PATH is not define. Should be like this? if (!defined('ROOT')) { define('ROOT', dirname(dirname(__FILE__))); } if (!defined('CAKE_CORE_INCLUDE_PATH')) { define('CAKE_CORE_INCLUDE_PATH', ROOT); } -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: move to new server
yes it worked on another server, but having the problem after moving files to another server. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: move to new server
I gotta this because CORE_PATH is not define, either. Warning: include(cake/bootstrap.php) [function.include]: failed to open stream: No such file or directory in /home/gowerk/public_html/dev/ app/webroot/index.php on line 57 Warning: include(cake/bootstrap.php) [function.include]: failed to open stream: No such file or directory in /home/gowerk/public_html/dev/ app/webroot/index.php on line 57 Warning: include() [function.include]: Failed opening 'cake/ bootstrap.php' for inclusion (include_path='CAKE_CORE_INCLUDE_PATH:ROOT/APP_DIR/:.:/usr/lib/php:/ usr/local/lib/php') in /home/gowerk/public_html/dev/app/webroot/ index.php on line 57 Fatal error: CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your /cake core directory and your /vendors root directory. in /home/gowerk/public_html/dev/app/webroot/index.php on line 58 -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: move to new server
It seems that it skips index.php on the root and came to webroot/ index.php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: move to new server
and also CORE_PATH is not defined. I think what happen is that it skips index.php on root and came to webroot/index.php because of how I change htaccess is defined. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: move to new server
On Feb 15, 11:04 am, MissYeh wrote: > It seems that the script is unaware what value DS is, it should be a slash. > > Is the following code present in the webroot/index.php file before line 52? > > if (!defined('DS')) { > define('DS', DIRECTORY_SEPARATOR); > } I was playing around with .htaccess and depend on how I set it gives me the same error or infinite loop of redirecting. Here is the whole source for webroot/index.php and the content of each htaccess files are also attach at bottom if (!defined('WEBROOT_DIR')) { define('WEBROOT_DIR', basename(dirname(__FILE__))); } if (!defined('WWW_ROOT')) { define('WWW_ROOT', dirname(__FILE__) . DS); } if (!defined('CORE_PATH')) { if (function_exists('ini_set') && ini_set('include_path', CAKE_CORE_INCLUDE_PATH . PATH_SEPARATOR . ROOT . DS . APP_DIR . DS . PATH_SEPARATOR . ini_get('include_path'))) { define('APP_PATH', null); define('CORE_PATH', null); } else { define('APP_PATH', ROOT . DS . APP_DIR . DS); define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS); } } if (!include(CORE_PATH . 'cake' . DS . 'bootstrap.php')) { trigger_error("CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your " . DS . "cake core directory and your " . DS . "vendors root directory.", E_USER_ERROR); } if (isset($_GET['url']) && $_GET['url'] === 'favicon.ico') { return; } else { //echo Configure::version(); $Dispatcher = new Dispatcher(); $Dispatcher->dispatch($url); } if (Configure::read() > 0) { echo ""; currently I have root RewriteEngine on RewriteBase/ RewriteRule^$ app/webroot/[L] RewriteRule(.*) app/webroot/$1 [L] app/ RewriteEngine on RewriteRule^$/webroot/[L] RewriteRule(.*) /webroot/$1[L] app/webroot/ RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /index.php?url=$1 [QSA,L] and in httpd.conf i have subfolder "dev" as DocumentRoot and all files ( including cake, app folders ) for cakephp are in this folder -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
move to new server
*I just moved my cakephp app to new server and have some configuration issue. I got the following message and need to specify the `* CAKE_CORE_INCLUDE_PATH` but can`t find any place to specify. Can I just add to core.php? *Warning*: include(cakeDSbootstrap.php) [function.include<http://dev.gowerk.net/function.include>]: failed to open stream: No such file or directory in * /home/gowerk/public_html/dev/app/webroot/index.php* on line *52* *Warning*: include(cakeDSbootstrap.php) [function.include<http://dev.gowerk.net/function.include>]: failed to open stream: No such file or directory in * /home/gowerk/public_html/dev/app/webroot/index.php* on line *52* *Warning*: include() [function.include<http://dev.gowerk.net/function.include>]: Failed opening 'cakeDSbootstrap.php' for inclusion (include_path='CAKE_CORE_INCLUDE_PATH:ROOTDSAPP_DIRDS:.:/usr/lib/php:/usr/local/lib/php') in */home/gowerk/public_html/dev/app/webroot/index.php* on line *52* *Fatal error*: CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your DScake core directory and your DSvendors root directory. in */home/gowerk/public_html/dev/app/webroot/index.php* on line * 53* -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
find all not working.
Very often i got this error and i had to do custom query why it's not putting '*'? $this -> loadModel( 'Company.Role' ); $this -> Role -> useDbConfig = $this -> db_name; $arrRoles = $this -> Role -> find( "all" ); Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM `roles` AS `Role` WHERE 1 = 1' at line 1 [CORE/cake/libs/model/datasources/dbo_source.php, line 535] Code | Context $sql= "SELECT FROM `roles` AS `Role` WHERE 1 = 1 " $error = "1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM `roles` AS `Role` WHERE 1 = 1' at line 1" -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
should be able to access model easier
Why not we can't access models by $this -> Controller -> ModelName( I meant all models defined in $uses ) or $this -> Controller -> Uses -> ModelName? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
jqgrid?
Has anyone try to integrate cakephp 1.3 with Jqgrid? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Is there any way to display error when working on ajax request?
I set up one class to handle all ajax request called ajax_controll. The thing is everytime I develop a function and there is some kind of syntactic errors it returns empty. Usually take a couple of hours to develop one simple query because of this. Is it anyway to spit out the php error on browser( maybe there is firebug plugin? ) -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Where should I put class accessing from all the places
I want to create one class accessible from anywhere(MVC). Where should I put or is it possible? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
why sometimes i have to specify the field name otherwise i won't get the resule?
Time to time I need to specify the fields; otherwise i wont' get the result or empy result. $employee = $this -> Employee -> find( 'first', array( 'fields' => array( 'first_name', 'last_name' ), 'conditions' => array( 'Employee.accounts_id' => $uid ) ) ); if it's for "first" i need to specify the fields? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
where would you put the container?
I want to set up a container so that i can save everything and access through that class when getting session variables. Page A $appClass = new AppClass(); $appClass -> specific_value = 1000; $this -> Session -> write( "appclass", appClass ); Page B $appClass = $this -> Session -> read( "appclass", appClass ); echo $appClass -> specific_value; echo $appClass -> other_value; In other frameworks, they have a certain folder for autoload ( all classes within that folder will be loaded automatically ) but i am not sure if cakephp has one. Or I could set up a single class and include it in that top of page -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: save multiple related records
well the idea was to asign multiple exercises to multiple users im i doing it worng ? On Jan 27, 8:59 pm, Amit Badkas wrote: > Hi, > > Both the fields in the form are multi-select, so how you want to save the > data? Will all selected users relate to all selected exercises? > > Amit Badkas > > PHP Applications for E-Biz:http://www.sanisoft.com > > > > On Fri, Jan 28, 2011 at 4:07 AM, cake bake wrote: > > is there any way to save multiple related records here is my code > > > function asign() { > > $this->loadModel('UsersExercise'); > > if (!empty($this->data)) { > > $this->UsersExercise->create(); > > if ($this->UsersExercise->save($this->data)) { > > $this->Session->setFlash(__('The exercise could not > > be saved. > > Please, try again.', true)); > > $this->redirect(array('action' => 'index')); > > } else { > > $this->Session->setFlash(__('The exercise > > could not be saved. > > Please, try again.', true)); > > } > > } > > $users = $this->Exercise->User->find('list'); > > $exercises = $this->Exercise->find('list'); > > $this->set(compact('users')); > > $this->set(compact('exercises')); > > } > > > Form->create('UsersExercise',array('url' => '/ > > exercises/asign'));?> > > > > > > > echo $this->Form->input('user_id',array('type' => > > 'select','multiple' => true,'options' => $users) ); > > echo $this->Form->input('exercise_id',array('type' => > > 'select','multiple' => true,'options' => $exercises) ); > > ?> > > > > Form->end(__('Submit', true));?> > > > here is the debug for this->data > > > Array > > ( > > [_Token] => Array > > ( > > [key] => 3sss > > [fields] => sss ) > > > [UsersExercise] => Array > > ( > > [user_id] => Array > > ( > > [0] => 1 > > ) > > > [exercise_id] => Array > > ( > > [0] => 1 > > [1] => 2 > > [2] => 3 > > ) > > > ) > > > ) > > > -- > > Our newest site for the community: CakePHP Video Tutorials > >http://tv.cakephp.org > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help > > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > > cake-php+unsubscr...@googlegroups.comFor > > more options, visit this group at > >http://groups.google.com/group/cake-php- Hide quoted text - > > - Show quoted text - -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
save multiple related records
is there any way to save multiple related records here is my code function asign() { $this->loadModel('UsersExercise'); if (!empty($this->data)) { $this->UsersExercise->create(); if ($this->UsersExercise->save($this->data)) { $this->Session->setFlash(__('The exercise could not be saved. Please, try again.', true)); $this->redirect(array('action' => 'index')); } else { $this->Session->setFlash(__('The exercise could not be saved. Please, try again.', true)); } } $users = $this->Exercise->User->find('list'); $exercises = $this->Exercise->find('list'); $this->set(compact('users')); $this->set(compact('exercises')); } Form->create('UsersExercise',array('url' => '/ exercises/asign'));?> Form->input('user_id',array('type' => 'select','multiple' => true,'options' => $users) ); echo $this->Form->input('exercise_id',array('type' => 'select','multiple' => true,'options' => $exercises) ); ?> Form->end(__('Submit', true));?> here is the debug for this->data Array ( [_Token] => Array ( [key] => 3sss [fields] => sss) [UsersExercise] => Array ( [user_id] => Array ( [0] => 1 ) [exercise_id] => Array ( [0] => 1 [1] => 2 [2] => 3 ) ) ) -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Is there any way to incldue all models automatically
Is there any way to include all models by default. I run to the model issue so many times defining the relationship so i just want to join manually so i can cut some development time. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Always having trouble adding new tables
When i add new table it sometimes say request address "/somepath/ somepath" was not found on this server. I know i configure model wrong because of this it takes time to find the problem. Is there any way to see proper error? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
static function in model
I want to define the static function so that the user name ( firstname + lastname ) can be used everywhere in view. Class User{ static function getName( $id ){ $userObj = $userObj -> read( 'id', $id ); return $userObj[ 'User' ][ 'firstname' ] . ' ' . $userObj[ 'User' ] [ 'lastname' ]; } } and i just want to use User::getName( $id ); somewhere in view; -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
it's not suitable for deep hyraphical structured system
I am feeling that cakephp is not suitable for system with data which describes deep hierarchical structure? things like deeling with big corporate organization map? I tested It only supports structure with 2/3 level deep when generating the form. It might be possible but takes more time to develop so just want to mension here for those looking for solution. 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
access application wide variable from elements
How can i set up so that that variable can be referenced in the element? I have set up left_menu.ctp in the element and want to change the menu items depending on that what role the current user is. Where I can get the user object from the session so that user object is available in left_menu.ctp? I can go each controller to do this but since left_menu is displayed in the most of page I want to have one controller handle 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
session problem or misunderstanding.
I am trying to pass a variale with session but without success for a while. within the same controller i go $this -> Session -> write( 'id', 1 ); $this -> Session -> read( 'id' ); i gotta nothing and empty when i go debug( $this -> Session ); I tried with $_SESSION so i guess within the same controller i can't pass with session? I have this line $helpers = array( 'Session' ) in the controller and there are already some controllers using session. 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
how to assign form name when it is complicated
I am trying to design the form like this. http://skoizumi.com/cakephp/complicated-form.gif you can add categories to a survey, add questions to a category, and add selection values to a question. I saw some of documents where you can define the array of records by using classname and index with dot ( category.0.question ), but it stops working after a couple dots. Is there anyway to create this form with formhelp class or i should just do it manually? 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
possible to create a nested post with forms?
I am trying create a form so that when post that data this will still keep the relationships with other element. Say i have a category name and a subcategory name like shown in below. How can i define the form so that the relationship between this category and subcategory will be kept when submitted? Category 1 -subcategory 1 Categ 2 -subcategory 1 -sbucategory 2 and this form is submited Array{ Category => Array{ name => 'Category 1' subcategory => Array{ 'name' => 'subcategory' } } input( 'Category.name', array( 'name' => 'Category.name[]', 'label' => '', 'class' => 'category_title' ) ); ?> 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
how can i create a default selection
how i can insert the a little text on top of select form so that it goes Select category, cat1, cat2, cat3 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
ZendStudio php is not color coded
Based on this http://kb.zend.com/index.php?View=entry&EntryID=180 i change the setting for ctp but i don't see any of php code color- coded. Any of you have done this before? 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
multiple posts
I like to set up the form where i have a list of categories and list of sub categories. A new category can be added to this list and the same for sub category. A category and sub category should one-many relationship. How can i add extra form so that cakephp knows there are a couple sub categories belong to a new category? 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
Do you use baker?
I was wondering if everyone is using baker to speed up development process? Since I am new to cakephp it take more time to learn and use 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
ModelBaker
I was looking for something like this and share with you guys http://www.youtube.com/watch?v=JOOhSQqANQs 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
SSL implementatoin 1.2 or 1.3
I am working on my application and want to implement ssl later on the development I am with 1.2 but does it work better with 1.3? Also for authentication and authorization, I created customized one by myself without using ACL componets ( i studied the cakephp by myself for fun and didn't noticed there is one until recently ). Should I change back to use the ACL? Thanks for the input 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: Time Helper
$time->niceShort(parameters); 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
why i have to put another modal class name in $uses?
I found it very annoying that everytime i need use another model i have to define the table in $uses={}. Is this mean model classes(model.php) are not loaded? If all php classes are loaded when page is loaded, why limiting from using them without defining model names. 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 can i get the return value in classes
> You don't. However, as I understand, Cake 2.x will have that option. I see. Thanks for clearing out If that's the case i want to set up a class saying UserObj so that easier for me to pass around between Model, View, Contoller and I can use the autocomplete function of IDE so i don't have to remember all index name for the array. Where would you put this class so that this will be auto-loaded? Using Stephen's example, i would go like this $user = $this->User->find('first'); $userObj = new UserObj( $user->id ); $userObj -> name = $user['user']['username']; $userObj -> age = $user['user']['age']; return $userObj ; //return to controller 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
how can i get the return value in classes
I want to get return values in object in stead of array. i just quickly go through the document for "find" but didn't see the object option. 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
a simple problem-pls help
i have the following controller implementing auth: redirect($this->Auth->logout()); } function welcome(){ $this->autoRender = false; echo 'welcome'; //print_r($_SESSION); } function allowed(){ $this->autoRender=false; echo 'in allowed function'; } function denied(){ $this->autoRender=false; echo 'in denied function'; } } ?> i also have a view for the login action: flash('auth'); echo $form->create('User', array('action' => 'login')); echo $form->input('username'); echo $form->input('password'); echo $form->end('Login'); ?> but the authentication doesnt work. it allows access to all the actions. but if i copy the Tests controller's code to a controller named 'Users' it works. can u help me pls? 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: Blog Tutorial: Link doesn't work
Could you tell me what I need to adjust in order to achieve a directory structure like yours? Are there any changings in the config file necessary? On 19 Apr., 18:34, John Andersen wrote: > I can't tell you, as I have cake and my app at the root level and uses > apache virtual servers to ensure that the correct app is connected. > > My hierarchy looks like: > ...htdocs/cake > ...htdocs/28871 = app 1 > ...htdocs/28872 = app 2 > etc. > > and my virtual servers points to /28871/webroot and /28872/webroot > respectively. > > Hopefully someone else may be able to help you with this issue. Did > you try my last suggestion in my previous post? > Enjoy, > John > > On Apr 19, 7:14 pm, Cake-it wrote:> I have my cake > folder at the same hierarchy as the app folder. But the > > entire project is located in a subfolder, which has the same name: > > cake because I have also other projects running on this server. My > > hierarchy looks like this: > > ...htdocs/cake > > ...htdocs/cake/app > > ...htdocs/cake/cake > > > Does cake have a problem with this directory structure? What do I have > > to do in order to get the project running? > > > Thanks and best regards > > > Cake-it > > [snip] > > 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: Blog Tutorial: Link doesn't work
I have my cake folder at the same hierarchy as the app folder. But the entire project is located in a subfolder, which has the same name: cake because I have also other projects running on this server. My hierarchy looks like this: ...htdocs/cake ...htdocs/cake/app ...htdocs/cake/cake Does cake have a problem with this directory structure? What do I have to do in order to get the project running? Thanks and best regards Cake-it On 19 Apr., 07:35, John Andersen wrote: > Looks like your file structure in the web root is not as according > to:http://book.cakephp.org/view/329/Getting-Cake > in which is written that cake and the app directory are on the same > level in the directory hierachy. So in your case, it should be like > this: > ...htdocs/ > ...htdocs/app/ > ...htdocs/cake/ > > Just for fun, try "http://localhost:8000/cake/app/posts"; > Enjoy, > John > > On Apr 18, 10:49 pm, Cake-it wrote: > > > > > > > Hi, > > In the blog tutorial at section 10.1.8, I followed all advices, but my > > link to "http://localhost:8000/cake/posts/index"; doesn't work. I tried > > also "http://localhost:8000/cake/posts";. > > My blog application controllers is in the cake folder of my root: "C: > > \Programme\Apache Software Foundation\Apache2.2\htdocs\cake\app > > \controllers" > > Does anybody has an idea what could be wrong here? > > > Thanks Cake-it > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp 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 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- Zitierten Text ausblenden - > > - Zitierten Text anzeigen - 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
Blog Tutorial: Link doesn't work
Hi, In the blog tutorial at section 10.1.8, I followed all advices, but my link to "http://localhost:8000/cake/posts/index"; doesn't work. I tried also "http://localhost:8000/cake/posts";. My blog application controllers is in the cake folder of my root: "C: \Programme\Apache Software Foundation\Apache2.2\htdocs\cake\app \controllers" Does anybody has an idea what could be wrong here? Thanks Cake-it 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
Error Massage in the tutorial
In the Tutorial of the Cookbook (the blog tutorial) I get following error message after the step 10.1.3 Cake Database Configuration: ## Warning (2): strtotime() [http://php.net/function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '2.0/DST' instead [CORE\cake \libs\cache.php, line 570] Code | Context $settings = array( "engine" => "File", "path" => "C:\Programme\Apache Software Foundation\Apache2.2\htdocs \cake\app\tmp\cache\persistent\", "prefix" => "cake_core_", "lock" => false, "serialize" => true, "isWindows" => true, "duration" => "+10 seconds", "probability" => 100 ) strtotime - [internal], line ?? CacheEngine::init() - CORE\cake\libs\cache.php, line 570 FileEngine::init() - CORE\cake\libs\cache\file.php, line 81 Cache::_buildEngine() - CORE\cake\libs\cache.php, line 151 Cache::config() - CORE\cake\libs\cache.php, line 126 Configure::__loadBootstrap() - CORE\cake\libs\configure.php, line 420 Configure::getInstance() - CORE\cake\libs\configure.php, line 52 include - CORE\cake\bootstrap.php, line 38 require - APP\webroot\index.php, line 76 [main] - CORE\index.php, line 55 ## I'me using Apache 2.2 on Windows XP, PHP 5.3.2, MySQL 5.0.7. Can anybody help me and tell me what's wrong here. Thanks Cake-it 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
How to get two input fields in same line?
Hi all How can I get two input fields in same line in cakephp? By default each input field are coming in seperate line. How can we put a space and bring it in same line. Please help.. Thanking You 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
My ' OR ' Condition is an ' AND ' condition ??
"My OR is an AND??" Conditional Joins: $cuisine = $this->data['Restaurant']['c']; $results = $this->Restaurant->find('first', array('joins' => array( array( #'table' => 'markers_tags', 'table' => 'cuisines_restaurants', 'alias' => 'CuisinesRestaurant', 'type' => 'inner', 'foreignKey' => false, 'conditions'=> array('CuisinesRestaurant.restaurant_id = Restaurant.id') ) ,array( 'table' => 'cuisines', 'alias' => 'Cuisine', 'type' => 'inner', 'foreignKey' => false, 'conditions'=> array( 'CuisinesRestaurant.cuisine_id = Cuisine.id', array('Cuisine.name LIKE ' => "%Thai%"), 'or' => array ('Cuisine.name LIKE ' => "%American%") ) ) ))); $this->set('results',$results); SQL Result: ++ SELECT `Restaurant`.`id`, `Restaurant`.`name`, `Restaurant`.`tagline`, `Restaurant`.`description`, `Restaurant`.`keywords`, `Restaurant`.`address`, `Restaurant`.`city`, `Restaurant`.`state`, `Restaurant`.`zip`, `Restaurant`.`phone`, `Restaurant`.`hours_of_service`, `Restaurant`.`website`, `Restaurant`.`active`, `Restaurant`.`date_created` FROM `restaurants` AS `Restaurant` inner JOIN cuisines_restaurants AS `CuisinesRestaurant` ON (`CuisinesRestaurant`.`restaurant_id` = `Restaurant`.`id`) inner JOIN cuisines AS `Cuisine` ON (`CuisinesRestaurant`.`cuisine_id` = `Cuisine`.`id` AND `Cuisine`.`name` LIKE '%Thai%' AND `Cuisine`.`name` LIKE '%American%') WHERE 1 = 1 ++ Why?? -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-...@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=.
how to change month and year field simultaneously when date is changed?
Hi all, I have a problem with the code below echo $form->day('dateField', date('d')+25, array('id' => 'FieldId- dd'), false)." - "; echo $form->month('dateField', date('m'), array('id' => 'FieldId-mm'), false)." - "; echo $form->year('dateField', '1980', date('Y'), null, array('id' => 'FieldId', 'class' => 'w8em split-date divider-dash highlight-days-12 no-transparency'), false); how to change month and year field simultaneously when date is changed to date('d')+25 please help. Thanking you. -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-...@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=.