Re: use different model in different controller.
if i use App::import('Model', 'Product'); it gives Fatal error: Class 'App' not found in /opt/lampp/htdocs/ cake_1.1.19.6305/app/controllers/products_controller.php on line 16 On Feb 3, 11:31 am, keymaster <[EMAIL PROTECTED]> wrote: > Don't use $uses, ever. It is terrible for performance. > > Always access models through their associations, ie. $this->model1- > > >model2->find(); > > If you don't have any associations to the model you want, use the > following before accessing your model: > > App::import('Model', 'Product'); > $tmpProduct = new Product(); > $tmpProduct->find(); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: use different model in different controller.
thanks its working now. :-) On Feb 3, 11:31 am, keymaster <[EMAIL PROTECTED]> wrote: > Don't use $uses, ever. It is terrible for performance. > > Always access models through their associations, ie. $this->model1- > > >model2->find(); > > If you don't have any associations to the model you want, use the > following before accessing your model: > > App::import('Model', 'Product'); > $tmpProduct = new Product(); > $tmpProduct->find(); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: use different model in different controller.
thats working now.. Thank you so much :-) On Feb 3, 9:16 am, brian_gaff <[EMAIL PROTECTED]> wrote: > Anupom has already told you the correct way to do it; however, if you > really really want to do it like: > > $this->Category->find(); > > Then you need to add this line to the top of your Products controller: > > var $uses = array('Product', 'Category'); > > BRIAN > > On Feb 1, 11:47 pm, Rgarg <[EMAIL PROTECTED]> wrote: > > > Hi > > > i am using two controller > > Products > > categories > > > in index page i want to display all information about products as well > > as 'category name'.category name comes from Categories table. > > > Model of Products is: > > > > class Product extends AppModel > > { > > var $name = 'Product'; > > var $belongsTo = array ('Category' => array('className' => > > 'Category','conditions'=>'','order'=>'', > > 'foreignKey'=>'category_id')); > > } > > ?> > > > controller is: > > > class ProductsController extends AppController > > { > > //var $scaffold; > > var $name = 'Products'; > > var $helpers = array('Html', 'Form', 'Tree' ); > > var $components = array('Upload'); > > > function index() { > > $this->Product->recursive = 0; > > $this->set('products', $this->Product->findAll()); > > > } > > > in index() i want to use > > > $this->set('data', $this->Category->findAllThreaded(null, null, > > 'parent_id')); > > $CategoryArray = $this->Category->generateList(null, > > 'parent_id'); > > $this->set('CategoryArray', $CategoryArray); > > > Please help me > > What to do for this. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: use different model in different controller.
Thats is working now. thank you so much Anupom. :-) On Feb 3, 9:08 am, Anupom <[EMAIL PROTECTED]> wrote: > Try this > > $this->set('data', $this->Product->Category->findAllThreaded(null, null, > 'parent_id')); >$CategoryArray = > $this->Product->Category->generateList(null, 'parent_id'); >$this->set('CategoryArray', $CategoryArray); > > On Feb 2, 2008 1:47 PM, Rgarg <[EMAIL PROTECTED]> wrote: > > > > > > > Hi > > > i am using two controller > > Products > > categories > > > in index page i want to display all information about products as well > > as 'category name'.category name comes from Categories table. > > > Model of Products is: > > > > class Product extends AppModel > > { > > var $name = 'Product'; > > var $belongsTo = array ('Category' => array('className' => > > 'Category','conditions'=>'','order'=>'', > > 'foreignKey'=>'category_id')); > > } > > ?> > > > controller is: > > > class ProductsController extends AppController > > { > > //var $scaffold; > > var $name = 'Products'; > > var $helpers = array('Html', 'Form', 'Tree' ); > > var $components = array('Upload'); > > > function index() { > > $this->Product->recursive = 0; > > $this->set('products', $this->Product->findAll()); > > } > > > in index() i want to use > > > $this->set('data', $this->Category->findAllThreaded(null, null, > > 'parent_id')); > > $CategoryArray = $this->Category->generateList(null, > > 'parent_id'); > > $this->set('CategoryArray', $CategoryArray); > > > Please help me > > What to do for this. > > -- > Thanks > Anupom > Trippert Inc. [http://www.trippert.com] > GopherNow. [http://www.gophernow.com/] > Homepage. [http://www.anupom.wordpress.com/] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: CakePHP guide
Hi Zoe, It would be cool if there is a way to subscribe to this guide, so you automatically get notified if there is an update. Anyway, good luck with this project! -- Daniel Hofstetter http://cakebaker.42dh.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Cake consultant wanted
i'm not sure if this is the best place to post this? i'm getting started off in cake and have been thru a few tutorials and am on my way to creating a modest app based on the 15 minute blog tutorial. i've posted several times here and have gotten very helpful tips and advice. i'm at the point where i feel the need for someone to login to my server and take a look at the structure that i've set up and advise me and act as a cake mentor / consultant. this will probably be sporadic, but ongoing. this is for a personal project that i am not making money on, however, i am willing to pay for someone's time. most of this can be conducted thru email, but i'd like to have the option of an occasional phone call. anyone interested? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
htaccess CakePHP redirect
Hi, I moved to Cake app and would like to use apache mod_rewrite to convert my old links to new links. I added the rewrite rule to the .htaccess in my apache document root, but it doesn't seem to redirect the links. I tested the rewrite rule on a domain without cake and it worked. Am I supposed to put the rewrite someother place like app/ webroot/.htaccess or like routes.php? Here is the rewrite: Options +FollowSymlinks RewriteEngine on rewriterule ^([0-9]+)_([a-z0-9-]+).html /news/$2/ [r=301,nc] Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: cake generate schema - Error
On 2月4日, 上午8時21分, pipi <[EMAIL PROTECTED]> wrote: > I found this: > > " including String in /console/libs/schema.php solves problem: > > line 30 of /console/libs/schema.php > > uses('file', 'model' . DS . 'schema', 'string'); " > > Source:http://groups.google.ch/group/tickets-cakephp/browse_thread/thread/fb... This problem was fixed in SVN. :) kiang --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: cake generate schema - Error
I found this: " including String in /console/libs/schema.php solves problem: line 30 of /console/libs/schema.php uses('file', 'model' . DS . 'schema', 'string'); " Source: http://groups.google.ch/group/tickets-cakephp/browse_thread/thread/fb7f6fa7c1b317ae --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Ajax helper observeField, problem when updating multiple select boxes
Hi all, I just started working with the ajax helper, but I'm running into a problem. I've three select boxes, le't's call them foo, bar and baz. I've set up observers to update bar when foo changes and to update baz when bar changes. However, if bar changes due to a change in foo, baz doesn't change accordingly. When I set up an observer to change baz when foo gets updated and pass in the value of bar, baz gets updated, but with the old value of bar as a parameter. I think that the request is sent when bar isn't changed yet. How could I solve this problem? Bram --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: bug in xml
Cake actually comes with a default XML template which includes a short- tags-compatible header, so you generally should not have to deal with this. On Feb 3, 1:20 pm, Howard Glynn <[EMAIL PROTECTED]> wrote: > This could be one of my favourite "bugs" that took me ages and ages to > figure out > a while ago. It's not a cake problem though. > > You probably need to switch off "allow short php" tags in your php.ini > > Problem is, the first line of your xml/action.ctp file is probably > something like > > > and guess what... the php interpreter looks at that and errors . > You must *only* use > HG > > manuj wrote: > > i have put some xml code in views/controller/xml/action.ctp, > > when I run this code http//servername/controller/action.ctp, > > it gives error due to > > blank charcters before starting of code --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: using components.
try var $components = array('Conf', 'Javascript'); On 03/02/2008, Novice Programmer <[EMAIL PROTECTED]> wrote: > > This would be a very silly question.. but i am stuck so posting it.. > > my layout works well but when i add teh following line to use some > component in the controller... > > var $components = array('Conf'); > > i start getting the errors: > *Notice*: Undefined variable: javascript in * > C:\www\webroot\Cake\app\views\layouts\default.thtml* on line *8* > > *Fatal error*: Call to a member function link() on a non-object in * > C:\www\webroot\Cake\app\views\layouts\default.thtml* on line *8* > > ** > *Any help would be highly appreciable.* > > -- > Thanks & Regards, > Novice (http://ishuonweb.wordpress.com/). > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: missing_layout.ctp
Put this default.thtml in the app/views/layouts folder. then check the changes. On Feb 4, 2008 1:26 AM, Feris Thia <[EMAIL PROTECTED]> wrote: > > Hi Tapos, > > Already done it. No success so far. > > Regards, > > Feris > http://top-10.bigspacehosting.com > > On 2/2/08, Tapos Pal <[EMAIL PROTECTED]> wrote: > > Make your own layout and named it default.thtml the put it in the > > views/layout folder. > > Hope this will solve your problem. > > > > > > On Feb 2, 2008 12:25 AM, Feris Thia <[EMAIL PROTECTED]> wrote: > > > > > > > > Hi All, > > > > > > I try to add missing_layout.ctp and succeed to display the replacement > > > for error messages. The annoying thing is that cakephp header is > > > shown, how can I get rid of it and just display my layout ? > > > > > > Regards, > > > > > > Feris > > > > > > > > > > > > > > -- > > Best Regards, > > Tapos Pal > > http://tapos.wordpress.com > > > > > > > > > > > -- Best Regards, Tapos Pal http://tapos.wordpress.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~--- default.thtml Description: Binary data
Re: Form Generation using form helper ..Form data not getting stored to DB.
To add to this, if it works when you hand code the form, but not when cake generates the form, the obvious place to start is to work out how the generated form is different from the hand coded form. MrTufty wrote: > You don't mention which version you're using, but I'm going to assume > 1.2 because of the $form code. > > Really, we need to see your controller code to figure this out, but it > should be something like this: > > ... in users_controller.php > > function register() { >if(!empty($this->data)) { > if($this->User->create($this->data) && $this->User->save()) { > // send success message > } else { > // send failure message > } >} > } > > That should be all you need (formatting not preserved). Most of my > controller actions follow this pattern, and they work - so if yours > doesn't, the problem could be elsewhere. > > Steve > > On Feb 3, 8:32 am, swiftguy <[EMAIL PROTECTED]> wrote: > >> Hello Experts, >> >> Im a newbie and trying to master cakephp through the IBM's 'Cook up >> Web sites fast with CakePHP' >> >> In this tutorial they have listed a form helper example ..following is >> the code snippet >> >> Please fill out the form below to register an account. >> create('User', array('action' => 'register'));?> >> > echo $form->input('first_name'); >> echo $form->input('last_name'); >> echo $form->input('username'); >> echo $form->input('email'); >> echo $form->input('password'); >> ?> >> end('Register');?> >> >> if i submit this form no record is getting stored to the database, but >> if i submit the data using the manual html code (code snippet is >> listed below) it works (able to save records to the DB) >> >> >> Please fill out the form below to register an account. >> Username: >> Password:> size="40" >> /> >> Email Address:> maxlength="255" /> >> First Name: >> Last Name: >> >> >> >> Im unable to troubleshoot the problem... kindly help me out. >> > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Form Generation using form helper ..Form data not getting stored to DB.
You don't mention which version you're using, but I'm going to assume 1.2 because of the $form code. Really, we need to see your controller code to figure this out, but it should be something like this: ... in users_controller.php function register() { if(!empty($this->data)) { if($this->User->create($this->data) && $this->User->save()) { // send success message } else { // send failure message } } } That should be all you need (formatting not preserved). Most of my controller actions follow this pattern, and they work - so if yours doesn't, the problem could be elsewhere. Steve On Feb 3, 8:32 am, swiftguy <[EMAIL PROTECTED]> wrote: > Hello Experts, > > Im a newbie and trying to master cakephp through the IBM's 'Cook up > Web sites fast with CakePHP' > > In this tutorial they have listed a form helper example ..following is > the code snippet > > Please fill out the form below to register an account. > create('User', array('action' => 'register'));?> > echo $form->input('first_name'); > echo $form->input('last_name'); > echo $form->input('username'); > echo $form->input('email'); > echo $form->input('password'); > ?> > end('Register');?> > > if i submit this form no record is getting stored to the database, but > if i submit the data using the manual html code (code snippet is > listed below) it works (able to save records to the DB) > > > Please fill out the form below to register an account. > Username: > Password: size="40" > /> > Email Address: maxlength="255" /> > First Name: > Last Name: > > > > Im unable to troubleshoot the problem... kindly help me out. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Version 1.2 mostly-ready or not?
I know I'm only using 1.2 at this point because it appears to be ready for production, even if it doesn't quite have that designation yet. On Feb 3, 1:29 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On Feb 2, 2008 6:01 PM, Scott <[EMAIL PROTECTED]> wrote: > > > > > I'm considering promoting the use of CakePHP in my software > > development organization for a new project. I know that 1.2 isn't a > > final release, but do you think it's "ready-enough", that is to say > > that any problems experienced developing a large app with 1.2 will be > > less painful than missing the features that 1.2 provides and an > > eventual migration to 1.2? We're an agile development organization > > and can easily deal with minor issues as long as it's possible to > > figure out a workaround/fix. Also, is there any kind of consensus on > > how far away from a "final" release 1.2 is? > > 1.2 is more than ready enough for use in production, in my opinion. > > -- > Chris Hartjes > Internet Loudmouth > Motto for 2008: "Moving from herding elephants to handling snakes..." > @TheKeyBoard:http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
using components.
This would be a very silly question.. but i am stuck so posting it.. my layout works well but when i add teh following line to use some component in the controller... var $components = array('Conf'); i start getting the errors: *Notice*: Undefined variable: javascript in * C:\www\webroot\Cake\app\views\layouts\default.thtml* on line *8* *Fatal error*: Call to a member function link() on a non-object in * C:\www\webroot\Cake\app\views\layouts\default.thtml* on line *8* ** *Any help would be highly appreciable.* -- Thanks & Regards, Novice (http://ishuonweb.wordpress.com/). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: missing_layout.ctp
Hi Tapos, Already done it. No success so far. Regards, Feris http://top-10.bigspacehosting.com On 2/2/08, Tapos Pal <[EMAIL PROTECTED]> wrote: > Make your own layout and named it default.thtml the put it in the > views/layout folder. > Hope this will solve your problem. > > > On Feb 2, 2008 12:25 AM, Feris Thia <[EMAIL PROTECTED]> wrote: > > > > > Hi All, > > > > I try to add missing_layout.ctp and succeed to display the replacement > > for error messages. The annoying thing is that cakephp header is > > shown, how can I get rid of it and just display my layout ? > > > > Regards, > > > > Feris > > > > > > > > -- > Best Regards, > Tapos Pal > http://tapos.wordpress.com > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: CakePHP guide
Hi Zoe, I think there is a definite need for this type clear introduction for CakePHP. Documentation is key to the success of any open-source project to help lower the barrier of entry. Please keep up the good work, as even if there is some duplication of effort in the community, we can never have too many good documents. Thanks again and good luck with this initiative. Ian. On Feb 3, 12:01 pm, MonkeyGirl <[EMAIL PROTECTED]> wrote: > Hi! > > Just to let you all know, I've finally written enough of the CakePHP > guide that I'm working on to warrant putting it online at last. It's > available here: > > http://cakephp.bytenoise.co.uk/ > > It's only the first three chapters so far, but hopefully I should have > a lot more there over the next few weeks. > > Any comments and constructive criticism are both welcomed. > > Thanks, > Zoe. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
newbie question how to get an element from a view
Hey, I'm trying to construct an element, which contains information from a database. This element should be used in default.thmtl. The databes holds a value describing a "single of the day", i wrote a model for that, i wrote a controller and i wrote a view . Everythings perfect, the view shows the expected value from the database. For constructing an element I moved the view-Code from app/views/sdts/ singled_T.thtml to app/views/ELEMENTS/singled_T.thtml and inserted $this->renderElement ('singled_T'); into default.thtml. As long as I look on views in sdts everything is fine, but when i change to another view (example localhost/user instead of localhost/ sdt), i get the message, that the variable in line 2 of the element singled_T.thmtl is undefined. I tried to add an $this->requestAction('/sdts/singled_T) but the only effect is an dead apache Maybe that constructs a recursion? I'm shure, that can't be a big problem, but I have no idea to test Anybody able (and willing) to help me? Thanks a lot Pit --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
cakePHP redirect
Hey I have a website with a lot of outgoing links to others. It is important that other sites I am referring people to know of these referrals. Does anyone know if the cakePHP redirect function will achieve this for me? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Version 1.2 mostly-ready or not?
On Feb 2, 2008 6:01 PM, Scott <[EMAIL PROTECTED]> wrote: > > I'm considering promoting the use of CakePHP in my software > development organization for a new project. I know that 1.2 isn't a > final release, but do you think it's "ready-enough", that is to say > that any problems experienced developing a large app with 1.2 will be > less painful than missing the features that 1.2 provides and an > eventual migration to 1.2? We're an agile development organization > and can easily deal with minor issues as long as it's possible to > figure out a workaround/fix. Also, is there any kind of consensus on > how far away from a "final" release 1.2 is? 1.2 is more than ready enough for use in production, in my opinion. -- Chris Hartjes Internet Loudmouth Motto for 2008: "Moving from herding elephants to handling snakes..." @TheKeyBoard: http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: bug in xml
This could be one of my favourite "bugs" that took me ages and ages to figure out a while ago. It's not a cake problem though. You probably need to switch off "allow short php" tags in your php.ini Problem is, the first line of your xml/action.ctp file is probably something like i have put some xml code in views/controller/xml/action.ctp, > when I run this code http//servername/controller/action.ctp, > it gives error due to > blank charcters before starting of code > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
CakePHP guide
Hi! Just to let you all know, I've finally written enough of the CakePHP guide that I'm working on to warrant putting it online at last. It's available here: http://cakephp.bytenoise.co.uk/ It's only the first three chapters so far, but hopefully I should have a lot more there over the next few weeks. Any comments and constructive criticism are both welcomed. Thanks, Zoe. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Differences between core debug 0 and 2
Section 2 Global Configuration http://manual.cakephp.org/chapter/configuration --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Can't find any services through AMF plugin
Kiang, would love to know if you get any more info about this. Right now im using the cakeSWXphp (http://blog.aboutme.be/ cakeswxphp/). I would prefer the AMF plugin, because it looks cleaner, and has a more cake-like stype (you "$this->set() the data you want to return to flash), but I love the service explorer, and cakeswxphp doesnt need the amfphp extension installed, so it's easier to deploy in my client's servers. Btw, cakeswxphp HAS an AMF gateway; you're not obligated to use swx (and I dont). Byes! On Jan 21, 12:08 pm, kiang <[EMAIL PROTECTED]> wrote: > On Jan 21, 6:16 am, Grant Cox <[EMAIL PROTECTED]> wrote: > > > Well, I've never used the service browser, but theAMFplugin works > > fine from Flex. > > Maybe I did rely it too much. So you didn't use any other tool to help > developing applications combined with Flex and CakePHP? I'm not > familiar with flex yet. > > > > > Perhaps get on #cake-amfand check that the service browser is > > supported - perhaps it uses something that is AMFPHP specific? > > I could use service browser when using CakeSWXPHP(theAMFpart). I'll > try to find more information through IRC. Thanks for your reply. :) > > --- > kiang --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Differences between core debug 0 and 2
hello what are the real differeneces between setting the debug var in core.php to 0 ?? - i don't get any error messages - i don't see any sql dump or something - cake loads the cached model description something i missed??? i hadn't find a full list of differences between the debug modes! its very important for me that i know how cakephp acts different between these modes... because i am trying to get more performance out of cake and i think setting to debug 0 is better!?!? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
CakePHP OthAuth Component, Permissions -- Home Page Access HOW?
Hi, Please bear with me as I am new to PHP and CakePHP. I have implemented Authentication using the OthAuth component (http:// bakery.cakephp.org/articles/view/othauth-component-v0-5-4-5). In the groups table I have created 1, administrators ; 2 orders ; 3 stock. In the permissions table I have created 1, *; 2, order ; 3, stock. Hence Group 1 has access to everything. Orders Group has permissions on controller "order", and Stock Group has permissions on the Stock controller. These have been assigned in the group permissions table. Group 1 administrators can access everything (including the home page). However Groups 2 and 3 (Orders and Stock) CAN NOT ACCESS THE HOME PAGE How do I set this up at the home page is defined in app/views/pages/ home.thtml. There is NO Controller for the HOME PAGE so how do I assign ALL Groups permission(s) to access the home page in the permissions table or is there some other mechanism. Other than the fact that ALL groups Except the administrators (permissions set to "*") access their own area's fine BUT CAN NOT SEE the HOME page!!! HELP! And how do I set up a nice "Sorry you are not permitted to see this page" other than a flash message and then re-direct to the home page that hopefully ALL will be able to see. Other than this it all appears to be fine I am missing something that I do not understand. Thank you all for your help in advance. SteveScan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: index.php not defaulting
This should probably be posted on Apache or PHP group rather than here :-) Make sure you are editing the right file (rather than a copy) and remember to restart Apache after making any alterations. My httpd.conf includes the following lines and works fine. # DirectoryIndex: sets the file that Apache will serve if a directory is requested. DirectoryIndex index.html index.htm index.php On Feb 1, 8:35 pm, "David H. Trang" <[EMAIL PROTECTED]> wrote: > I'm having problems with my index.php. I have not touched it at all > but everytime I go tohttp://localhostit gives me the directory of > files instead of just opening index.php for me. Is there something in > the httpd.conf that I'm forgetting to edit? I have changed so that > DocumentIndex is index.html index.html.var index.php. Nothing works > though. > > I'm using PHP, PostGres, and Apache HTTP Server. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Any way to determine cake's memory usage?
On Feb 3, 2008 1:19 PM, keymaster <[EMAIL PROTECTED]> wrote: > Can anyone suggest a way to map out how much memory cake is taking for > the various objects in it's context? xdebug is your friend Tarique -- = Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz: http://sanisoft.com = --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Any way to determine cake's memory usage?
> Quite possibly you were very near your limit with 1.1. Could be. Not pointing fingers at 1.2, (or anything), just trying to figure out where the memory is being used. > In the past, I've had problems with unneeded recursion. I solved these > problems by unbinding stuff that I didn't need. This may be the case here too, as my app has 25 models with significant inter-association. I am currently doing unbindModel() for all unnecessary associations and they are not showing up in the SQL query. However, I notice the $this->myController object still stores the entire network of assocations between all my models. I'm wondering if this association graph is what is consuming so much memory, even though it is not being reflected in the SQL query. If so, the only recourse seems to be to remove the associations from my model files. But, then they will not accurately reflect the data model > But if you're looking for a specific answer as to why there's an increase in > memory usage from 1.1 to 1.2; without any idea of your application, code, or > database there's no way to give you anything useful. Not looking for application specific answers, just directional pointers which might help me do the investigation myself. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Case by case validation
Hello, how realising case by case validation ?? (e.g. A form need to validate different for a user logged in, or not logged in) First, I thought about creating two different Models with the different validation cases. But what about the funcitons I need for the models which I would pack in the model itselfs. So I would need to create the same functions in both models... Not really DRY... In app_model these functions would be available in all models, which i don't prefer... What would be a more elegant way to handle case by case validations ? Regards, Alexander --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Issue with allowEmpty and required in multiple validation rules (1.2)
Thanks for your answer duRqoo, see below: On Feb 3, 11:25 am, duRqoo <[EMAIL PROTECTED]> wrote: > Hello Benjamin, this should work: > > 'password' => array( > 'notNull' => array( > 'rule' => array('custom', VALID_NOT_EMPTY), I though constant rules were deprecated in cake 1.2. especially this one has been replaced by allowEmpty (I am trying to be as much compatible as I can with 1.2). > 'required' => true, > 'message' => 'Please enter a password.' > ), > > 'between' => array( > 'rule' => array('between', 4, 12), > 'message' => 'Please check the number of characters in your > password.' > ) > > allowEmpty defaults to false so u don't need to specify it unless u > want to change it. I think allowEmpty and required options are checked > before the rule specification. So if allowEmpty is false and u submit > no data, cake won't check the rule because validation will return > false anyway. > > When you are using multiple validation rules per field, cake will > check all of those rules. That means, in your case, if your first rule > fails, your second rule will fail too and u'll get 'between' rule > error msg even when the password was empty. If you want to change this > behaviour you can simply add 'last'=>true option to desired rules, > which will force cake to stop further validation for certain field if > one of them invalidates. Yes, it is not showing in the given example but I agree with you and it is in my code already. In any case this is all a bit of DIY, hack I just wonder if there is proper way to do it. But I have been debugging validates for a couple of hours now and it is just not going to work unless 'rule' is declared to something that always return true (in my case I have used rule => array('custom' , '/.*/') ) to avoid using constant rules. What happend is that if you put your keywords outside a declared rule and dont' declare 'rule' ,validates assumes 'rule' exists an overwritte $validator array with array('rule', $validator) but the key does not exist so it is set to false and it all breaks down... The other scenario is to put them into a rule declaration but again if 'rule' is not defined it is default to 'blank' which is not very helpful. There should be a way of testing required and allowEmpty without having to declare a specific rule. Cheers Benjamin > > Cheers. > > On 3. Feb, 11:06 h., cisbrh <[EMAIL PROTECTED]> wrote: > > > Hi everybody, > > first of all thank you for the really good work you've doing on cake. > > I've used it 2 years ago for a massive application and I had to write > > my own postgresql layer... The work done since then especially on 1.2 > > is amazing. > > Anyway. I am trying to use multiple validation rules (1.2) with > > allowEmpty and required but I just can't get it working. > > I've look at the sources and it looks like the 2 keys must be included > > in their own rule declaration ie: > > 'password' => array( > > 'notNull' =>array( > > 'allowEmpty' => false, > > 'required' => true, > > 'message' => 'Please enter a password.' > > ), > > 'between' => array( > > 'rule' => array('between', 4, 12), > > 'message' => 'Please check the number of > > characters in your > > password.' > > ). > > > But that does not work because model will default the keywords value > > for 'rule' to 'blank' !!! So what value should I give to 'rule'. > > If I put allowEmpty and required outside a rule declaration it breaks > > completely ie: > > 'password' => array( > > 'allowEmpty' => false, > > 'required' => true, > > 'message' => 'Please enter a password.', > > 'between' => array( > > 'rule' => array('between', 4, 12), > > 'message' => 'Please check the number of > > characters in your > > password.' > > ). > > > so I am a bit stuck. > > I guess I could use a custom rule which always return true and let > > required and allowEmpty to invalidate if needed but surely there is a > > better way ? > > Thanks in advance. > > Benjamin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Issue with allowEmpty and required in multiple validation rules (1.2)
Hello Benjamin, this should work: 'password' => array( 'notNull' => array( 'rule' => array('custom', VALID_NOT_EMPTY), 'required' => true, 'message' => 'Please enter a password.' ), 'between' => array( 'rule' => array('between', 4, 12), 'message' => 'Please check the number of characters in your password.' ) allowEmpty defaults to false so u don't need to specify it unless u want to change it. I think allowEmpty and required options are checked before the rule specification. So if allowEmpty is false and u submit no data, cake won't check the rule because validation will return false anyway. When you are using multiple validation rules per field, cake will check all of those rules. That means, in your case, if your first rule fails, your second rule will fail too and u'll get 'between' rule error msg even when the password was empty. If you want to change this behaviour you can simply add 'last'=>true option to desired rules, which will force cake to stop further validation for certain field if one of them invalidates. Cheers. On 3. Feb, 11:06 h., cisbrh <[EMAIL PROTECTED]> wrote: > Hi everybody, > first of all thank you for the really good work you've doing on cake. > I've used it 2 years ago for a massive application and I had to write > my own postgresql layer... The work done since then especially on 1.2 > is amazing. > Anyway. I am trying to use multiple validation rules (1.2) with > allowEmpty and required but I just can't get it working. > I've look at the sources and it looks like the 2 keys must be included > in their own rule declaration ie: > 'password' => array( > 'notNull' =>array( > 'allowEmpty' => false, > 'required' => true, > 'message' => 'Please enter a password.' > ), > 'between' => array( > 'rule' => array('between', 4, 12), > 'message' => 'Please check the number of > characters in your > password.' > ). > > But that does not work because model will default the keywords value > for 'rule' to 'blank' !!! So what value should I give to 'rule'. > If I put allowEmpty and required outside a rule declaration it breaks > completely ie: > 'password' => array( > 'allowEmpty' => false, > 'required' => true, > 'message' => 'Please enter a password.', > 'between' => array( > 'rule' => array('between', 4, 12), > 'message' => 'Please check the number of > characters in your > password.' > ). > > so I am a bit stuck. > I guess I could use a custom rule which always return true and let > required and allowEmpty to invalidate if needed but surely there is a > better way ? > Thanks in advance. > Benjamin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Newbie Question: "Linking" views together
Hi all, I'm currently testing cake and came across the following problem: I've two models (Computer and Person) with the corresponding two views, where one can add new computers and persons. A rule is, that every computer has to have at least one responsible person. Now let's say, a user wants to add a new computer for which the responsible person does not yet exist. How can I ensure, that the user is directed to the person view after specifying the computer's details? Also, I only want to write the computer's details to the database, if the user completely specifies a valid person in the second step. To ask the question in a more general way: I'm having problems with the (seemingly) strict separation of the views. Is there an elegant (or "cake") way, to link them together as described above? This probably has to be done in the controller - but in which one (person or computer) and how? Any hint would be great, thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
PostgreSQL and UPDATE table aliases
I recently updated a project to the latest CakePHP 1.2 beta and am now getting errors with updates on a PostgreSQL database since table aliases are not supported in UPDATE statements. I found this thread http://groups.google.com/group/tickets-cakephp/browse_thread/thread/640a36ed617ae801/60989a7d24102e1b which states that it should have been fixed as of January 16th. I was wondering if this fix should have made it into the current download or if there was somewhere I can get this fix or perhaps a listing of which files I can modify myself to address this. Thanks, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Version 1.2 mostly-ready or not?
I'm considering promoting the use of CakePHP in my software development organization for a new project. I know that 1.2 isn't a final release, but do you think it's "ready-enough", that is to say that any problems experienced developing a large app with 1.2 will be less painful than missing the features that 1.2 provides and an eventual migration to 1.2? We're an agile development organization and can easily deal with minor issues as long as it's possible to figure out a workaround/fix. Also, is there any kind of consensus on how far away from a "final" release 1.2 is? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Issue with allowEmpty and required in multiple validation rules (1.2)
Hi everybody, first of all thank you for the really good work you've doing on cake. I've used it 2 years ago for a massive application and I had to write my own postgresql layer... The work done since then especially on 1.2 is amazing. Anyway. I am trying to use multiple validation rules (1.2) with allowEmpty and required but I just can't get it working. I've look at the sources and it looks like the 2 keys must be included in their own rule declaration ie: 'password' => array( 'notNull' =>array( 'allowEmpty' => false, 'required' => true, 'message' => 'Please enter a password.' ), 'between' => array( 'rule' => array('between', 4, 12), 'message' => 'Please check the number of characters in your password.' ). But that does not work because model will default the keywords value for 'rule' to 'blank' !!! So what value should I give to 'rule'. If I put allowEmpty and required outside a rule declaration it breaks completely ie: 'password' => array( 'allowEmpty' => false, 'required' => true, 'message' => 'Please enter a password.', 'between' => array( 'rule' => array('between', 4, 12), 'message' => 'Please check the number of characters in your password.' ). so I am a bit stuck. I guess I could use a custom rule which always return true and let required and allowEmpty to invalidate if needed but surely there is a better way ? Thanks in advance. Benjamin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: HTML Helper - flash support
Unlikely. My theory on this, others may disagree, is that Flash is better added by the theory of progressive enhancement. That's why I use jQuery plus the jQuery Flash plugin to handle it at the client side. I'm pretty sure other libraries have similar solutions. Steve On Feb 1, 11:00 pm, Ata Alqadi <[EMAIL PROTECTED]> wrote: > Hello, > > I needed to use flash files in my site, so i wrote the following > function: > > function flash($path, $name, $width, $height, $scale = "exactfit", > $wmode = "transparent"){ > if (is_array($path)) { > $path = Router::url($path); > } elseif ($path{0} === '/') { > $path = $this->webroot($path); > } elseif (strpos($path, '://') !== false) { > $path = $path; > } else { > if (Configure::read('Asset.timestamp') == true && > Configure::read()> 0) { > > $path .= '?' . @filemtime(str_replace('/', DS, > WWW_ROOT . > FLASHES_URL . $path)); > } > $path = $this->webroot(FLASHES_URL . $path); > } > > return '
Re: HABTM - read only associations in Cake 1.2
Thanks for your thoughts Adam. I made a very simple function (below), the result seems to be that even if there isn't a LensMount entry Cake still deletes the old HABTM table record, and tries to recreate it. I think the only way I can do this is to stop using the HABTM relationship and do it manually - in this case it's not hard to do. $j = $this->Lens->findById(1); $j['Lens']['name'] = 'x' . $j['Lens']['name']; $j['Lens'][0] = null; $this->Lens->save($j['Lens'])) Other ideas are welcome Thanks Tim On Feb 2, 12:01 pm, Adam Royle <[EMAIL PROTECTED]> wrote: > I may be wrong in saying this, but I don't thinkcakeshould affect > yourHABTMassociationsif there is no LensMount key in $this->data > when you save. > > Try pr($this->data); before your save to see what keys are sent to the > model. > > Adam > > On Feb 2, 6:55 am, Tim Wild <[EMAIL PROTECTED]> wrote: > > > Does anyone have an idea about this? Or do I stop usingHABTMand do it > > with a plain old database call? > > > Tim W wrote: > > > Hi all, > > > > I have aHABTMrelationship that's working, but I want to tell it not > > > to delete and create new rows in the many to many table - Ionlywant > > > it to treat that table asreadonly. Using the following unbindModel > > > command doesn't seem to affect it. > > > > $this->Lens->unbindModel(array('hasAndBelongsToMany' => > > > array('LensMount'))); > > > > (Just FYI the models are Lens and LensMount, with appropriate tables, > > > and a lenses_lens_mounts table with no model) > > > > I've seen the links posted to "Working withHABTMassociations" and > > > "HABTMAdd & Delete Behavior", but neither seem to address my problem. > > > I figure there must be a simple way to disable theHABTMduring save. > > > > How do I tellCakenot to mess with the join table? > > > > Thanks > > > > Tim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Form Generation using form helper ..Form data not getting stored to DB.
Hello Experts, Im a newbie and trying to master cakephp through the IBM's 'Cook up Web sites fast with CakePHP' In this tutorial they have listed a form helper example ..following is the code snippet Please fill out the form below to register an account. create('User', array('action' => 'register'));?> input('first_name'); echo $form->input('last_name'); echo $form->input('username'); echo $form->input('email'); echo $form->input('password'); ?> end('Register');?> if i submit this form no record is getting stored to the database, but if i submit the data using the manual html code (code snippet is listed below) it works (able to save records to the DB) Please fill out the form below to register an account. Username: Password: Email Address: First Name: Last Name: Im unable to troubleshoot the problem... kindly help me out. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Any way to determine cake's memory usage?
Results returned don't equate to records processed. Quite possibly you were very near your limit with 1.1. In the past, I've had problems with unneeded recursion. I solved these problems by unbinding stuff that I didn't need. But if you're looking for a specific answer as to why there's an increase in memory usage from 1.1 to 1.2; without any idea of your application, code, or database there's no way to give you anything useful. On Feb 3, 2008 1:49 AM, keymaster <[EMAIL PROTECTED]> wrote: > > In a mid-size app I just upgraded from 1.1.19 to 1.2 beta, I am > running out of memory (the 8M PHP limit). > > This is occuring on searches which return more than 10-15 products. > > The results returned by the search are only around 300Kb, so it > doesn't seem like the search results themselves are what is using up > the bulk of the 8M. > > Can anyone suggest a way to map out how much memory cake is taking for > the various objects in it's context? > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---