js helper not working for Internet explore
I am using cake 1.3 I have a simple select box when someone selects a state the next select box populates the cites for that state This works fine in firefox as well as chrome, but it does not update my city select box for ie 7 or ie 8. I think its not triggering the event in ie Form- >select('state_id',array($states),null,array('id'=>'states'),false); ?>Form- >select('city_id',array(),null,array('id'=>'cites'),false); $this->Js->get('#states')->event('change', $this->Js->request( array('controller' => 'bonds', 'action' => 'update_city_select'), array( 'update' => '#cites', 'async' => true, 'dataExpression' => true, 'method' => 'post', 'data' => $js->serializeForm(array('isForm' => false, 'inline' => true)) ) ) ); ?> -- 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: Auth on global actions in the app_controller
I believe this is the case because Authentication works on the controllers that we develop, and not on the included app_controller. Since you placed the items in app_controller, then they do not have to be specifically allowed but are part of 'superior' class if you will. If not, then Authentication would be a mess and you would have to add all the functions built into the provided app_controller into your authentication scheme. Which would make the task overly cumbersome. -Vinnie On Aug 3, 6:56 am, StevieL wrote: > Hi, > > I had a couple of simple actions that I needed to use in each of the > controllers in my application. I decided to plonk them into > app_controller and it all works fine (just how it describes in the > book). > > Now, within my actions (in my controllers) i can simply access these > new global functions with $this->NewGlobalFunctionName(VariableName). > All was well until I got thinking, as my app is using Auth - how are > these global actions even working when i have put no rules in to allow > them. > > i have for example: - > > $group->id = 3; > > // deny all controllers > $this->Acl->deny($group, 'controllers') > > // allow certain actions > $this->Acl->allow($group, 'controllers/users/myprofile'); > .. etc ... > > Auth is definitely tested working fine for the rest of the app. Why > is it that these functions in /app/app_controller.php can be run > without Auth preventing it and without me needing to add a > > $this->Acl->allow rule for them? > > my AppController looks like this: - > > class AppController extends Controller { > var $components = array('Acl', 'Auth', 'Session'); > var $helpers = array('Html', 'Form', 'Session', 'Javascript', > 'Time'); > > function beforeFilter() { > //Configure AuthComponent > $this->Auth->actionPath = 'controllers/'; > $this->Auth->allowedActions = array('display'); > $this->Auth->authorize = 'actions'; > $this->Auth->loginAction = array('controller' => 'users', > 'action' => 'login'); > $this->Auth->logoutRedirect = array('controller' => 'users', > 'action' => 'login'); > $this->Auth->loginRedirect = array('controller' => 'users', > 'action' => 'myprofile'); > } > > function NewGlobalFunctionName($id) { > > // Include a model > $this->loadModel('ModelName'); > > .. function code here ... > return something; > > } > > } > > Thanks, > > Steve -- 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
majna želi chatati
--- majna želi s vama ostvariti još bolji kontakt putem odličnih novih Googleovih proizvoda. Ako već imate Gmail ili Google Talk, posjetite: http://mail.google.com/mail/b-14a4975ca-e0dd993644-0yoC8nKKUyGqDY4onmFucygmNqQ Morate kliknuti tu vezu da biste mogli chatati s korisnikom majna. Ako želite Gmail - besplatni Google račun za e-poštu s više od 2800 MB pohrane - te chatati s korisnikom majna, posjetite: http://mail.google.com/mail/a-14a4975ca-e0dd993644-0yoC8nKKUyGqDY4onmFucygmNqQ Gmail nudi: - neposredne poruke izravno iz usluge Gmail - snažnu zaštitu od neželjene pošte - ugrađeno pretraživanje za pronalaženje poruka i jednostavno organiziranje poruka e-pošte u "razgovore" - bez skočnih oglasa i neželjenih reklama - samo tekstni oglasi i informacije povezane sa sadržajem vaših poruka Sve to možete imati potpuno besplatno. Ali čekajte, još nismo gotovi! Ako otvorite Gmail račun, ostvarujete i pristup usluzi Google Talk, Googleovoj usluzi za neposredne poruke: http://www.google.com/talk/ Google Talk nudi: - chat utemeljen na webu, koji možete upotrebljavati posvuda, bez preuzimanja - popis kontakata sinkroniziran s vašim Gmail računom - besplatne visokokvalitetne pozive s računala na računalo kada preuzmete klijent za Google Talk Predano radimo na dodavanju novih značajki i poboljšanja pa ćemo od vas povremeno možda zatražiti komentare i prijedloge. Cijenimo vašu pomoć da naše proizvode učinimo još boljima! Hvala, Tim za Google Da biste saznali više o uslugama Gmail i Google Talk, posjetite: http://mail.google.com/mail/help/intl/hr/about.html http://www.google.com/talk/about.html (Ako klikom ne uspijete otvoriti URL-ove u ovoj poruci, kopirajte ih i zalijepite u adresnu traku preglednika). -- 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
majna želi chatati
--- majna želi s vama ostvariti još bolji kontakt putem odličnih novih Googleovih proizvoda. Ako već imate Gmail ili Google Talk, posjetite: http://mail.google.com/mail/b-14a4975ca-e0e0bf689b-TRzy6CUN7hidQgxS9nqulZ-wN9o Morate kliknuti tu vezu da biste mogli chatati s korisnikom majna. Ako želite Gmail - besplatni Google račun za e-poštu s više od 2800 MB pohrane - te chatati s korisnikom majna, posjetite: http://mail.google.com/mail/a-14a4975ca-e0e0bf689b-TRzy6CUN7hidQgxS9nqulZ-wN9o Gmail nudi: - neposredne poruke izravno iz usluge Gmail - snažnu zaštitu od neželjene pošte - ugrađeno pretraživanje za pronalaženje poruka i jednostavno organiziranje poruka e-pošte u "razgovore" - bez skočnih oglasa i neželjenih reklama - samo tekstni oglasi i informacije povezane sa sadržajem vaših poruka Sve to možete imati potpuno besplatno. Ali čekajte, još nismo gotovi! Ako otvorite Gmail račun, ostvarujete i pristup usluzi Google Talk, Googleovoj usluzi za neposredne poruke: http://www.google.com/talk/ Google Talk nudi: - chat utemeljen na webu, koji možete upotrebljavati posvuda, bez preuzimanja - popis kontakata sinkroniziran s vašim Gmail računom - besplatne visokokvalitetne pozive s računala na računalo kada preuzmete klijent za Google Talk Predano radimo na dodavanju novih značajki i poboljšanja pa ćemo od vas povremeno možda zatražiti komentare i prijedloge. Cijenimo vašu pomoć da naše proizvode učinimo još boljima! Hvala, Tim za Google Da biste saznali više o uslugama Gmail i Google Talk, posjetite: http://mail.google.com/mail/help/intl/hr/about.html http://www.google.com/talk/about.html (Ako klikom ne uspijete otvoriti URL-ove u ovoj poruci, kopirajte ih i zalijepite u adresnu traku preglednika). -- 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
majna želi chatati
--- majna želi s vama ostvariti još bolji kontakt putem odličnih novih Googleovih proizvoda. Ako već imate Gmail ili Google Talk, posjetite: http://mail.google.com/mail/b-14a4975ca-6f019fb204-qZ_5WIXGKuaAyYZ26OETGLZ7SNA Morate kliknuti tu vezu da biste mogli chatati s korisnikom majna. Ako želite Gmail - besplatni Google račun za e-poštu s više od 2800 MB pohrane - te chatati s korisnikom majna, posjetite: http://mail.google.com/mail/a-14a4975ca-6f019fb204-qZ_5WIXGKuaAyYZ26OETGLZ7SNA Gmail nudi: - neposredne poruke izravno iz usluge Gmail - snažnu zaštitu od neželjene pošte - ugrađeno pretraživanje za pronalaženje poruka i jednostavno organiziranje poruka e-pošte u "razgovore" - bez skočnih oglasa i neželjenih reklama - samo tekstni oglasi i informacije povezane sa sadržajem vaših poruka Sve to možete imati potpuno besplatno. Ali čekajte, još nismo gotovi! Ako otvorite Gmail račun, ostvarujete i pristup usluzi Google Talk, Googleovoj usluzi za neposredne poruke: http://www.google.com/talk/ Google Talk nudi: - chat utemeljen na webu, koji možete upotrebljavati posvuda, bez preuzimanja - popis kontakata sinkroniziran s vašim Gmail računom - besplatne visokokvalitetne pozive s računala na računalo kada preuzmete klijent za Google Talk Predano radimo na dodavanju novih značajki i poboljšanja pa ćemo od vas povremeno možda zatražiti komentare i prijedloge. Cijenimo vašu pomoć da naše proizvode učinimo još boljima! Hvala, Tim za Google Da biste saznali više o uslugama Gmail i Google Talk, posjetite: http://mail.google.com/mail/help/intl/hr/about.html http://www.google.com/talk/about.html (Ako klikom ne uspijete otvoriti URL-ove u ovoj poruci, kopirajte ih i zalijepite u adresnu traku preglednika). -- 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 and paypal's Adaptive Payments API
Hi there, I'm building an app in cakephp where I need to use the paypal Adaptive Payments API. I'm new to cake but have read the manual a few times, built a couple of simple apps and done plenty of googling etc... so I think I understand enough to have a go at this... I need to use Adaptive Payments because I need to be able to split the payments which are going to be made up so that I can take a commission on each transaction. Trouble is I've never used it before and while I've spent a few days reading paypal's lengthy documentation I'm not sure I've absorbed it all properly I've had a hoke around the bakery and the internet in general and I see there are a few paypal components etc but they all seem to be dealing with express checkout - I'm wondering if anyone knows of a good cakephp solution (preferably one which is well documented :) thanks in advance to anyone who can point me in the right direction. -- 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: Mapping Booleans as enum('false','true') in MySQL
well, of course you can name it whatever you like :) deleted, removed, not_available_anymore, ... but yes, thats how you would do it in cake On 3 Aug., 18:23, Peter Meth wrote: > I am new to CakePHP and I have a lot of existing mysql tables that > have a field is_active that I use for soft-deletes. The field is an > enum('false','true'). I wanted to know if I can somehow take > advantage of Cake's soft-delete functionality without changing my > tables. > From what I read Cake does not have enum support out of the box and > the soft-delete functionality is accomplished with a tinyint(1) field > called deleted. -- 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: David Persson Media Plugin and saveAll
Hi Michal, I run into the same problem and finally found that I had to remove the 'Media.Coupler' from the $actAs array. Hope that works for you too! Theclansman On Jul 8, 10:42 pm, michalmalinowski wrote: > Hey, I have the same problem as > Bradhttp://groups.google.com/group/cake-php/browse_thread/thread/aa331e6a... > > I am able to edit record with attachment, change attachment, change > user data etc. But I can not create new record in the 'user' model. I > tried different options: > -disabled validator > -check what will be saved in beforeSave() > -check database queries > [11] => Array > ( > [query] => START TRANSACTION > [error] => > [affected] => 0 > [numRows] => > [took] => 0 > ) > > [12] => Array > ( > [query] => COMMIT > [error] => > [affected] => 0 > [numRows] => > [took] => 0 > ) > that is all.. > > With every option that I tried my $this->data['User'] will be empty in > the beforeSave(), but it's not in controller. When I'm trying > if($this->User->saveAll($this->data, 'validate' => 'first')) script always > > returns true, but nothing will be saved. > > Can anyone please advise with that? At least in which direction we can > do research etc. > > Michal -- 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
Mapping Booleans as enum('false','true') in MySQL
I am new to CakePHP and I have a lot of existing mysql tables that have a field is_active that I use for soft-deletes. The field is an enum('false','true'). I wanted to know if I can somehow take advantage of Cake's soft-delete functionality without changing my tables. >From what I read Cake does not have enum support out of the box and the soft-delete functionality is accomplished with a tinyint(1) field called deleted. -- 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: having cakephp in a folder in a wordpress installation
I have done this sort of mashup before as well. I often find it useful to use Cake outside of the WP folder structure. I have found that it is best to use a folder structure like: /-- | public_html-- | cakephp wordpress Then when you run the install script for WP be sure to point to the WP folder for the primary folder. There are several ways to work this, and most times cakephp can be left in it's default state to accomplish this. On Aug 2, 4:24 am, pradeep kumar wrote: > HI I have wordpress installed in my public_html and I have uploaded > cake in a folder i.e, > > Wordpress is installed in public_html and cake app is uploaded into > public_html/cakepp , now when I try to access cakeapp it is not > working, do I need to modify .htaccess, if yes then to what ? -- 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
Aw: Re: Class 'File' not found
Had the same problem, i'm using MAMP Pro, i disabled the file cache. Turning it on again solves the missing File class problem Cache::config('default', array('engine' => '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
Auth on global actions in the app_controller
Hi, I had a couple of simple actions that I needed to use in each of the controllers in my application. I decided to plonk them into app_controller and it all works fine (just how it describes in the book). Now, within my actions (in my controllers) i can simply access these new global functions with $this->NewGlobalFunctionName(VariableName). All was well until I got thinking, as my app is using Auth - how are these global actions even working when i have put no rules in to allow them. i have for example: - $group->id = 3; // deny all controllers $this->Acl->deny($group, 'controllers') // allow certain actions $this->Acl->allow($group, 'controllers/users/myprofile'); .. etc ... Auth is definitely tested working fine for the rest of the app. Why is it that these functions in /app/app_controller.php can be run without Auth preventing it and without me needing to add a $this->Acl->allow rule for them? my AppController looks like this: - class AppController extends Controller { var $components = array('Acl', 'Auth', 'Session'); var $helpers = array('Html', 'Form', 'Session', 'Javascript', 'Time'); function beforeFilter() { //Configure AuthComponent $this->Auth->actionPath = 'controllers/'; $this->Auth->allowedActions = array('display'); $this->Auth->authorize = 'actions'; $this->Auth->loginAction = array('controller' => 'users', 'action' => 'login'); $this->Auth->logoutRedirect = array('controller' => 'users', 'action' => 'login'); $this->Auth->loginRedirect = array('controller' => 'users', 'action' => 'myprofile'); } function NewGlobalFunctionName($id) { // Include a model $this->loadModel('ModelName'); .. function code here ... return something; } } Thanks, Steve -- 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: having cakephp in a folder in a wordpress installation
Hi, It should work straight away by simply accessing following url. your-site.com/wordpress and your-site.com/cakepp As, I've tried a lot like this. :) On Aug 2, 9:24 am, pradeep kumar wrote: > HI I have wordpress installed in my public_html and I have uploaded > cake in a folder i.e, > > Wordpress is installed in public_html and cake app is uploaded into > public_html/cakepp , now when I try to access cakeapp it is not > working, do I need to modify .htaccess, if yes then to what ? -- 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