Re: Validate CC field

2010-04-15 Thread John Andersen
Sorry, I thought you wanted to save the CC field :) You can instantiate the Validation class yourself and use the email validation method to validate each of your CC addresses. See http://api12.cakephp.org/class/validation#method-Validationemail for the Validation class source. Should someone else

Email Component: I see html email as source code in Squirrel mail web client

2010-04-15 Thread Prof. No Time
When I send Email via the Email Component as "Both" i.e. html and text. It appears fine in my outlook and also yahoo and I think Gmail too but when I check it in Squirrel Mail webmail interface, it shows the text portion first, then the html source code underneath. This is pretty embarrassing as m

Re: Validate CC field

2010-04-15 Thread Henrik Gemal
Is there a way to manually call the validation checks? So psedo code like: foreach ($ccs as $cc) $validate->email($cc) ? On Apr 15, 5:42 pm, John Andersen wrote: > Yes, you can make your custom validation function for that field. > See the CakePHP book > at:http://book.cakephp.org/view/150

CakePHP Auth Component cannot remember url before authentication

2010-04-15 Thread Prof. No Time
In the cook book, we are told that the auth component uses the session component to remember the url the user intended to visit and hence when authenticated, automatically takes the user there. However, this DOES NOT WORK for me (cake 1.2.5). What could be the problem? Thank you. Check out the ne

Re: Multi-level Models in CakePHP

2010-04-15 Thread Walther
Alan gave the wrong syntax for containable. It is: $this->ATable->find('all', array('contain'=>array('BTable' => array('CTable'; And Andy, in the future please use real model names, makes it much easier to see what is happening and sometimes people make mistakes when converting to the alphabe

Re: AppController being cached?

2010-04-15 Thread Dr. Loboto
You may edit file in wrong location. You may have some PHP opcode cacher in action. BTW, app_controller is not necessary unless you call methods defined there. So if there is nothing critical and file is not loaded because of wrong rights it won't be fatal. On Apr 16, 7:47 am, Lucca Mordente wro

Re: How to validate HABTM extra fields

2010-04-15 Thread Jeremy Burns
Does this help? http://teknoid.wordpress.com/2008/09/24/saving-extra-fields-in-the-join-table-for-habtm-models/ Jeremy Burns jeremybu...@me.com On 15 Apr 2010, at 20:46, peej wrote: > I need to validate extra fields in a HABTM join table. > > Ticket HABTM Shirt with the join table shirts_ticket

Re: Multi-level Models in CakePHP

2010-04-15 Thread andy
Hi Alan, Thanks for the idea. I tried using 'contain' just now and I still am just seeing ATable and BTable results in the returned array. I'll keep playing around with containable anyhow... Andy On Apr 15, 7:16 pm, "Alan Asher" wrote: > I think you need a contain to include the third table.

RE: Multi-level Models in CakePHP

2010-04-15 Thread Alan Asher
I think you need a contain to include the third table. $this->ATable->find('all', array('contain'=>array('BTable','BTable.CTable'))); That's just off the hip Alan -Original Message- From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf Of andy Sent: Thursday, Apri

Re: Multi-level Models in CakePHP

2010-04-15 Thread andy
Or maybe I'm trying to go for returned data in this type of format... though I don't know if it's possible: Array ( [0] => Array ( [ATable] => Array ( [id] => 1 [name] => A [weight] => 1

Re: AppController being cached?

2010-04-15 Thread Lucca Mordente
That's the point. No change is being reflected. And the website continues to work even when the app_controller.php file is deleted, as if it was there. Lucca Mordente On Thu, Apr 15, 2010 at 9:43 PM, cricket wrote: > On Apr 15, 7:30 pm, Lucca Mordente wrote: > > Up!! > > This is a problem in

Re: AppController being cached?

2010-04-15 Thread cricket
On Apr 15, 7:30 pm, Lucca Mordente wrote: > Up!! > This is a problem in an operating website in which I have to make some > changes. > > Any ideas about what can be happening? What changes to AppController are you making? Perhaps there's another explanation than cache. Check out the new CakePHP

Multi-level Models in CakePHP

2010-04-15 Thread andy
Has anyone successfully been able to do something like this? (I'm using CakePHP 1.3 RC4) I have three models: class ATable extends AppModel { var $name = 'ATable'; var $hasOne = array('BTable' => array( 'foreignKey' => false, 'type' => 'INNER

Re: Tree behaviour modifying data

2010-04-15 Thread Mike Birch
Silly me. I forgot that there is a field that is required in the model. Just needed to add it: $this->Category->save(array('name' =>'Extreme fishing','title' => $title)); Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You receiv

Tree behaviour modifying data

2010-04-15 Thread Mike Birch
I'm having trouble modifying data as described here http://book.cakephp.org/view/521/Modifying-data. I tried the sample code and it doesn't save the data. I'm using 1.2.6 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received

Re: AppController being cached?

2010-04-15 Thread Lucca Mordente
Up!! This is a problem in an operating website in which I have to make some changes. Any ideas about what can be happening? On 14 abr, 12:25, Lucca Mordente wrote: > All cached files deleted and nothing... > > On 14 abr, 12:20, Jeremy Burns wrote: > > > > > Try deleting the files in /app/tmp/ca

RE: Advice for personalized email (i.e. newsletter, mass email)

2010-04-15 Thread Johnathan Iannotti
If I were you I would use the BCC option as it would cut down on server and bandwidth loads, not to mention time. Homepage: http://www.blueclover.com | Blog: http://www.blue-ings.com | Twitter: http://twitter.com/bluecloverusa | Facebook: http://www.facebook.com/blueclover | YouTube: ht

Re: REST in cakePHP

2010-04-15 Thread Angel Robert Marquez
zip up your app folder and upload/email. i'll run through in tandem, if i have time. On Thu, Apr 15, 2010 at 9:40 AM, ivan wrote: > i'am sorry John if i make you loose interest for me. I hope you can > still help me. One more time i say sorry for you John. God bless you > forever. > > Check out

How to validate HABTM extra fields

2010-04-15 Thread peej
I need to validate extra fields in a HABTM join table. Ticket HABTM Shirt with the join table shirts_tickets This is the shirts_tickets join table with extra fields: CREATE TABLE `shirts_tickets` ( `shirt_id` int(11) DEFAULT NULL, `ticket_id` int(11) DEFAULT NULL, `size` varchar(20) DEFAUL

Advice for personalized email (i.e. newsletter, mass email)

2010-04-15 Thread tcornett
I am looking to setup an aspect of my cakephp application to handle the emailing of a large number of individuals with a personalized email message. [THIS IS NOT FOR SPAM] I have been looking around and I cant really seem to find anything that handles this situation well. A couple of the major ro

CakePHP screencast – building a FAQ s ection in 5 minutes … from scratch !

2010-04-15 Thread Deon Heunis
If you want to see the baking console in action, view the blog post at http://bit.ly/azsx0P The screencast shows how you can use CakePHP's baking console to generate a FAQ section in 5 minutes. Pretty awesome stuff ! Thanks Deon Check out the new CakePHP Questions site http://cakeqs.or

Re: REST in cakePHP

2010-04-15 Thread Jeremy Burns
What happens when you go to: http://localhost/alkitab/pencarian_kata_kitabs/show Jeremy Burns jeremybu...@me.com (Skype) +44 208 123 3822 (jeremy_burns) (m) +44 7973 481949 (h) +44 208 530 7573 On 15 Apr 2010, at 17:18, ivan wrote: > with http://localhost/alkitab/pencarian_kata_kitabs/view/1205

Re: REST in cakePHP

2010-04-15 Thread Jeremy Burns
What happens when you go to: http://localhost/alkitab/pencarian_kata_kitabs/show Jeremy Burns jeremybu...@me.com (Skype) +44 208 123 3822 (jeremy_burns) (m) +44 7973 481949 (h) +44 208 530 7573 On 15 Apr 2010, at 17:16, ivan wrote: > after i add : >die(debug($this->data)); > ?> > in top

Re: check querystring

2010-04-15 Thread mdb
Thank you so much that worked. On Apr 13, 7:28 pm, cricket wrote: > On Apr 13, 1:56 pm, mdb wrote: > > > Hello All, > > > In my view.ctp i want check if a particular querystring is present, if > > so then need to assign that value to a local variable. > > > Ex > > > the url may or may not have t

how to get count of users for each event

2010-04-15 Thread mdb
Hello, I have Events view.ctp where i display list of Events (Event Name , Location and Date) In EventRegistration table i have the users registered for each event. (Event id , UserId) Now in my EventView.ctp i need to add no. of registered users for each event. the SQL query will be Select a.

Re: check if datetime_1 >= datetime_2 ??

2010-04-15 Thread Bennet Jeutter
Check this: http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html Especially DATEDIFF and TIMESTAMPDIFF. Example: mysql> SELECT DATEDIFF('2007-12-31 23:59:59','2007-12-30'); -> 1 mysql> SELECT DATEDIFF('2010-11-30 23:59:59','2010-12-31'); -> -31 mysql> SELECT TIMESTA

Using Session class and Ajax

2010-04-15 Thread Will Poillion
I'm having a problem writing to session variables in my controllers, and I believe it's related to the fact that I use jquery ajax calls exclusively. The session variable is stored for that request, but is gone for the very next one. No matter what method I use (php, cake, or database), the informa

Re: integrating with mongoDB

2010-04-15 Thread iamcam (Cameron Perry)
Have you seen this post yet? http://mark-story.com/posts/view/using-mongodb-with-cakephp Check the post comments. There's one in there about the primary key issue. On Apr 15, 1:42 am, zulfiqar wrote: > Hi, > > I am planning to use mongoDB as database for my application. I found > mongoDB datas

Re: Find() returns different formatted array when using Postgresql vs Mysql ( any way to resolve this? )

2010-04-15 Thread altermod
Well I'm still using Cake version 1.1 so I can't used findfirst(). I'm just using find(). On Thu, Apr 15, 2010 at 8:46 AM, John Andersen wrote: > How do your find code look like? Are you using All or First? > Enjoy, >John > > On Apr 15, 7:30 am, Adam wrote: > > When I do a find and get 1

[no subject]

2010-04-15 Thread Ronald Chaplin
http://GertrudisFalzon3555.co.cc -- Thanks, Ron Chaplin =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Tenacious, Experienced PHP Developer Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscr

Re: check if datetime_1 >= datetime_2 ??

2010-04-15 Thread mivogt-LU
:: solved :: solved :: solved :: tnx is works :) solved :: solved :: solved :: On 15 Apr., 22:13, Deon Heunis wrote: > In MySQL, use UNIX_TIMESTAMP(`datetime`) > > In PHP, use strtotime($datestamp) > > mivogt-LU wrote: > > Hi there, > > > I culd need a good hint to solve this: > > having to form

Re: check if datetime_1 >= datetime_2 ??

2010-04-15 Thread Deon Heunis
In MySQL, use UNIX_TIMESTAMP(`datetime`) In PHP, use strtotime($datestamp) mivogt-LU wrote: Hi there, I culd need a good hint to solve this: having to form fields of datetime type. The second should be checked to be later than the first one. i.e.arrivel befor leaving, leaving after arrivel.

check if datetime_1 >= datetime_2 ??

2010-04-15 Thread mivogt-LU
Hi there, I culd need a good hint to solve this: having to form fields of datetime type. The second should be checked to be later than the first one. i.e.arrivel befor leaving, leaving after arrivel. The idea was to convert it _somehow_ from a datetime string to an integer to check both. Sadly I

Re: Cake won't save data in $this->data (data relationship weirdness)

2010-04-15 Thread Johnny Ferguson
Okay, I feel like an idiot. I said: $this->PracticeInstance->save(); instead of: $this->PracticeInstance->save($this->data); foolish me. The datetime fields were autopopulating because a record was being inserted, but it had no data and those are the only fields that get filled automatically. Ev

Re: Cake won't save data in $this->data (data relationship weirdness)

2010-04-15 Thread Johnny Ferguson
a beforeSave() in the model yields: app/models/practice_instance.php (line 6) Array ( [PracticeInstance] => Array ( [modified] => 2010-04-15 15:26:21 [created] => 2010-04-15 15:26:21 ) ) --- So somehow cake is rejecting members of $this->data /app/c

Re: Simple HTML DOM Parser Integration

2010-04-15 Thread Mathias Hunskår Furevik
Parsing HTML in PHP is generally a bad idea. As garbage collection in PHP is a joke, I would use a better suited tool. I wrote a simple Java app using the Jsoup HTML parsling library, then wrote the parsed data to a flat file as JSON. Having a flat it's easy to read and import in Cake. It's of cou

Simple HTML DOM Parser Integration

2010-04-15 Thread Stefano
Hi, I've found this tool http://simplehtmldom.sourceforge.net/ I need to parse an external html page and import some data in my db. Now this would be a great tool, and I've seen that it works out of cakephp, but I really am not able to make a component out of it. I've tried, but with no luck. Do y

Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-15 Thread sebb86
Hello again and really thank you cricket and John! < OK. Copy the HTML source and paste it directly into the view and see < if the image & link are accessible inside the table. Same as before. When i substitute the variables it works fine in Firefox but _not_ in Internet Explorer :/ Check out th

Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-15 Thread cricket
On Apr 15, 2:24 pm, sebb86 wrote: > Yes, i see it. > When i copy the element outside the table, it works fine. OK. Copy the HTML source and paste it directly into the view and see if the image & link are accessible inside the table. Check out the new CakePHP Questions site http://cakeqs.org and

Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-15 Thread sebb86
Yes, i see it. When i copy the element outside the table, it works fine. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this gr

Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-15 Thread cricket
On Apr 15, 1:31 pm, sebb86 wrote: > cricket > > Do  you mean the code should be: > [code] > link($html->image("edit.png", array("alt" => > "Editieren")), array("controller" => $contr, "action" => "edit", > $row[$class]['id']), array('class' => 'edit', "title" => "Editieren"), > null, false); ?> >

Re: correct relationship between models, need some light here

2010-04-15 Thread cricket
On Apr 15, 11:09 am, John Andersen wrote: > I would disagree a little :) Sorry Jeremy My $.02: Assessors need to log in also so they should do so through UsersController. Thus, both Assessor and what is currently User should in actuality be deriviative classes. Say, Assessee. Put all common fiel

Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-15 Thread sebb86
cricket Do you mean the code should be: [code] link($html->image("edit.png", array("alt" => "Editieren")), array("controller" => $contr, "action" => "edit", $row[$class]['id']), array('class' => 'edit', "title" => "Editieren"), null, false); ?> [/code] Then it creates the following [html source

Re: Sessions folder is getting huge

2010-04-15 Thread cricket
On Apr 15, 9:17 am, DeepJaguar wrote: > I think i use the cake one, you can see that in the core file right? > (Configure::write('Session.save', 'cake'); ) Yes, you can set that to "php", "cache", etc. > Is changing that possible harmful for users on the site? The "php" setting tells Cake to us

Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-15 Thread cricket
On Apr 15, 1:04 pm, sebb86 wrote: > sure :-) > > [HTML Code for the table cell:] > src="/img/edit.png" alt="Editieren" /> td> > [/code] > Is the source really escaped like that? If so, that's the problem. ... Just double-checked your code. The false param ($escape) is in the wrong place.

Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-15 Thread sebb86
sure :-) [HTML Code for the table cell:] Editieren [/code] Addition: When i copy the element outside the table, it works fine. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this m

Re: $html->tableCells

2010-04-15 Thread cricket
> I think there is a lesson the be learned there. Indeed. Use CSS :-) Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this grou

Re: REST in cakePHP

2010-04-15 Thread ivan
i'am sorry John if i make you loose interest for me. I hope you can still help me. One more time i say sorry for you John. God bless you forever. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you

Re: REST in cakePHP

2010-04-15 Thread ivan
with http://localhost/alkitab/pencarian_kata_kitabs/view/120515 i go to view page with id=120515 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" g

Re: REST in cakePHP

2010-04-15 Thread ivan
after i add : data)); ?> in top from view this result is alkitab\views\pencarian_kata_kitabs \show.ctp (line 2) Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Grou

Re: REST in cakePHP

2010-04-15 Thread ivan
the result is alkitab\views\pencarian_kata_kitabs\show.ctp (line 2) Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group,

Re: REST in cakePHP

2010-04-15 Thread Jeremy Burns
Have you done this: If you type this at the top of your view file: die(debug($this->data)); Then go to http://localhost/alkitab/pencarian_kata_kitabs/view/120515 what do you get? Jeremy Burns jeremybu...@me.com On 15 Apr 2010, at 17:11, ivan wrote: > to > > http://localhost/alkitab/penca

Re: REST in cakePHP

2010-04-15 Thread ivan
to http://localhost/alkitab/pencarian_kata_kitabs/120515 and http://localhost/alkitab/pencarian_kata_kitabs/view/120515 nothing different to this result. both go to pencarian_kata_kitabs/ view with id=120515. Check out the new CakePHP Questions site http://cakeqs.org and help others with thei

Re: REST in cakePHP

2010-04-15 Thread Jeremy Burns
If you type this at the top of your view file: die(debug($this->data)); what do you get? Jeremy Burns jeremybu...@me.com On 15 Apr 2010, at 17:08, ivan wrote: > when i access with : > > http://localhost/alkitab/pencarian_kata_kitabs/120515 > > display with (default) 0 query took ms > > but w

Re: REST in cakePHP

2010-04-15 Thread ivan
when i access with : http://localhost/alkitab/pencarian_kata_kitabs/120515 display with (default) 0 query took ms but when i access with : get('http://localhost/alkitab/ pencarian_kata_kitabs/view/120515'); echo $results; ?> this result same: (default) 0 query took ms if there was anything wro

Re: REST in cakePHP

2010-04-15 Thread Jeremy Burns
It looks as if you are accessing this url: http://localhost/alkitab/pencarian_kata_kitabs/120515 That would be going to the index function wouldn't it? What happens if you change that to: http://localhost/alkitab/pencarian_kata_kitabs/view/120515 ? Jeremy Burns jeremybu...@me.com (Skype) +44

Re: REST in cakePHP

2010-04-15 Thread ivan
what there was anything wrong for my programming? what should I add to be able to add a method that can be requested? how to access new method? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you a

Re: REST in cakePHP

2010-04-15 Thread ivan
where I can define a method that can be requested? This is one of my controller: PencarianKataKitab->recursive = 0; $this->set('pencarianKataKitabs', $this->paginate()); $this->set(compact('pencarianKataKitabs')); } function view($id = null) {

Re: Find() returns different formatted array when using Postgresql vs Mysql ( any way to resolve this? )

2010-04-15 Thread John Andersen
How do your find code look like? Are you using All or First? Enjoy, John On Apr 15, 7:30 am, Adam wrote: > When I do a find and get 1 row back in Postgres it has to be > referenced like $data[0][email] whereas in Mysql you can do > $data[Account][email]. > > I just migrated from Mysql to Postg

XML Output

2010-04-15 Thread Jeremy Burns
I have a controller function that calls a model function that generates a well formed array. I want to convert the array to XML and submit it to a web service. The array is in the same shape as the example in the guide: Array ( [Baker] => Array ( [0] => Array

Re: Routing based on logged in user

2010-04-15 Thread John Andersen
Can you show an example of how you expect the URL to look like in both cases? Enjoy, John On Apr 15, 2:59 am, Joost wrote: > So here I am, developing my first web application using Cake. And what > a wonderful experience it has been so far :) > > Now I'm wondering: I want my site root to be tw

Re: Validate CC field

2010-04-15 Thread John Andersen
Yes, you can make your custom validation function for that field. See the CakePHP book at: http://book.cakephp.org/view/150/Custom-Validation-Rules Enjoy, John On Apr 15, 6:10 pm, Henrik Gemal wrote: > Is there a way to validate a form entry where people can enter one or > more email addresse

Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-15 Thread John Andersen
Ok, then it is probably just an issue with your CSS :) Try and see what CSS are affecting the presentation of your HTML link in the table cell. Maybe you can show the HTML code for the table cell? Enjoy, John On Apr 15, 6:04 pm, sebb86 wrote: > Hello, > thanks for the suggestion. > I just comp

Re: REST in cakePHP

2010-04-15 Thread ivan
this is my code at now in view: get('http://localhost/alkitab/ pencarian_kata_kitabs/', 'q=120515'); echo $results; ?> please give me solution for next step Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this messag

Re: REST in cakePHP

2010-04-15 Thread ivan
tq. at now this result not error but this result is: (default) 0 query took ms why? you can help me Jeremy? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups

Re: REST in cakePHP

2010-04-15 Thread Jeremy Burns
Have you followed the instructions concerning the $result variable? If not, please don't write again because I think we are all getting a little frustrated. Change $result to $results Jeremy Burns jeremybu...@me.com On 15 Apr 2010, at 16:14, ivan wrote: > i'm comefrom indonesia and i litle can

Re: REST in cakePHP

2010-04-15 Thread John Andersen
Sorry Ivan, If you understand PHP, then the error message that you received is very clear. Please correct that error and then return. Please have patience when you ask for something in the group, I for example is not always online, and for others it may be the same. Also, too many questions witho

Re: REST in cakePHP

2010-04-15 Thread ivan
i'm comefrom indonesia and i litle can speak english so i'm sorry if you dificult to understand for my said. I basically just hoping to get an explanation in detail how to create REST in cakephp. Until now i can't find step, when it's step can help me and guide me from first step until success cre

Re: correct relationship between models, need some light here

2010-04-15 Thread Jeremy Burns
I agree and bow down John! Jeremy Burns jeremybu...@me.com On 15 Apr 2010, at 16:09, John Andersen wrote: > I would disagree a little :) Sorry Jeremy > > There are User and Invoice. > > The User has an attribute that states whether the User is a user or an > assessor. > > The User has an asso

Re: REST in cakePHP

2010-04-15 Thread Jeremy Burns
Wow Ivan! So many people have helped you today and told you the same thing - YOUR VARIABLE NAME IS WRONG. You switch between $result and $results, which is why you are getting a (very very basic) basic error message: error is : Undefined variable: result [APP\views\pencarian_kata_kitabs\show.ctp

Validate CC field

2010-04-15 Thread Henrik Gemal
Is there a way to validate a form entry where people can enter one or more email addresses? In the form like: t...@test.com, te...@test.com Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are

Re: correct relationship between models, need some light here

2010-04-15 Thread John Andersen
I would disagree a little :) Sorry Jeremy There are User and Invoice. The User has an attribute that states whether the User is a user or an assessor. The User has an association to itself as Assessor with condition that the associated User is an assessor. User hasOne User (Assessor, conditions

Re: REST in cakePHP

2010-04-15 Thread ivan
please you give me step by step with detail. I'm first time create webservice REST with cakePHP. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" g

Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-15 Thread sebb86
Hello, thanks for the suggestion. I just compared it. The source code is the same. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post

Re: REST in cakePHP

2010-04-15 Thread ivan
i understand with php but cakephp is first time so i'm confused with REST cakephp. i hope you can give me solution so i can understand make server and client REST cakePHP. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You receive

Re: REST in cakePHP

2010-04-15 Thread ivan
Give me detail how to create REST server from first time until finished please. thanks before. i know my step before is wrong. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to

Re: REST in cakePHP

2010-04-15 Thread John Andersen
Ivan, I am sorry to ask, but are you a programmer? Have you worked with PHP before this projekt of yours? Your error message very clearly states that you have an undefined variable! A variable that is undefined due to you not using the same variable name with which you defined it! Please go thro

Re: REST in cakePHP

2010-04-15 Thread AD7six
On Apr 15, 3:41 pm, ivan wrote: > I still do not understand about REST cakePHP. Your current question has 0 to do with REST it's a day-1 php/ programmer error. You need to read error messages and action them. Check out the new CakePHP Questions site http://cakeqs.org and help others with thei

Re: correct relationship between models, need some light here

2010-04-15 Thread Jeremy Burns
My guess... User $hasOne Assessor Assessor $hasMany User User $hasMany Invoice (Assessor gets to invoices via $this->Assessor->User->Invoice) Invoice $belongsTo Status Status $hasMany Invoice Jeremy Burns jeremybu...@me.com On 15 Apr 2010, at 12:12, kee2ka4 wrote: > Hey Guys, > > I am creatin

correct relationship between models, need some light here

2010-04-15 Thread kee2ka4
Hey Guys, I am creating a php app using the cakephp framework. I am a newbie with cakephp and understand the importance of having the correct model associations. I have done some searching on model association but am confused on how to apply the correct model relationships. Here is a brief summary

Re: REST in cakePHP

2010-04-15 Thread ivan
please give me step by step to create server and client REST with cakePHP. What my step before is correct? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "

Re: REST in cakePHP

2010-04-15 Thread ivan
with 'http://localhost/alkitab/pencarian_kata_kitabs/120515 will access view with id=120515, but how i can access example method search? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subs

Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-15 Thread John Andersen
Have you compared the HTML source code in both browsers? And are they the same? Enjoy, John On Apr 15, 12:54 pm, sebb86 wrote: > Hello, > i want to show an element in a table cell. > > [element code] > link($html->image("edit.png", array("alt" => > "Editieren")), array("controller" => $contr,

Re: REST in cakePHP

2010-04-15 Thread ivan
I still do not understand about REST cakePHP. please give me solution about REST cakePHP (make server and client). Thanks before Mike. God Bless you forever Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message

Re: REST in cakePHP

2010-04-15 Thread ivan
yes. I think after i filling $result, i can echo it. What it's step wrong? please give me solution. I can ask your email address mike? I hope you can help me. At now i create website bible indonesian version. please help me. Check out the new CakePHP Questions site http://cakeqs.org and help othe

Re: CouchDB as a datasource

2010-04-15 Thread Martin Kirchgessner
Thanks Jon! Although it's young Lithium sounds very good. Martin On Apr 14, 10:39 pm, Jon Bennett wrote: > Hi Martin, > > > If you're interested here is my current try > > :http://bin.cakephp.org/view/1461894980 > > > it's not complete and doesn't work... > > If you like Cake's take on MVC and

Re: REST in cakePHP

2010-04-15 Thread mike karthauser
You are filling $results and then echoing $result? Mike Karthauser Brightstorm limited Tel: 07939252144 On 15 Apr 2010, at 14:26, ivan wrote: get('http://localhost/alkitab/ pencarian_kata_kitabs/120515'); echo $result; ?> error is : Undefined variable: result [APP\views\pencarian_kata_kitabs

Re: REST in cakePHP

2010-04-15 Thread ivan
get('http://localhost/alkitab/ pencarian_kata_kitabs/120515'); echo $result; ?> and error: Undefined variable: result [APP\views\pencarian_kata_kitabs\show.ctp, line 5] Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received

Re: REST in cakePHP

2010-04-15 Thread ivan
get('http://localhost/alkitab/ pencarian_kata_kitabs/120515'); echo $result; ?> error is : Undefined variable: result [APP\views\pencarian_kata_kitabs\show.ctp, line 5] please give me solution. i'm confused Check out the new CakePHP Questions site http://cakeqs.org and help others with their Ca

Re: Sessions folder is getting huge

2010-04-15 Thread DeepJaguar
I think i use the cake one, you can see that in the core file right? (Configure::write('Session.save', 'cake'); ) Is changing that possible harmful for users on the site? On Apr 9, 10:04 pm, euromark wrote: > do you use the php one? or the cake tmp/ one? > because the first is usually garbige col

Re: REST in cakePHP

2010-04-15 Thread AD7six
when you go to http://localhost/alkitab/pencarian_kata_kitabs/120515 what do you see. If it's an error - you need to fix it. your code example has an error. $result*S* and $result are not the same. I hope you have debug > 0 as if not you're making live needlessly difficult. HTH, AD Check out

Re: REST in cakePHP

2010-04-15 Thread ivan
it is my controller pencarian_kata_kitabs: class PencarianKataKitabsController extends AppController { var $name = 'PencarianKataKitabs'; var $helpers = array('Html', 'Form'); var $components = array('RequestHandler'); function index() { $this->Penc

Re: REST in cakePHP

2010-04-15 Thread ivan
after i create server with http://book.cakephp.org/view/477/The-Simple-Setup: Router::mapResources('pencarian_kata_kitabs'); Router::parseExtensions(); next step create client in app/view/pencarian_kata_kitabs/show i add code: get('http://localhost/alkitab/ pencarian_kata_kitabs/120515'); echo $re

Re: REST in cakePHP

2010-04-15 Thread ivan
i'm sory AD. You can give me step to develop server REST CakePHPnya? because my server is not correct. After you give me to create server, please give me step to access this server (client). please. I hope you can help me. Check out the new CakePHP Questions site http://cakeqs.org and help others

Re: Validate query params

2010-04-15 Thread Dr. Loboto
Model may be tableless as well. Validation isn't connected with save process or table fields. http://book.cakephp.org/view/436/useTable http://book.cakephp.org/view/410/Validating-Data-from-the-Controller On Apr 15, 3:31 pm, Henrik Gemal wrote: > In my CakePHP application I have an action that s

Re: Quick habtm problem

2010-04-15 Thread Blackbit
How about using "WITH" in the Judge-Model? Is this a good way to do it? class Judges extends AppModel { var $name = "Judge"; var $hasAndBelongsToMany = array("MediaSegments" => array("with" => "JudgesMediaSegments")); } On 15 Apr., 02:37, Bryan Paddock wrote: > Ah! Thank you! > > After a whil

Re: REST in cakePHP

2010-04-15 Thread AD7six
On Apr 15, 12:29 pm, ivan wrote: > give me how to make client to access this REST? E.g. the client uses cURL. Everything you need to know (that isn't completely generic) is here: http://book.cakephp.org/view/477/The-Simple-Setup http://book.cakephp.org/view/802/get (e.g.) http://book.cakephp.

Re: REST in cakePHP

2010-04-15 Thread ivan
give me how to make client to access this REST? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-p

Re: REST in cakePHP

2010-04-15 Thread ivan
please help and give me solution to finished from this problem. I want to ask whether the REST can be accessed by other websites? (Web service) Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you

Re: REST in cakePHP

2010-04-15 Thread ivan
I've created define('WEBSERVICES', 'on'); Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@goo

  1   2   >