Re: Label information for Multiple Checkboxes

2009-01-15 Thread brian
I think you could probably easily build the structure you want using Set in afterFind() (if not in the find itself). Can you post an example of the sort of array you would need if you were, say, displaying each option in an html table? Like if you did a straight find('all', $your_conditions). On

Re: Editable table

2009-01-15 Thread Miles J
Tablekit mainly JS/AJAX, which can simply be ported to CakePHP with a little effort. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To u

Re: Saving Your Data

2009-01-15 Thread brian
To clarify, if all you want to do is edit a Profile, you only need the user_id in $this->data[Profile'] If that's good to go, just do $this->User->Profile->save($this->data); On Fri, Jan 16, 2009 at 1:08 AM, brian wrote: > Because the assumption is that a User is being created in the same > act

Re: Saving Your Data

2009-01-15 Thread brian
Because the assumption is that a User is being created in the same action. Read back to the sentence before the one you quoted. "... that handles the saving of a new User and a related Profile." On Thu, Jan 15, 2009 at 8:15 PM, Delirium tremens wrote: > > "The example action shown below will ass

Quote marks in model names and Use of undefined constant notices

2009-01-15 Thread clarkphp
Check out the extra quotes in the model name in the WHERE clause below: SELECT `Organization`.`name`, `Organization`.`description` FROM `organizations` AS `Organization` WHERE `‘Organization’`.`status` = 'inactive' ORDER BY `Organization`.`name` asc I've used SimpleTest before, but am now be

Re: unwanted user_id increase

2009-01-15 Thread Delirium tremens
I removed the line, but it still does not work, because user_id is empty. On 16 jan, 00:51, stefano wrote: > why are you doing the save into User's model? remove this line > $usersaved = $this->User->save($this->data); > > function add() { >        if (!empty ($this->data)) { >                $t

Re: Simple validation, required=true does not work or has preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash

2009-01-15 Thread phpcurious
I just noticed another thing about your problem. The reason why you get a preg_match error is because you weren't able to follow the proper syntax for the validation rule. for simple rules, you can follow this sample code (got from book): var $validate = array( 'fieldName1' => array(

Re: unwanted user_id increase

2009-01-15 Thread Delirium tremens
The order is actually: 1. $this->User->save($this->data); 2. $this->data['Profile']['user_id'] = $this->User->id; 3. $this->User->Profile->save($this->data); On 16 jan, 01:03, Delirium tremens wrote: > On 16 jan, 00:51, stefano wrote: > > > why are you doing the save into User's model? > > htt

Editable table

2009-01-15 Thread Al
Hello, Can anyone point me in the correct direction for creating an editable table in cakePHP, much like "tablekit" http://www.millstream.com.au/view/code/tablekit I use tablekit currently, should I just be figuring out how to use it within cakePHP? Thanks! Al --~--~-~--~~

Re: unwanted user_id increase

2009-01-15 Thread Delirium tremens
On 16 jan, 00:51, stefano wrote: > why are you doing the save into User's model? http://book.cakephp.org/view/84/Saving-Related-Model-Data-hasOne-hasMany-belongsTo The add example on top of that page uses... 1. $this->User->Profile->save($this->data); 2. $this->data['Profile']['user_id'] = $th

Re: Nested Associations / Multiple Joins

2009-01-15 Thread seth
Also, what is "read", I'm not having any luck finding any documentation on this (perhaps I should be using "find" and that's my problem to begin with...). I just copied this line from a baked controller: $user = $this->User->read(null, $id); --~--~-~--~~~---~--~~ Y

Re: unwanted user_id increase

2009-01-15 Thread stefano
why are you doing the save into User's model? remove this line $usersaved = $this->User->save($this->data); function add() { if (!empty ($this->data)) { $this->data['Post']['user_id'] = $this->User->id; $postsaved = $this->User->Post->save($this->data);

Nested Associations / Multiple Joins

2009-01-15 Thread seth
I have the following setup: Users hasAndBelongsToMany Albums Albums belongsTo Artists It's easy enough to retrieve all the users albums with: $user = $this->User->read(null, $id); This populates $user['Album']. But what is the best practice for getting the artist info associated with the albu

unwanted user_id increase

2009-01-15 Thread Delirium tremens
I have a User hasMany Post and a Post belongs to User. The function to add a post with an user id is inserting a user with null email and null password into the users table and a post with an user id increased by one into the posts table. Take a look... function add() { if (!empty ($this-

Saving Your Data

2009-01-15 Thread Delirium tremens
"The example action shown below will assume that you've POSTed enough data (using the FormHelper) to create a single User and a single Profile." http://book.cakephp.org/view/84/Saving-Related-Model-Data-hasOne-hasMany-belongsTo POSTed enough data to save a single User and a single Profile??? I

Re: Security.level with Blackberry over SSL

2009-01-15 Thread Elmo
So I finally figured out why the sessions keep mysteriously dropping on my blackberry. The symptoms are simple. Login to the cake app, and you get to the first logged in page. Then when you click on anything else to take you deeper into the site, you get redirected back to the login page. The pro

Re: Tabs in Layout... Help Please.

2009-01-15 Thread nurvzy
@Andrew: Thank you very much for the link to your great article; its well written and much appreciated. Thank you all for your quick responses, help and advice. Very much appreciated! Nick On Jan 15, 2:05 pm, "ache...@gmail.com" wrote: > Nurvzy, > > Yes! This is the first time I've written any

Re: How do I access a HABTM relationship from another model?

2009-01-15 Thread Miles J
$mastercats = $this->User->find('all', array('conditions'=>array('User.id' => $id), 'contain' => array( 'Mastercat.id', 'Mastercat.desc'), ), ) ); --~--~-~--~~~---~--~~ You received

Re: How do I access a HABTM relationship from another model?

2009-01-15 Thread Nancy
I'm getting closer! I have this right now: $mastercats = $this->User->find('all', array('conditions'=>array('User.id' => $id), 'contain' => array( 'Mastercat' => array( 'fields'=>array('id','desc')

Re: Creating a "Does not Equal To" SQL Statement

2009-01-15 Thread exo_duz
Thanks for that. Works perfect! On Jan 15, 8:24 am, Graham Weldon wrote: > Hey, > > 'conditions' => array( >    'OpportunityCategory.id !=' => 1) > > That should do it for you. > > Cheers. > > On Thu, 15 Jan 2009 05:13:20 -0800 (PST), exo_duz > wrote:> Hi all, > > > Simple question. I want to c

Re: How do I access a HABTM relationship from another model?

2009-01-15 Thread Miles J
Well more like this I believe: $this->Recipe->find('first',array('conditions'=>array('User.id'=> $user_id),'recursive'=>2, 'contain' => array('Category', 'User'))) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cak

Re: How do I access a HABTM relationship from another model?

2009-01-15 Thread Nancy
On Jan 15, 3:32 pm, Miles J wrote: > Set your recursive level to 2/3 and the User association will grab the > categories along with it. Use containable to filter the results. I'm new to cakephp so I'll try to echo back what I think you're saying. In my recipes controller then I'd do something l

Re: How do I access a HABTM relationship from another model?

2009-01-15 Thread Miles J
Set your recursive level to 2/3 and the User association will grab the categories along with it. Use containable to filter the results. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this

How do I access a HABTM relationship from another model?

2009-01-15 Thread Nancy
Hopefully I can explain this adequately. I have 3 models Recipe: belongsTo User Recipe: HaBTM Category User: HaBTM Category (same categories as recipes) User: hasMany Recipe Category: HaBTM User Category: HaBTM Recipe (join tables categories_users and categories_recipes) Everything works g

Re: Label information for Multiple Checkboxes

2009-01-15 Thread Tony Thomas
I follow you up to this bit: > > echo $form->input( > 'Category', > array( > 'type'=>'select', > 'multiple'=>'checkbox', > 'options'=>$ids, > 'label'=>false > ) > ); > ?> This doesn't seem to solve the problem of gett

Re: mod_rewrite problems

2009-01-15 Thread neridaj
I should have mentioned that I'm a newb, thanks for the help. On Jan 15, 12:43 pm, Graham Weldon wrote: > Hey, > > I know its a basic thing, so don't get annoyed at me for asking.. > But are you restarting the webserver after these changes? > You'll need to restart or reload your apache config i

Re: A new discussion about "controllers which extend another-controller-other-than-AppController"

2009-01-15 Thread Bernardo Vieira
Just one question though, why can't you just use app_controller for this? Or better yet, for added flexibility, put whatever you need in a component and use it in the controllers where you need remoting capabilities. Graham Weldon wrote: > Hey, > > Better than including php files, use the Cake

Re: Questions about forms / validation

2009-01-15 Thread fly2279
On the first part of the question you can do an 'on' => 'create' so that it doesn't run that portion of validation when updating a record. http://book.cakephp.org/view/131/on I'll let someone more experienced answer the second part about population. On Jan 15, 1:45 am, Miles J wrote: > So Im w

Re: Tabs in Layout... Help Please.

2009-01-15 Thread ache...@gmail.com
Nurvzy, Yes! This is the first time I've written anything and then been able to link to it. I don't like the idea of using your server to process this, I think it's a task much better suited to CSS I wrote about it here if you want to take a look http://www.lifeiscake.com/posts/view/css-menus Si

Re: A new discussion about "controllers which extend another-controller-other-than-AppController"

2009-01-15 Thread Graham Weldon
Hey, Better than including php files, use the CakePHP App::import() and ClassRegistry::init() methods. These locate, include and in the case of the ClassRegistry, instantiate and return the object for you. You would in this case, do something like: App::import('Controller', 'RemotingController

A new discussion about "controllers which extend another-controller-other-than-AppController"

2009-01-15 Thread caminante
Being released 1.2 final version of CakePHP, I opened this discussion to try to bring some light together to this issue. My need: What's in the subject of this discussion; I have a couple of "special" controllers to be called from flash (through cakeswxphp). What I need is those controllers exten

Re: mod_rewrite problems

2009-01-15 Thread Graham Weldon
Hey, I know its a basic thing, so don't get annoyed at me for asking.. But are you restarting the webserver after these changes? You'll need to restart or reload your apache config in order for changes to take effect. Cheers, Graham On Thu, 15 Jan 2009 10:15:38 -0800 (PST), neridaj wrote: >

Re: Questions about forms / validation

2009-01-15 Thread Miles J
Any help would be lovely! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubsc

Re: Save flow behaviour ..

2009-01-15 Thread teknoid
sounds like your model isn't found, so cake uses an instance of AppModel, which of course doesn't have beforeSave() defined. make sure the file is named correctly. On Jan 15, 7:22 am, "Marcelo Iwata" wrote: > At cakePHP documentation, it's clear that beforeSave have to return true to > continue

Session - setFlash - redirect - GONE!

2009-01-15 Thread deedod
Hello All, I'm having an issue pretty much exactly like the issue posted here: http://www.nabble.com/Sessions,-redirects-and-setFlash-td14792737.html Basically I set a session variable when an admin logs in with some info $this->Session->write('AdminInfo', $admin); And then on every page in th

Re: Rendering an add form within another controller's view (with all automagicness)

2009-01-15 Thread Martin Westin
I can only think of one far-fetched thing to check. Make sure you specify the inputs with the Modelname present. $html->input(Modelname.fieldname); Or get around requestAction of-course :) /Martin On Jan 15, 8:08 pm, jwerd wrote: > Sorry, it was about 3am when I wrote that and I was prettty

Re: Label information for Multiple Checkboxes

2009-01-15 Thread Tony Thomas
I tried that very thing, but it didn't produce the expected results. Maybe find('list', $options) isn't meant to accommodate more than a single field. I'm not sure. On Jan 15, 11:34 am, "David Coleman" wrote: > You could also do something like this in your controller: > >             $aliquots =

Validation error messages of related model are not shown

2009-01-15 Thread Braindead
I have a view were I show a news and it's related comments. There is also a form in the view where the user can enter a new comment. I want to save the new comment in the news controller comment action, because I don't want to use a comments controller. Everything works well except the fact that

RE: Label information for Multiple Checkboxes

2009-01-15 Thread David Coleman
Easy as cake my friend. Just use this code, and build the list for your checkboxes... $selected_users=array(); if (empty($this->data)) { $this->data = $this->Site->read(null, $id); /* here you would replace the data=read wit

Re: Label information for Multiple Checkboxes

2009-01-15 Thread Tony Thomas
On Jan 15, 1:03 pm, "David Coleman" wrote: > Do you need checkboxes from multiple tables?   No. The checkboxes in this case only pertain to my aliquots table so that users can assign them to a box, which is in turn assigned to a freezer. But in order to identify where the aliquots go, there are

Re: Rendering an add form within another controller's view (with all automagicness)

2009-01-15 Thread jwerd
Sorry, it was about 3am when I wrote that and I was prettty vague on the precise problem. The automagicness (as far as cake finding out what field goes where) is working fine, the problem I'm having is with the drop downs, basically the select box outputs in a weird form: it shows every field fr

RE: Label information for Multiple Checkboxes

2009-01-15 Thread David Coleman
Do you need checkboxes from multiple tables? If so you need to use the trick I posted earlier today to make the hidden elements not be duplicated. Overload your form.php in your app/views/helpers folder. What you are doing is similar to a recent application that I wrote, in which I developed thi

Re: Beginner: Cake PHP and XAMPP (windows)

2009-01-15 Thread Henrique Machado
Or try Wamp that is ready to go 2009/1/15 Bernardo Vieira > > Xampp comes with mod_rewrite disabled by default. Edit > c:\xampp\apache\conf\httpd.conf, uncomment the LoadModule mod_rewrite > line, restart apache and you should be good do go. > > Celso wrote: > > Hello! I am new in cakephp, I am

Re: Label information for Multiple Checkboxes

2009-01-15 Thread Tony Thomas
The complicating factor here is that Aliquot belongs to Specimen in my model and I want to display some information from both tables: Specimen.type, Specimen.draw_date, Aliquot.additive & etc. It looks more and more like I'm going to have to put that information in an array and loop through it, bu

RE: Label information for Multiple Checkboxes

2009-01-15 Thread David Coleman
Odd, I'm using that very syntax and it works just fine... $selected_users=array(); if (empty($this->data)) { $this->data = $this->Site->read(null, $id); /* here you would do something like $ali_list = $this->Aliq

Re: best cakephp calendar?

2009-01-15 Thread Nate
I actually wrote one a bit ago that I was gonna release this week. I'll post the URL back here when I do. On Jan 15, 12:23 pm, ezekfred wrote: > Hi, > > I have to display a schedule and I'd like to know which calendar > plugin/helper do you use in your projects? > > till now I > know:http://www

Complex AJAX and Cookies issue Question with CakePHP

2009-01-15 Thread David Coleman
I’m designing a survey module using CakePHP. The purpose of this module is to be called from a foreign site by this code: http://global_survey.localhost/visitor_sessions/init/1234";> Obviously, localhost will be replaced with the production server when live

Re: mod_rewrite problems

2009-01-15 Thread neridaj
I tried adding that line in the 1.2.x.x .htaccess file as well as the / app .htaccess file with no luck. On Jan 15, 8:53 am, Smelly_Eddie wrote: > Try adding >  RewriteBase / > > just after > RewriteEngine On > > in your htaccess files. > > When I was on godaddy i found this to be a requirement

Re: multiple httpd.conf files

2009-01-15 Thread neridaj
I installed from the svn trunk and I have the .htaccess file in my 1.2.x.x folder under the DocumentRoot - "/Library/WebServer/ Documents", are you saying that I need to copy this file to my apache directory? I tried copying that file to "/opt/local/apache2/htdocs but it made no difference. On J

Re: Beginner: Cake PHP and XAMPP (windows)

2009-01-15 Thread Bernardo Vieira
Xampp comes with mod_rewrite disabled by default. Edit c:\xampp\apache\conf\httpd.conf, uncomment the LoadModule mod_rewrite line, restart apache and you should be good do go. Celso wrote: > Hello! I am new in cakephp, I am with a proposal to replace the asp by > php here in my work. Tentei >

RE: Label information for Multiple Checkboxes

2009-01-15 Thread David Coleman
You could also do something like this in your controller: $aliquots = $this->Aliquot->find( 'list', array( 'fields'=>array( 'Aliquot.id', 'Aliquot.name'

best cakephp calendar?

2009-01-15 Thread ezekfred
Hi, I have to display a schedule and I'd like to know which calendar plugin/helper do you use in your projects? till now I know: http://www.stellarcore.com/2009/01/07/cakephp-calendar-helper/#more-90 http://github.com/davidgolding/anno-domini/tree/master http://www.formation-cakephp.com/14/gener

Beginner: Cake PHP and XAMPP (windows)

2009-01-15 Thread Celso
Hello! I am new in cakephp, I am with a proposal to replace the asp by php here in my work. Tentei http://www.sitepoint.com/article/application-development-cakephp/2/, but does not work in XAMPP ... Celso --~--~-~--~~~---~--~~ You received this message because y

Re: Label information for Multiple Checkboxes

2009-01-15 Thread grigri
You need to set the $displayField property inside your `Aliquot` model to whatever field you want for the label. On Jan 15, 4:47 pm, Tony Thomas wrote: > I'm building a list of checkboxes like so: > > echo $form->input('Aliquot.id', array( 'label' => FALSE, >                                    

Re: mod_rewrite problems

2009-01-15 Thread Smelly_Eddie
Try adding RewriteBase / just after RewriteEngine On in your htaccess files. When I was on godaddy i found this to be a requirement to get things working. On Jan 14, 4:14 pm, neridaj wrote: > Hello, > > I've edited my httpd.conf file as instructed and can't get mod_rewrite > working. Any sug

Re: Bake scripts without shell access

2009-01-15 Thread Smelly_Eddie
Check out dreamhost. Shared hosting keep costs down and you get full shell access. But yes, I would recommend baking locally and uploading. You can even limit the edits you need to make by customizing your database config file a bit. http://edwardawebb.com/programming/php-programming/cakephp/au

Label information for Multiple Checkboxes

2009-01-15 Thread Tony Thomas
I'm building a list of checkboxes like so: echo $form->input('Aliquot.id', array( 'label' => FALSE, 'type' => 'select', 'multiple' => '

Re: Where to validate multiple fields?

2009-01-15 Thread Smelly_Eddie
You can create a custom function and use it in the $validate parameter. Have a look at this article to get an idea of how that would work in your case. (The compare passwords option) http://edwardawebb.com/programming/php-programming/cakephp/complex-validation-cakephp-12 On Jan 14, 11:44 am, fl

Foreign Key Syntax in CakePHP Migrations

2009-01-15 Thread Phoenix Rising
Hi everyone, I'm trying to create a migration in CakePHP 1.2 that will add a table for a HABTM relationship and set the foreign keys for it. Here's my code (generated via 'cake schema generate', selecting 'snapshot'): // --snip -- var $phones_phone_features = array( 'id'

Re: PHP Page inside of Cake but not Cake

2009-01-15 Thread Pyrite
Thanks a bunch! Sometimes you just don't know how to do things the CakePHP way and need to get it working first, you can then show somebody in the community and ask for help converting to the CakePHP method of good coding practice. On Jan 15, 10:13 am, grigri wrote: > Sure, put the .php file in

Re: PHP Page inside of Cake but not Cake

2009-01-15 Thread grigri
Sure, put the .php file inside the app/webroot folder. eg: app/webroot/bacon.php Then call http://server/bacon.php hth grigri On Jan 15, 4:07 pm, Pyrite wrote: > Is there a way to make a plain jane custom php page and access it > inside of the cake directory but not have CakePHP interefere wi

PHP Page inside of Cake but not Cake

2009-01-15 Thread Pyrite
Is there a way to make a plain jane custom php page and access it inside of the cake directory but not have CakePHP interefere with it. I am wanting to test a page and CakePHP and is screwing up the java script and I want to test the page as if CakePHP wasn't there. However, I am at work and do n

Re: Rendering an add form within another controller's view (with all automagicness)

2009-01-15 Thread Martin Westin
A quick suggestion to follow along with Lecter's reply: Since it is an add form it does not show any pre-populated data, right? I am not sure what you mean by automagicness, though? Do you mean Cakes ability to figure out that one thing is a textfield and another is a dropdown? Try to put your

Re: FlyUpload RFP Web Development Project, about $10k

2009-01-15 Thread Henrique Machado
http://cakephp.org/jobs 2009/1/14 khalid.j.sha...@gmail.com > > We are looking for a good team of developers to build out > www.flyupload.com. > > We are looking at products and services from > www.depositfiles.com > www.esnips.com > www.imagebam.com > > I know the last web site would take days

FlyUpload RFP Web Development Project, about $10k

2009-01-15 Thread khalid.j.sha...@gmail.com
We are looking for a good team of developers to build out www.flyupload.com. We are looking at products and services from www.depositfiles.com www.esnips.com www.imagebam.com I know the last web site would take days to build, and we want that as well. We'd like a team that can do all of this, i

Re: Pulling dynamic content with cake 1.2 final

2009-01-15 Thread Bankai
Thanks for the routing part, but how can I accomplish something similar to that and more secure with cakephp? On 15 ene, 00:11, Miles J wrote: > Your previous  code is extremely unsecure and uses bad logic. > > If your views name is sitemap.ctp within /views/pages/, the url would > be /pages/s

Save flow behaviour ..

2009-01-15 Thread Marcelo Iwata
At cakePHP documentation, it's clear that beforeSave have to return true to continue the Save process. But, i was doing some tests.. function beforeSave(){return false;} function save() { $this->set("CSS", "main");if (!empty($this->data)) {if ($this->User->save($this->data)) {$this->flash('Your

Re: parameters with /

2009-01-15 Thread Martin Westin
requestAction() is a bit seductive. It can look like a simple solution to a lot of things but the problem (that you notice later on) is that is has a high "cost" in the processing overhead and in that you don't improve your design instead of using the "quick fix". When requestAction() is called y

Re: Bake scripts without shell access

2009-01-15 Thread mark_story
Most non-shared hosting companies do provide a shell. You can sometimes get a Java client with applications like cPanel or Plesk as well. If you are just running bake and such most people will run that locally. If you write shells that you need to run remotely like maintenance scripts etc. The

Re: parameters with /

2009-01-15 Thread Mario Cesar
teknoid, why is a bad idea ??? --- p.s. It is almost always a bad idea to use requestAction() ;) On Wed, Jan 14, 2009 at 2:29 PM, teknoid wrote: > > Any params can be passed like: /controller/action/param1/param2/param3 > Or as named params: /controller/action/name:bob/city:paris/ > account:act

Re: How to prevent updating other fields when calling model::save()

2009-01-15 Thread K3
Great. Many thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@go

Re: Creating a "Does not Equal To" SQL Statement

2009-01-15 Thread Graham Weldon
Hey, 'conditions' => array( 'OpportunityCategory.id !=' => 1) That should do it for you. Cheers. On Thu, 15 Jan 2009 05:13:20 -0800 (PST), exo_duz wrote: > Hi all, > > Simple question. I want to create a "Does Not Equal To" SQL statement > within the Controller. The SQL statement would

Creating a "Does not Equal To" SQL Statement

2009-01-15 Thread exo_duz
Hi all, Simple question. I want to create a "Does Not Equal To" SQL statement within the Controller. The SQL statement would just get me back all data when "OpportunityCategory.id" <> 1. $findOtherOpportunities = $this->OpportunityCategory->find('all', array ( 'conditions' => array( 'Opportu

Re: How to prevent updating other fields when calling model::save()

2009-01-15 Thread Flipflops
Hi I had real trouble finding this the first time too. save(array $data = null, boolean $validate = true, array $fieldList = array()) $fieldList is an array of the fields you actually want to save. http://book.cakephp.org/view/75/Saving-Your-Data John On Jan 15, 12:39 pm, K3 wrote: > Hi, >

Re: How to prevent updating other fields when calling model::save()

2009-01-15 Thread Günther Theilen
Hi, you can add a list of allowed fields as third parameter. http://api.cakephp.org/1.2/class_model.html#ebe42ae387be89985b5a35dd428f5c81 Regards Günther K3 schrieb: > Hi, > > if for example end user changed the html form and adds another field, > he can update another field. > What i mean by

How to prevent updating other fields when calling model::save()

2009-01-15 Thread K3
Hi, if for example end user changed the html form and adds another field, he can update another field. What i mean by example is changing: to then access_level field will be updated.How can i prevent this? Thanks --~--~-~--~~~---~--~~ You recei

Re: Simple validation, required=true does not work or has preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash

2009-01-15 Thread Dr. Loboto
Better user both notEmpty and required. Required will raise validation error when field do not present in POST data at all. notEmpty without required will not do it. On Jan 15, 2:26 pm, "Louie Miranda" wrote: > Hi! Yes, this one.http://book.cakephp.org/view/740/notEmpty > > Works! I thought from

Re: Calendar Helper

2009-01-15 Thread Flipflops
Hi Mike I built a calendar helper about a year ago. It is pretty basic - literally just a shell that lays out the days of the week and a back and forward button. Its up to you to get the data to it in the right format. To be honest I always meant to re-factor it and write a component to sit behin

Re: Bakery Article Comment Notification broken

2009-01-15 Thread grigri
I noticed this too; In thunderbird the email content is blank. You have to "view source" to actually see the content. On Jan 15, 9:43 am, "dr. Hannibal Lecter" wrote: > I have reported this a while ago: > > https://trac.cakephp.org/ticket/5001 > > Still having the same problem. > > On Jan 15, 8:

Re: Bakery Article Comment Notification broken

2009-01-15 Thread dr. Hannibal Lecter
I have reported this a while ago: https://trac.cakephp.org/ticket/5001 Still having the same problem. On Jan 15, 8:32 am, majna wrote: > I cant open mail notification in gmail. > content type is multipart/alternative, > message is attached as unknown file. --~--~-~--~~~

Re: Rendering an add form within another controller's view (with all automagicness)

2009-01-15 Thread dr. Hannibal Lecter
It is very difficult to see what the problem is without the code. Also, it would be the best if you can avoid the requestAction :-) On Jan 15, 10:19 am, jwerd wrote: > Hello fellow bakers, I've searched this group before I was going to > post this question but I cant' seem to find my current dil

Re: Writing to a database from a view

2009-01-15 Thread xybersoftw...@gmail.com
Jon, Thanks for your detailed help. One thing I might not have made clear is that my view/filtering form has only one check box and the check box is not connected to each record. And I have other fields in the form that let me filter the records that I am looking for. Once the user has filtered

Rendering an add form within another controller's view (with all automagicness)

2009-01-15 Thread jwerd
Hello fellow bakers, I've searched this group before I was going to post this question but I cant' seem to find my current dilema addressed yet. I have two controllers, which serve different purposes, but for the sake of this example, they share some things in common : shows_controller is used t

Re: CakePHP and Microsoft CRM

2009-01-15 Thread Martin Westin
I know next to nothing about Microsoft CRM so there will be very basic and general tips. After 5min on Google I would say that Microsoft CRM does have an official API. It looks like this can be accessed from php using soap. To get further you need access to Microsoft CRM to start setting up and te

Re: Simple validation, required=true does not work or has preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash

2009-01-15 Thread Louie Miranda
Hi! Yes, this one. http://book.cakephp.org/view/740/notEmpty Works! I thought from the other examples that is how I should do it, until I found your suggestions and googled notEmpty. Thanks again! -- Louie Miranda (lmira...@gmail.com) http://www.louiemiranda.net Security Is A Series Of Well-Defi

Re: Questions about forms / validation

2009-01-15 Thread Miles J
My date validation keeps failing also, but its in the correct format: [birthdate] => 02-26-1988 'birthdate' => array( 'rule' => 'date', 'message' => 'birthdateInvalid', ) --~--~-~--~~~---~--~~ You received this message because you are subscribed to