Re: soap server

2007-06-04 Thread ianh
There are three articles on implementing a SOAP server with Cake using Nusoap here: http://rossoft.wordpress.com/?s=nusoap&searchbutton=go%21 @John - how did you go about auth? Using the Nusoap approach above ended up creating a 40-char API key which has to be submitted and verified before a soa

Re: AppController

2007-06-04 Thread unimatrixZxero
It happend to all of once. Until we read the comment in cake/ app_controller.php :) On Jun 3, 6:33 pm, Oscar Burgos <[EMAIL PROTECTED]> wrote: > oh my god !!! i have been so stupid !!! my app_controller.php was in > app/controllers and again, again, again... > > thank you > > On 3 jun, 17:51,

Re: Select database at the model level per request?

2007-06-04 Thread davo
I've got a hacky solution for this if anyone else has a similar problem http://recurser.com/articles/2007/06/04/multiple-dbs-in-cakephp/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to

Re: dynamic connection according environment

2007-06-04 Thread LePetitNicolas
Hi, I would use the AppModel as mentioned before. A simple approach (in Cake 1.1.x.x) : Define a constant in your app/bootstrap.php file //... define('DEV_HTTP_HOST', 'example.dev'); //... and then set $useDbConfig in your AppModel function __construct() { //... if ($_SERVER['HTTP_HOST'] ==

Re: execute javascript from controller

2007-06-04 Thread Geoff Ford
Not as far as I know. In 1.1 there is no Javascript Component only a helper. Tou could just set the script to be executed and then use JavascriptHelper::codeBlock (see http://api.cakephp.org/class_javascript_helper.html#a84387898a513956ce9e8f4c60765d96) Not sure about 1.2 though. On Jun 5, 12:0

Re: View this page "Cake Apps/Sites In The Wild"

2007-06-04 Thread Chris Hartjes
Added "portal" for the simulation baseball league that I help to run: www.ibl.org CakePHP 1.2.x -- Chris Hartjes My motto for 2007: "Just build it, damnit!" @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~-~--~

View this page "Cake Apps/Sites In The Wild"

2007-06-04 Thread Geoff Ford
Added Discount-Shopper.com.au my first Cake App. Click on http://groups.google.com/group/cake-php/web/cake-apps-sites-in-the-wild - or copy & paste it into your browser's address bar if that doesn't work. --~--~-~--~~~---~--~~ You received this message because yo

execute javascript from controller

2007-06-04 Thread Herman Vega
Hi all, is possible call from PHP controller to execute any javascript code? something like: $obj->addScriptCall("myJSFunction", "arg 1", "arg 2", 12345); Best regards -- Herman Vega Jara hvegax[a]gmail.com --~--~-~--~~~---~--~~ You received this message bec

Re: ajax tutorial problems

2007-06-04 Thread Geoff Ford
Because the you are using the javascript helper in your default layout you need to include the javascript helper all your controllers or alternatively add it to the AppController. In /app/app_controller.php add var $helpers = array('Html', 'Form' , 'Ajax', 'Javascript'); This will make all the

Re: dynamic connection according environment

2007-06-04 Thread Geoff Ford
Whats wrong with putting it in app_model.php. I think that this is the easiest and logical approach. If you really want it in the controller what about AppController::beforeFilter() (http://api.cakephp.org/ class_controller.html#e756a803e378b692480ba0ab107c9bee). However you would have to set it

cake web site suggestion

2007-06-04 Thread mrbog
When I wget the download url, the file saves with the file name "donation=complete" Maybe want to alias that url or something so that it saves with the filename it's supposed to. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Re: Retaining Validations Errors while using CRUD...

2007-06-04 Thread [EMAIL PROTECTED]
The primary reason is so that I can use the security component to require that data is sent using POST to my functions that update data. I think It's also generally a cleaner to separate the GET functions from the POST ones--this way I don't have to have conditional statements either. On Jun 4, 3

CakePHP Manual rev 154 for CakePHP 1.1

2007-06-04 Thread Gustavo Carreno
Hi there! New release of your packaged manuals. [Notes] Hey guys, After a long, LONG while I'm resuming my activity on the manual release! The API for 1.1.x.x and 1.2.x.x will be released as soon as I find the command line for the doxygen :) Grab it at: http://cakeforge.org/frs/?group_id=53&

Re: Retaining Validations Errors while using CRUD...

2007-06-04 Thread Grant Cox
Validation errors are stored in the model, and transferred to the view when the page is rendered. You could copy them into the session, then redirect, then read from the session, but this doesn't seem like the best solution. Can you give me an example of why you shouldn't be submitting to the sa

Re: soap server

2007-06-04 Thread Greg
Great. Do you have any suggestions on where to start? Or, perhaps, any links to some good tutorials or examples? I have been googling for a while with no good results. Thanks. On Jun 4, 3:40 pm, "John David Anderson (_psychic_)" <[EMAIL PROTECTED]> wrote: > On Jun 4, 2007, at 4:33 PM, Greg wr

Re: soap server

2007-06-04 Thread John David Anderson (_psychic_)
On Jun 4, 2007, at 4:33 PM, Greg wrote: > > Does anyone know how to implement a SOAP server with cake? I'm currently working on an app with soap services. Works great. Still working on some basic auth issues, but on the whole its really nice to expose a controller action as a soap service.

soap server

2007-06-04 Thread Greg
Does anyone know how to implement a SOAP server with cake? --~--~-~--~~~---~--~~ 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 gr

Re: getLastInsertId and 'connection pooling'

2007-06-04 Thread PiLLo
Perhaps this could figure out more about getLastInsert(); i found more issues about that in this link: http://groups.google.com.mx/group/cake-php/browse_thread/thread/cf7e6979f69833b3/8b44638067dd05fa?lnk=gst&q=connection&rnum=12&hl=es#8b44638067dd05fa On 1 jun, 21:30, cakePHP <[EMAIL PROTECTED

dynamic connection according environment

2007-06-04 Thread PiLLo
Hi, following the MVC ideology, does anybody know how to change the connection according to the environment where we publish an application? For example, in a development enviroment I have http://Tequila and on the models I declare $useDbConfig="development_connection"; So the problem begins when

Retaining Validations Errors while using CRUD...

2007-06-04 Thread [EMAIL PROTECTED]
I have an app setup using CRUD with 7 actions: index, view, create/ save, edit/update, delete. I did this so I can reuse some functions for an API, and use the security component to require posting to my save/update actions. However, since I am posting to a different action than my form is on, wh

Re: SelectTag

2007-06-04 Thread Jon Bennett
> I've swicthed back to the htmltag form, and can get my select box to > display but not correctly. it just gets filled with .$user. > > Heres the code: > > selectTag('users', array(' . $user . ' => ' .$user . > '), null, array(), array(), true, false); ?> > > If I change array(' . $user . ' => '

Re: General gripes and questions

2007-06-04 Thread mussond
Flogging a dead horse a bit here. But i'd agree that the documentation needs improvement. mainly with examples, I'm new to cake and I'm getting lost easily, I'm currently stuck on how to create a select box and while the api is great for telling me what function to use, the attribute details are

Re: Best DB schema to work with Cake in this case?

2007-06-04 Thread Joshua Benner
Remeber, has(One|Many) means "The other table points to me," and belongsTo means "I point to the other table." I would define the models something like this (assume fields basically same as you said): User:     hasMany Items Item:     belongsTo User     hasMany Trades Trade:     belongsTo I

Re: General gripes and questions

2007-06-04 Thread John David Anderson (_psychic_)
On Jun 4, 2007, at 2:48 PM, Joshua Benner wrote: > > John, > > Yes, I agree. It's not that I feel I'm not allowed to help -- but I'll > admit I don't yet feel authoritative enough to produce solid > documentation. Since I don't know CakePHP from beginning to end yet, I > feel that a solution I m

Re: SelectTag

2007-06-04 Thread mussond
Thanks Joshua. I didn't realise the two versions where so different. I've swicthed back to the htmltag form, and can get my select box to display but not correctly. it just gets filled with .$user. Heres the code: selectTag('users', array(' . $user . ' => ' .$user . '), null, array(), array()

Re: Drop Down Lists in 1.2

2007-06-04 Thread Joshua Benner
I believe if you have a controller function/view in place, it overrides the scaffolding -- but I'm not 100% sure on that without looking it up. John Messingham wrote: > Thanks for the reply Joshua, is it possible to use this with the scaffolding > feature? I am prototyping at present. > > John >

Re: General gripes and questions

2007-06-04 Thread Joshua Benner
John, Yes, I agree. It's not that I feel I'm not allowed to help -- but I'll admit I don't yet feel authoritative enough to produce solid documentation. Since I don't know CakePHP from beginning to end yet, I feel that a solution I may propose may be otherwise better accomplished with a feature o

Re: SelectTag

2007-06-04 Thread Joshua Benner
Oh, my instructions were for Cake 1.2, as I've not really used 1.1. For 1.1 information on helpers, consult the manual and api. http://manual.cakephp.org http://api.cakephp.org [EMAIL PROTECTED] wrote: > Thanks :) > > I've altered my controller to use set in my index() function: > > class Data

Re: General gripes and questions

2007-06-04 Thread JDS
Sounds good to me. Expect to see Trac tickets for Manual updates from me on a regular basis. Thanks. On Jun 4, 3:48 pm, "John David Anderson (_psychic_)" <[EMAIL PROTECTED]> wrote: > On Jun 4, 2007, at 12:05 PM, JDS wrote: > > > > > > > On Jun 2, 11:08 pm, Grant Cox <[EMAIL PROTECTED]> wrote:

Re: SelectTag

2007-06-04 Thread [EMAIL PROTECTED]
Thanks :) I've altered my controller to use set in my index() function: set('datapoints', $this->DataPoint->findAll()); $sql = 'SELECT name FROM SOLDB.com_projects'; $this->set('user', $this->DataPoint->query($sql)); } So I think my index.thtml file is getting the array but I'm getting

Re: SelectTag

2007-06-04 Thread [EMAIL PROTECTED]
On Jun 4, 1:52 pm, Joshua Benner <[EMAIL PROTECTED]> wrote: > First, I would recommend using the CakePHP Manua (http://manual.cakephp.org). > > Passing data to a view is accomplished in the controller via: > > $this->set('varName', $value); > > A variable with the name specified in the first arg

Best DB schema to work with Cake in this case?

2007-06-04 Thread Shane B
So I am no DBA, and this is my first CakePHP app, still learning the ins and outs, maybe there is an easy way to do this.. Here is the setup: Assume these psudo-tables: Users - id - pk username password email name Items - id - pk user_id - fk title description status And the id

Re: General gripes and questions

2007-06-04 Thread John David Anderson (_psychic_)
On Jun 4, 2007, at 1:56 PM, Joshua Benner wrote: > > In my recent course of learning CakePHP, I would agree with you. The > available documentation has not been clear on the "magic" that Cake > performs for the coder. A lot of my learning came through trial and > error, because there is magic be

Re: Drop Down Lists in 1.2

2007-06-04 Thread John Messingham
Thanks for the reply Joshua, is it possible to use this with the scaffolding feature? I am prototyping at present. John - Original Message - From: "Joshua Benner" <[EMAIL PROTECTED]> To: Sent: Monday, June 04, 2007 8:48 PM Subject: Re: Drop Down Lists in 1.2 > > Using FormHelper::se

Re: General gripes and questions

2007-06-04 Thread John David Anderson (_psychic_)
On Jun 4, 2007, at 12:05 PM, JDS wrote: > > On Jun 2, 11:08 pm, Grant Cox <[EMAIL PROTECTED]> wrote: > >>> * Where is it mentioned how Controllers get access to the models? >> >> http://manual.cakephp.org/chapter/controllers- search for $uses. >> >> The documentation on Model->save() is now wh

Re: How to automatically display a checkbox or select multiple list in the view based on HABTM tables

2007-06-04 Thread Joshua Benner
You can also "bake" your project. Baking will basically generate controlls and views that will look and function very similarly to the scaffold, but are ripe for modification and customization to your applications needs. I've been baking with Cake 1.2.0.5146alpha with remarkable success recent

Re: General gripes and questions

2007-06-04 Thread Chris Hartjes
On 6/4/07, JDS <[EMAIL PROTECTED]> wrote: > See, this one line, "Your FragglesController will automatically load > $this->Fraggle," is the only place that I have seen in the manual that > says how the controller gets access to the model. But it seems like > this very imortant information should be

Re: More production installation woes.

2007-06-04 Thread Joshua Benner
My guess would be some configuration needs to go on in webroot/index.php Have you played with this at all? Also, how are you pointing foo.com to /foo? URL rewriting, redirects, what? Beowolf wrote: > I've been working with a local cake install, and everything has been > fine. All the folders a

Re: General gripes and questions

2007-06-04 Thread Joshua Benner
In my recent course of learning CakePHP, I would agree with you. The available documentation has not been clear on the "magic" that Cake performs for the coder. A lot of my learning came through trial and error, because there is magic behind the scenes that is not immediately evident from the

Re: SelectTag

2007-06-04 Thread Joshua Benner
First, I would recommend using the CakePHP Manua ( http://manual.cakephp.org ). Passing data to a view is accomplished in the controller via: $this->set('varName', $value); A variable with the name specified in the first argument is then available in the view. [EMAIL PROTECTED] wrote: > Hey

Re: Drop Down Lists in 1.2

2007-06-04 Thread Joshua Benner
Using FormHelper::select() $form->select('field_name', $optionsArray, null, array(), 'text for blank entry') http://api.cakephp.org/1.2/class_form_helper.html#5171e675468c9665db0653c165b6c89c John Messingham wrote: > Hi, > > I am looking at version 1.2 and have a quick question. > > I have cre

Re: Is Behavior Appropriate?

2007-06-04 Thread Joshua Benner
Migrating would actually be pretty easy -- either remove the behavior from the model, or replace the parse_datetime() function. If it sounds like a good use-case to you guys, is this the type of thing I should share someone, such as on the bakery or from my blog? John David Anderson (_psychic_

Drop Down Lists in 1.2

2007-06-04 Thread John Messingham
Hi, I am looking at version 1.2 and have a quick question. I have created two tables and associated them via the model with no problems. The one thing that I have come up against is the fact that in version 1.1 the drop down list had a blank entry at the top of the list and version 1.2 does not.

can't get Email component to work

2007-06-04 Thread Romano
Hi all, I've tried to get the 1.2 email component to work using this explanation: http://bakery.cakephp.org/articles/view/brief-overview-of-the-new-emailcomponent To be exact, the example for the simple text message: 1. created default.ctp files in views/layouts/email/text/ and views/ layouts/

Pretty URLs Output Problem

2007-06-04 Thread [EMAIL PROTECTED]
Hello bakers, I am moving an application from my testing server to a production server and mod_rewrite seemed to be acting funny (wasn't finding the CSS file, looking for files in the wrong place), so I switched to using the cake pretty URLs. This solved the CSS problem, but for instance, when l

Re: How to automatically display a checkbox or select multiple list in the view based on HABTM tables

2007-06-04 Thread Christopher E. Franklin, Sr.
The Tag/Tag is just a part of the form, Tag model and Tag is the table column name. Doesn't mean anything. To get the HABTM to display all the stuff as far as I know you have to build everything manually. On Jun 4, 11:45 am, JDS <[EMAIL PROTECTED]> wrote: > Hi again. I cannot figure this out f

Re: Trouble with downloading cake

2007-06-04 Thread AcidMaX
It was resolved a little bit ago. D/L link should be back and working. Thanks gwoo. On Jun 4, 1:16 pm, twinkletoes <[EMAIL PROTECTED]> wrote: > Hey, > > not sure this is the right place, but here goes: something is wrong > with the download links to cakephp, both the 1.1x and 1.2x versions. > "Wr

How to automatically display a checkbox or select multiple list in the view based on HABTM tables

2007-06-04 Thread JDS
Hi again. I cannot figure this out from the manual or API, sorry. Scaffolding does a nice job of automatically displaying HABTM tables as select multiple boxes. How do I replicate this behavior once the scaffolding is pulled down? Also, there is a vague reference to how this might be achieved,

SelectTag

2007-06-04 Thread [EMAIL PROTECTED]
Hey I'm new to cakePHP and I'm going round in circles trying to create a multi select box in my view. I have a controller with a function users(). The function will return the SQL query result that I want to populate my select box. set('datapoints', $this->DataPoint->findAll()); } function

Re: General gripes and questions

2007-06-04 Thread JDS
On Jun 2, 11:08 pm, Grant Cox <[EMAIL PROTECTED]> wrote: > > * Where is it mentioned how Controllers get access to the models? > > http://manual.cakephp.org/chapter/controllers- search for $uses. > > The documentation on Model->save() is now what you have in your post. > If you just wrote that,

Re: validate fields that are not in model

2007-06-04 Thread yangz
i kinda fixed it by overidding the validates() function in the model. read the article here http://snook.ca/archives/cakephp/cakephp_data_va_1/ On Jun 5, 1:33 am, yangz <[EMAIL PROTECTED]> wrote: > If i have a form for registration and i have a field for image > verification, the image code is

Re: General gripes and questions

2007-06-04 Thread JDS
Hi. Thanks for your help. I am sorry to have come across all pissy (and I know I did) but it is quite frustrating to learn CakePHP when the documentation really is lacking. It really is. I am not saying it sucks, just that it is inconsistent, incomplete, and shy on examples. And the API is just n

Re: Upgrade v2 labeltag/selecttag problem

2007-06-04 Thread Romano
Ah, thanks a lot, that makes a lot of difference. Hadn't noticed the 1.2 api reference, sorry about that! Cheers On 4 jun, 19:05, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > If you look in the api for 1.2 > you will see that they > are now

Joins in belongsTo conditions

2007-06-04 Thread tphipps
Hello, I'm trying to work out how to get the 'conditions' clause of a belongsTo association to be able to refer to other models rather than just the model being associated. Specifically, I need to find a way to be able to refer back to the model from which the association is coming. Here's somet

Re: Is Behavior Appropriate?

2007-06-04 Thread John David Anderson (_psychic_)
On Jun 4, 2007, at 11:45 AM, Joshua Benner wrote: > > I'm working with CakePHP with an SQL Server backend to great success. > One of the hiccups I've encountered, however, is the way that SQL > Server outputs datetime values by default -- it's not parsable by > PHP's built-in date functions (suc

Is Behavior Appropriate?

2007-06-04 Thread Joshua Benner
I'm working with CakePHP with an SQL Server backend to great success. One of the hiccups I've encountered, however, is the way that SQL Server outputs datetime values by default -- it's not parsable by PHP's built-in date functions (such as strtotime()) in its default form. I've written a small b

validate fields that are not in model

2007-06-04 Thread yangz
If i have a form for registration and i have a field for image verification, the image code is not a field in the User's database, should it appear in the Model ? If not, how do i validate this field if its not in the User model since i cannot use the invalidate function which is called by the co

Trouble with downloading cake

2007-06-04 Thread twinkletoes
Hey, not sure this is the right place, but here goes: something is wrong with the download links to cakephp, both the 1.1x and 1.2x versions. "Wrong" as in "not there", that is. This applies to http://cakephp.org/downloads The cakeforge download seems to work just fine. --~--~-~--~

Re: everything belongs to Site

2007-06-04 Thread Dan Bair
I haven't done that before, but to me, that seems like a very logical way to do it. On Jun 4, 7:00 am, gerbenzomp <[EMAIL PROTECTED]> wrote: > I've started a new project, and in that site everything should belong > to the Site model. So articles, posts, users, products, etc. all > belong to a si

Re: Upgrade v2 labeltag/selecttag problem

2007-06-04 Thread Samuel DeVore
If you look in the api for 1.2 < http://api.cakephp.org/1.2/class_form_helper.html> you will see that they are now $form->label and $form->select this was noted in many of the release notes that deprecated functions were being removed see

Re: More production installation woes.

2007-06-04 Thread Beowolf
Is everyone bored of answering installation/deplyment questions, or is there something else I need to add to make this answerable? I haven't missed a cache of the wiki somewhere, have I? --~--~-~--~~~---~--~~ You received this message because you are subscribed t

dAuth 0.3 and sha1.js

2007-06-04 Thread cakePHP
Hi, I have been researching on the dAuth v0.3 from Dieter. One comment (from Paul Venkatesh) on Bakery is a potential issue with sha1.js implementation. Does anyone know if Paul's comments are still valid or Dieter's original inclusion of the sha1.js still works fine? Thanks. V --~--~---

Upgrade v2 labeltag/selecttag problem

2007-06-04 Thread Romano
Hi all, Today we tried upgrading Cake from version 1.1.14.4797 to the latest version 1.2.0.5146 alpha. As suggested here http://bakery.cakephp.org/articles/view/something-fresh we've replaced the cake folder. This results in: Warning (512): Method formhelper::labeltag does not exist [CORE/cake/

Re: acm admin - views/layouts/cpanel.thtml session->read non-object

2007-06-04 Thread jeff_m
Thanks Andy! > > The latest version of acm is from May 5, 2006, and it's 1.1 only. You > cannot access the controller from the view in 1.2 - hence the error > message. > > The fastest solution for you would be to put a (parallel) 1.1 install > in place so you can use the plugin to administer your

Re: SQL Server connection

2007-06-04 Thread [EMAIL PROTECTED]
Hello, I've been trying to solve this issue without any success, This is my config: var $default = array('driver' => 'mssql', 'connect' => 'mssql_connect', 'ho

everything belongs to Site

2007-06-04 Thread gerbenzomp
I've started a new project, and in that site everything should belong to the Site model. So articles, posts, users, products, etc. all belong to a site, and should only be visible to users that belong to that site. To make it clearer: a user belongs to a site, and once that user logs in he or she

Re: Starting a new application

2007-06-04 Thread Dr. Tarique Sani
Hi John, This topic has been recently discussed, the opinion was 1.1.x.x if the site is going live now - if there is enough time then 1.2 , the other was - critical commercial site 1.1, personal/open source 1.2 That said - I have done a couple of small commercial projects in 1.2 and did not face

Re: Starting a new application

2007-06-04 Thread Chris Hartjes
On 6/4/07, John Messingham <[EMAIL PROTECTED]> wrote: > > Hi, > > First of all I would like to thank the developers of CakePHP for all > their hard work in producing an excellant framework. > > We are starting to develop a new application with CakPHP in the next > week or so (we are just finishing

Starting a new application

2007-06-04 Thread John Messingham
Hi, First of all I would like to thank the developers of CakePHP for all their hard work in producing an excellant framework. We are starting to develop a new application with CakPHP in the next week or so (we are just finishing of the design phase). We would like to know if we should start with

Re: Sunday June 3rd, unable to register to the Bakery

2007-06-04 Thread mazoo
Same issue here - with mac and firefox 2.0.0.4. On Jun 3, 10:03 pm, Allen Romero <[EMAIL PROTECTED]> wrote: > I tried to register yesterday and also had problems. assumed it was a > glitch in the matrix and i'd try back later. for me the screen was > just blank after the submit. on a mac using fi

Re: Member Methods in Views

2007-06-04 Thread [EMAIL PROTECTED]
Craig, Firstly, $event['event']->registerDate() will not work because $event['event'] is an array, not an object. Secondly, the MVC methodology used by the cakePHP developers discourages you from directly accessing the model from the view. Instead you should call canRegister and registerDate fro

Member Methods in Views

2007-06-04 Thread Craig
Hi All, I have searched and I can't find an answer anywhere so I ask the question... I would like to display and use derived values in a view The model knows how to calculate these values form it's own data.. but how do I call these methods in a view.. For example I have a model called eve

ImageHelper (update to bakery article)

2007-06-04 Thread Jon Bennett
hi bakers, I've been using the ImageHelper from the bakery [1] in a project, but found it's method of caching all images in a single folder very restrictive, as I tend to have multiple tables in my DB and multiple sub-directories for images in my apps. To get around this I tweaked the existing h

Re: i18n translation in db tables - how to do this like Symfony?

2007-06-04 Thread R. Rajesh Jeba Anbiah
On Jun 1, 4:48 pm, jitka <[EMAIL PROTECTED]> wrote: > Hi rrjanbiah, I saw in irc logs that you're looking for me, but > unfortunately we're in different timezones (GMT +1 here) and I have > regular fulltime job, so it is probably hard to meet there. > > Example I gave to you *should* work. At leas

routing issue with Pages Controller in Cake 1.2 - trailing slash included not working

2007-06-04 Thread luke BAKING barker
If a pages URL is specified with the last argument having a slash after it, the view is not rendered, e.g. /pages/faq/ yields: You are seeing this error because the view for PagesController::display(), could not be found. Notice: If you want to customize this error message, create app/views/ err

Re: Checkbox implementation

2007-06-04 Thread Gonzalo Servat
On 6/4/07, cake_learner <[EMAIL PROTECTED]> wrote: > > > [..snip..] > > I want the data to be inserted into database with comma inbetween so, > in the controller i have written the code, > > > $langArr=$this->data['Client']['languages']; > $imp=implode(',',$langArr); >

Re: test suite for CakePHP 1.1.*.*

2007-06-04 Thread Tolstiy
Thanks http://www.thinkingphp.org/category/testing/ - ок! But It's hard to test without fixtures --~--~-~--~~~---~--~~ 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@goo

Re: help adding an antiflood to comments system

2007-06-04 Thread chad
wow that was it. I feel dumb... heh. Yeah I will have to restructure the code. It's a mess! Thanks for your help Grant, I appreciate it. On Jun 3, 8:20 pm, Grant Cox <[EMAIL PROTECTED]> wrote: > Look at your code. You have: > > if ( ... antiflood session set... ){ > if (... too recent ... ){

Re: test suite for CakePHP 1.1.*.*

2007-06-04 Thread Daniel Hofstetter
Well, my test suite doesn't work with 1.1.* -- 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@googlegroup

Re: Indexed HTML elements

2007-06-04 Thread GaZ
Ah cool, thanks! But then if I use javascript to generate the index number on the fly how will the controller know which / how many ExpenseDetails to look for? Should I use a hidden input to record the max index? On Jun 4, 6:35 am, Grant Cox <[EMAIL PROTECTED]> wrote: > For the helpers you can us

Re: test suite for CakePHP 1.1.*.*

2007-06-04 Thread teemow
This might help you: http://groups.google.com/group/cake-php/search?hl=en&group=cake-php&q=testsuite In the testsuite for 1.1.* are no fixtures. But there are some solutions by Daniel and Felix: http://cakebaker.42dh.com/2007/06/01/new-versions-of-test-suite-and-coretest-script/ http://cakebaker.

Re: Cache renders view before session check

2007-06-04 Thread AD7six
On Jun 4, 8:59 am, ytji <[EMAIL PROTECTED]> wrote: > hi,thomas > i doubt it's cake's bug. i meet the same question. > when cache is on, the before_filter() of app_controller does not > called anyway. > in my case,i use othAuth component to check user session .when the > cache is off,everyt

Re: Out of memory with FindAll

2007-06-04 Thread StinkyTofu
Thanks for all the tips! They really helped clarify things for me. I implemented your suggestions by adding the following code into the app_model.php file: **CODE *** var $pager = 1; function iterator($conditions, $fields = null, $limit = 200) { $this

Re: Problem with CakePHP

2007-06-04 Thread sonic
thanks Greg! I found error "Missing controller" thanks a lot sonic On Jun 1, 5:46 pm, Greg <[EMAIL PROTECTED]> wrote: > oops. i think that url should actually be "http://localhost:7070/cake/ > index.php/notes", according to your post. --~--~-~--~~~---~--~~ Yo

Re: Cache renders view before session check

2007-06-04 Thread ytji
hi,thomas i doubt it's cake's bug. i meet the same question. when cache is on, the before_filter() of app_controller does not called anyway. in my case,i use othAuth component to check user session .when the cache is off,everything is ok,but when it's on, i can't called othAth's session chec