Re: Moved from DEV to TEST and CSS [webroot] isn't loading
Have you checked that your production server is properly configured? Ensure mod-rewrite is enabled, also it could be an issue with your vhost configuration as well. Maybe try to access new.domain.com/app/webroot/css/stylename.css to confirm it's the url rewriting. Also check out the server access/error logs. On 6 June 2014 01:43, David Lozzi wrote: > Ok, so it appears my routes aren't working, I can't go to my pages either. > Hmmm... > > -- > 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. > -- Kind Regards Stephen Speakman -- 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: Extending FormHelper causes error in it
This is the complete method of my LanguageHelper. The two lines should make the finally output. $options = array_merge(array( 'label' => __('Country', true), 'default' => $this->defaultCountry, 'class' => null ), $options); $selected = $this->getSelected($fieldName); if ($selected === null || !array_key_exists($selected, $this->countries)) { if ($this->countryCode === null) { $selected = $options['default']; } else { $selected = $this->countryCode; } } $opts = array(); $opts['options'] = $this->countries; $opts['selected'] = $selected; $opts['multiple'] = false; $opts['label'] = $options['label']; if ($options['class'] !== null) { $opts['class'] = $options['class']; } $out = parent::input($fieldName, $opts); return parent::output($out); -- 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: Extending FormHelper causes error in it
Thanks for your answer. I want to make a LanguageHelper where languages and options are set in the method. These two lines should print it out. $options = array_merge(array( > 'label' => __('Country', true), > 'default' => $this->defaultCountry, > 'class' => null > ), $options); > $selected = $this->getSelected($fieldName); > if ($selected === null || > !array_key_exists($selected, $this->countries)) { > if ($this->countryCode === null) { > $selected = $options['default']; > } else { > $selected = $this->countryCode; > } > } $opts = array(); > $opts['options'] = $this->countries; > $opts['selected'] = $selected; > $opts['multiple'] = false; > $opts['label'] = $options['label']; > if ($options['class'] !== null) { > $opts['class'] = $options['class']; > } > $out = parent::input($fieldName, $opts); > return parent::output($out); Hope it is specific enough. -- 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.
Need help on custom Authorization with ACL
CakePHP custom ACL Authorization using acos, aros & aros_acos Acl tables with extension api_ I am developing an restful API using CakePHP, I am trying to implement a custom authorization which authorize user using ACL, code looks something like _Collection->load('Acl'); list($plugin, $userModel) = pluginSplit($this->settings['userModel']); $action = $this->action($request); $cacheName = 'permissions_' . strval($user['id']); if (($permissions = Cache::read($cacheName, 'permissions')) === false) { $permissions = array(); Cache::write($cacheName, $permissions, 'permissions'); } if (!isset($permissions[$action])) { $User = ClassRegistry::init($this->settings['userModel']); $User->id = $user['id']; $allowed = $Acl->check($User, $action); $permissions[$action] = $allowed; Cache::write($cacheName, $permissions, 'permissions'); $hit = false; } else { $allowed = $permissions[$action]; $hit = true; } return $allowed; } } I am using same database for website(developed using croogo) and API so my database already has `acos`, `aros` & `aros_acos` tables of website so for API I am created ACL tables with api_ extension like `api_acos`, `api_aros` & `api_aros_api_acos` New schema of my ACL tables are CREATE TABLE IF NOT EXISTS `api_acos` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `parent_id` int(10) DEFAULT NULL, `model` varchar(255) DEFAULT '', `foreign_key` int(10) unsigned DEFAULT NULL, `alias` varchar(255) DEFAULT '', `lft` int(10) DEFAULT NULL, `rght` int(10) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; CREATE TABLE IF NOT EXISTS `api_acos_api_aros` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `api_aro_id` int(10) unsigned NOT NULL, `api_aco_id` int(10) unsigned NOT NULL, `_create` char(2) NOT NULL DEFAULT '0', `_read` char(2) NOT NULL DEFAULT '0', `_update` char(2) NOT NULL DEFAULT '0', `_delete` char(2) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; CREATE TABLE IF NOT EXISTS `api_aros` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `parent_id` int(10) DEFAULT NULL, `model` varchar(255) DEFAULT '', `foreign_key` int(10) unsigned DEFAULT NULL, `alias` varchar(255) DEFAULT '', `lft` int(10) DEFAULT NULL, `rght` int(10) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; I am using custom ACL class from here https://github.com/FriendsOfCake/Authorize/blob/master/Controller/Component/Acl/HabtmDbAcl.php My question is where and how can I use my new database tables (`api_acos`, `api_aros` & `api_aros_api_acos`) for ACL lookup? Please point me to code from where I can take reference for custom ACL Authorization implementation. -- 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: display data 3 tables
You are not doing something right. Can you show more code with the debugged output please? Cracking this and understanding what is happening will help you enormously with developing Cake apps from here. On 5 Jun 2014, at 15:18, ajt wrote: > I set recursive to -1 and it doesnt work as I get user error again. > Recursive set to 2 is what works > > -- > 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. -- 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.
Moved from DEV to TEST and CSS [webroot] isn't loading
Ok, so it appears my routes aren't working, I can't go to my pages either. Hmmm... -- 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: Strange issue with the web runner of test.php
I just realized that I forgot to mention that I'm using cake version 2.4.9 and php unit 3.7.30 -- 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.
Strange issue with the web runner of test.php
Hello all, So I have a controller that uses the RequestHandler and has some actions named with camelCase names. Running the tests via command line works just fine, however the test.php process of running the test result in a MissingControllerException with a message of "Controller class Test.phpController could not be found." I mention the camelCase action names since the exception vanishes if the action names are in_lower_with_underscore format. Has anyone else seen this behavior or have a suggestion for a solution? Thanks James Pence -- 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: display data 3 tables
Yes this works without recursive $contain = array('Teacher' => array('User'),'Student' => array('User')); $this->set('tutor', $this->Tutorsession->find('first',array( 'conditions' => array('Teacher.user_id' => $id), 'contain' => $contain ))); -- 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: display data 3 tables
I set recursive to -1 and it doesnt work as I get user error again. Recursive set to 2 is what works -- 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 Constants in a view
Thanks Stephen :) On Thursday, June 5, 2014 2:17:04 PM UTC+1, Stephen S wrote: > > You can place constants in bootstrap.php, though I usually create a > site-specific config file and include it within bootstrap.php > > In config file: > Configure::write('MyConstant', 'My Value'); > > In view file: > Configure::read('MyConstant'); // My Value > > > > On 5 June 2014 13:06, vbpupil > wrote: > >> How best can I add constants to my cake application to be used in my >> views? >> >> >> for example, I have differnt paths for different types of images ie; >> internal images, external images >> >> I have read many comments on bootstrap, use it/dont us it?? so where >> would be best and cleanest to use it? >> >> >> please provide an example if you can. >> >> Many 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+u...@googlegroups.com . >> To post to this group, send email to cake...@googlegroups.com >> . >> Visit this group at http://groups.google.com/group/cake-php. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Kind Regards > Stephen Speakman > -- 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: display data 3 tables
With the Containable behaviour you should set recursive to -1. Recursion makes the model automatically attache related models n deep (where n is your recursion level) so can give unexpected (or at least uncontrolled) results. When it is -1 it only returns the model associations you specify. The Containable behaviour may well override that, but it's better to be safe than sorry. On 5 Jun 2014, at 14:42, ajt wrote: > yes thats it, I just didnt know how I referenced it and with this code. > This took hours to solve so well done > > $this->Tutorsession->recursive = 2; >$this->Tutorsession->Teacher->contain('User'); > $this->set('tutor', $this->Tutorsession->find('first', > array( > 'conditions' => array('Teacher.user_id' => $id)) ) ); > > -- > 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. -- 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: display data 3 tables
yes thats it, I just didnt know how I referenced it and with this code. This took hours to solve so well done $this->Tutorsession->recursive = 2; $this->Tutorsession->Teacher->contain('User'); $this->set('tutor', $this->Tutorsession->find('first', array( 'conditions' => array('Teacher.user_id' => $id)) ) ); -- 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: display data 3 tables
Isn't $tutor['Teacher']['User']['username'] what you're looking for? On 5 Jun 2014, at 14:18, ajt wrote: > There just is no user being displayed with the below, there is with Teacher > in the find if I add it but every field is undefined in the view. > > $this->Tutorsession->recursive = 2; > > $contain = array('Teacher' => array('User')); > $this->set('tutor', $this->Tutorsession->find('first',array( > 'conditions' => array('Teacher.user_id' => $id), > 'contain' => $contain > ))); > > > > > > array( > 'Tutorsession' => array( > 'id' => '1', > 'teacher_id' => '1', > 'student_id' => '1', > 'subject' => 'maths', > 'sessiondate' => '2014-05-06', > 'sessiontime' => '2014-05-29 00:27:00', > 'available' => '1' > ), > 'Teacher' => array( > 'id' => '1', > 'user_id' => '3', > 'firstname' => 'fred', > 'surname' => 'smith3', > 'address' => '1 hard str', > 'suburb' => 'chelsea2', > 'phone' => '0', > 'fullname' => 'fred smith3', > 'User' => array( > 'password' => '*', > 'id' => '3', > 'username' => 'teach', > 'role' => 'teacher', > 'created' => '2014-05-31 11:08:39', > 'modified' => '2014-05-31 11:08:39' > ), > 'Tutorsession' => array( > (int) 0 => array( > 'id' => '1', > 'teacher_id' => '1', > 'student_id' => '1', > 'subject' => 'maths', > 'sessiondate' => '2014-05-06', > 'sessiontime' => '2014-05-29 00:27:00', > 'available' => '1' > ) > ) > ), > 'Student' => array( > 'id' => '1', > 'user_id' => '1', > 'firstname' => 'tom', > 'surname' => 'blog', > 'address' => '3 glen str ', > 'suburb' => 'chelsea', > 'phone' => '044', > 'fullname' => 'tom blog', > 'User' => array( > 'password' => '*', > 'id' => '1', > 'username' => 'admin', > 'role' => 'admin', > 'created' => '2014-05-30 03:19:36', > 'modified' => '2014-05-30 03:19:36' > ), > 'Tutorsession' => array( > (int) 0 => array( > 'id' => '1', > 'teacher_id' => '1', > 'student_id' => '1', > 'subject' => 'maths', > 'sessiondate' => '2014-05-06', > 'sessiontime' => '2014-05-29 00:27:00', > 'available' => '1' > ) > ) > ) > ) > > -- > 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. -- 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: display data 3 tables
There just is no user being displayed with the below, there is with Teacher in the find if I add it but every field is undefined in the view. $this->Tutorsession->recursive = 2; $contain = array('Teacher' => array('User')); $this->set('tutor', $this->Tutorsession->find('first',array( 'conditions' => array('Teacher.user_id' => $id), 'contain' => $contain ))); array( 'Tutorsession' => array( 'id' => '1', 'teacher_id' => '1', 'student_id' => '1', 'subject' => 'maths', 'sessiondate' => '2014-05-06', 'sessiontime' => '2014-05-29 00:27:00', 'available' => '1' ), 'Teacher' => array( 'id' => '1', 'user_id' => '3', 'firstname' => 'fred', 'surname' => 'smith3', 'address' => '1 hard str', 'suburb' => 'chelsea2', 'phone' => '0', 'fullname' => 'fred smith3', 'User' => array( 'password' => '*', 'id' => '3', 'username' => 'teach', 'role' => 'teacher', 'created' => '2014-05-31 11:08:39', 'modified' => '2014-05-31 11:08:39' ), 'Tutorsession' => array( (int) 0 => array( 'id' => '1', 'teacher_id' => '1', 'student_id' => '1', 'subject' => 'maths', 'sessiondate' => '2014-05-06', 'sessiontime' => '2014-05-29 00:27:00', 'available' => '1' ) ) ), 'Student' => array( 'id' => '1', 'user_id' => '1', 'firstname' => 'tom', 'surname' => 'blog', 'address' => '3 glen str ', 'suburb' => 'chelsea', 'phone' => '044', 'fullname' => 'tom blog', 'User' => array( 'password' => '*', 'id' => '1', 'username' => 'admin', 'role' => 'admin', 'created' => '2014-05-30 03:19:36', 'modified' => '2014-05-30 03:19:36' ), 'Tutorsession' => array( (int) 0 => array( 'id' => '1', 'teacher_id' => '1', 'student_id' => '1', 'subject' => 'maths', 'sessiondate' => '2014-05-06', 'sessiontime' => '2014-05-29 00:27:00', 'available' => '1' ) ) ) ) -- 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 Constants in a view
You can place constants in bootstrap.php, though I usually create a site-specific config file and include it within bootstrap.php In config file: Configure::write('MyConstant', 'My Value'); In view file: Configure::read('MyConstant'); // My Value On 5 June 2014 13:06, vbpupil wrote: > How best can I add constants to my cake application to be used in my views? > > > for example, I have differnt paths for different types of images ie; > internal images, external images > > I have read many comments on bootstrap, use it/dont us it?? so where would > be best and cleanest to use it? > > > please provide an example if you can. > > Many 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. > -- Kind Regards Stephen Speakman -- 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 Constants in a view
How best can I add constants to my cake application to be used in my views? for example, I have differnt paths for different types of images ie; internal images, external images I have read many comments on bootstrap, use it/dont us it?? so where would be best and cleanest to use it? please provide an example if you can. Many 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 v 1.3.14
It's best to upgrade all the way to the current master, so 2.5. But you can fix all 1.2=>1.3 upgrae issues first if that helps. Am Donnerstag, 5. Juni 2014 06:14:13 UTC+2 schrieb passe...@gmail.com: > > I have an app in version 1.2. Is it better or easier to upgrade to > v1.3.14 or should I go with v2.5 directly? > > > On Friday, May 16, 2014 9:06:42 AM UTC-4, k2014 wrote: >> >> dear, >> i need to know the vulnerabilities and security problems of the v 1.3.14 >> and >> if you can recommend me a better version in which these problems are >> fixed >> >> >> >> -- >> View this message in context: >> http://cakephp.1045679.n5.nabble.com/cakephp-v-1-3-14-tp5718212.html >> Sent from the CakePHP mailing list archive at Nabble.com. >> > -- 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 v 1.3.14
I have an app in version 1.2. Is it better or easier to upgrade to v1.3.14 or should I go with v2.5 directly? On Friday, May 16, 2014 9:06:42 AM UTC-4, k2014 wrote: > > dear, > i need to know the vulnerabilities and security problems of the v 1.3.14 > and > if you can recommend me a better version in which these problems are fixed > > > > -- > View this message in context: > http://cakephp.1045679.n5.nabble.com/cakephp-v-1-3-14-tp5718212.html > Sent from the CakePHP mailing list archive at Nabble.com. > -- 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.
Magento From local server to live web server, links not working
Now, the homepage is working fine but every link on it directs you to a 404 not found error. Can't even access "/admin". -- 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: Configure Cake's .htaccess to use other site with it's own .htaccess
All the extra directives in the /extra/ .htaccess file may be too much. All I have is: > RewriteEngine on > RewriteBase /app/ > RewriteRule ^$ webroot/ [L] > RewriteRule (.*) webroot/$1 [L] On Tuesday, May 27, 2014 2:11:16 PM UTC-4, Tomas Gonzalez Mendivelzúa wrote: > > > Hi, I'm trying to run a site with it's own rewrite rules inside the > /app/webroot/ folder but I'm not being able to make it work. > *Please tell me if this is the right place to post this or if I should > post it in some other place.* > > The site is in /app/webroot/extra/* > Here are both .htaccess files: > > *Cake *(/app/webroot/.htaccess) > > > RewriteEngine On > > RewriteCond %{HTTPS} off > RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] > > RewriteCond %{HTTP_HOST} !^www\. > RewriteCond %{HTTP_HOST} !^local\. > RewriteCond %{HTTP_HOST} !^staging\. > RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L] > > RewriteCond %{REQUEST_FILENAME} !-d > RewriteCond %{REQUEST_FILENAME} !-f > RewriteRule ^(.*)$ index.php [QSA,L] > > > *Extra *(/app/webroot/extra/.htaccess) > > > RewriteEngine On > > RewriteCond %{HTTPS} off > RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L] > > RewriteCond %{HTTP_HOST} !^(localhost|staging|host)?$ [NC] > RewriteCond %{HTTP_HOST} !^www\. [NC] > RewriteCond %{HTTP_HOST} !^local\. [NC] > RewriteCond %{HTTP_HOST} !^staging\. [NC] > RewriteRule ^ https%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] > > RewriteEngine On > RewriteCond %{SCRIPT_FILENAME} !-d > RewriteCond %{SCRIPT_FILENAME} !-f > > RewriteRule ^.*$ ./index.php > > > > I need to correct these files so that both sites work correctly. > Any help will be very appreciated! > > > Tom. > -- 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.