Re: Are Cake Models half-baked?

2008-06-24 Thread Howie
Hi Nate Thanks for your reply. Didn't realsie that PHP4 was still so prevailant. I'd already seen the article in link you provided, and am familiar with the concept of skinny controller, fat model. No problem convnicing me that a controller should be thin! But my point about the Model still

Re: Where do I find data before modification ?

2008-06-24 Thread Marc MENDEZ
Hi, I'm paste the very simple example in the bin (first time, I hope it will work...) Before posting, I tested the code. Ask me more if needed. francky06l a écrit : Strange since the afterFind in behavior should be called. Maybe you have a problem in declaration or syntax ... Can you

Re: simple noob problem with database fetching

2008-06-24 Thread dr. Hannibal Lecter
Your routes are really a matter of preference and your decision would depend on the structure of your site and your plans for the future. Think carefully how you want to expand one day and see what's the best way to start. On Jun 24, 1:39 am, Turnquist, Jonah [EMAIL PROTECTED] wrote: I actually

Re: How to use several languages in cakePHP?

2008-06-24 Thread riverside
OK, guys I think most of the people who faced with that problem already are read above article, but in fact it is so hard to find out complete solution for friendly URL's problem. Is there a someone who can post such one? On 22 Май, 17:05, leo [EMAIL PROTECTED] wrote: Try this it helped me. a

self-referencing HABTM relations

2008-06-24 Thread Bo ozz
Hi, I'm trying to create a small workflow system, in which I have a table of available statusses a job can have. Since it is not possible to switch from certain statusses to another, I'm trying to create some logic which describes which status can lead to which. Therefor, I've made a link table

Bekijk deze pagina: 'CakePHP In The Wild'

2008-06-24 Thread Bo ozz
added http://www.seaderm.nl Klik op http://groups.google.com/group/cake-php/web/cakephp-in-the-wild - of kopieer de link en plak deze in de adresbalk van je browser als dit niet werkt. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Timeout on IE but not on other browsers

2008-06-24 Thread azlanms
Yes, there's some Javascript code but there no error indicated at the bottom left taskbar of the window. When there's not so many data, the page can be displayed correctly. I did further investigation and found a temporary solution. What I've done was to insert an echo ; statement in the

Re: Are Cake Models half-baked?

2008-06-24 Thread Jon Bennett
Hi Howie, Can I instantiate a domain object (model), and then save it? part = new Part() part.price = 123.45 part.save() You can, but in doing so you wouldn't be leveraging cake's true power, I would read through the Blog tutorial in the cookbook: http://book.cakephp.org/view/219/blog hth

Html Helper get wrong!!

2008-06-24 Thread [EMAIL PROTECTED]
hi all: i get use the new cake version 1.2.0.7125 RC1, i code the Html helper like before: ?php echo $html-input('Artist/name');? but it got html: input name=Artist name/ could somebody tell me how should i do? --~--~-~--~~~---~--~~ You received this

newbie elements question

2008-06-24 Thread .
I have a controller comments_controller.php and comments/add.ctp file, but I want to be able to add this add.ctp onto more than 1 page (don't want to duplicate the same code). Should I make an elements/comments/add.ctp instead of view/comments/add.ctp? Also, in my elements/add.ctp file, if I do ?

Re: Are Cake Models half-baked?

2008-06-24 Thread Howie
I've read the tutorial several times. Can't see any reference to how to do this. I do see use of arrays - $post['Post']['id'] - where I'd rather be writing $post-id I can see where the power of Cake is with sinmple CRUD operations. The controller calls the DAO (model) directly, but for anything

Re: Are Cake Models half-baked?

2008-06-24 Thread Jon Bennett
Hi Howie, I do see use of arrays - $post['Post']['id'] - where I'd rather be writing $post-id You can't access the data like that in cake out of the box, there is a behaviour out there that does this if you insist on doing it this way. sorry not to be of more help! jon -- jon bennett w:

Re: Using pagination helper on a view element

2008-06-24 Thread bob
Anyone have an answer to this problem? Thanks On Apr 7, 7:19 pm, Juan Luis Baptiste [EMAIL PROTECTED] wrote: Hi, I'm trying to make a view element and reuse it in various  views. The element uses the pagination helper, the problem is that the element can't see the paginator helper object:

Re: newbie elements question

2008-06-24 Thread clemos
Hi . On Tue, Jun 24, 2008 at 11:28 AM, . [EMAIL PROTECTED] wrote: I have a controller comments_controller.php and comments/add.ctp file, but I want to be able to add this add.ctp onto more than 1 page (don't want to duplicate the same code). Should I make an elements/comments/add.ctp instead

Re: Html Helper get wrong!!

2008-06-24 Thread Daniel Hofstetter
Hi, i get use the new cake version 1.2.0.7125 RC1, i code the Html helper like before: ?php echo $html-input('Artist/name');? but it got html: input name=Artist name/ could somebody tell me how should i do? HtmlHelper::input() is deprecated and shouldn't be used anymore. Most of it's

Re: cake perfomance

2008-06-24 Thread Voyager2K
francky06l, bebug 0 or 1 not take perfomance effect db queries works fast = 1-2 ms Grant Cox, i will look this. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

one controller - two models

2008-06-24 Thread Dummas
Hi to all, I have some problem. In user controller I have a function forget() - if user forgets his password, he fills a certain form in view http://www.paste.lt/paste/a2a6a50327d0383d5c7629381aee67bc in users controller I've discribed what models to use

How to set Ajax function call on onblur event of an select tag

2008-06-24 Thread adnangohar
Hi, I am using $ajax-ObserverField('mydd',$options) to call ajax from my page. It works fine but works on the onchange event of my select tag by default. How can i change its behaviour of calling ajax on not on its onchange event but on its onblur event. The code which i am using in my view is:

Re: Are Cake Models half-baked?

2008-06-24 Thread Howie
No problem. It's not a big deal. It is a bit misleading that the Cake home page states that it supports ORM tho' :-( On 24 Jun, 10:43, Jon Bennett [EMAIL PROTECTED] wrote: Hi Howie, I do see use of arrays - $post['Post']['id'] - where I'd rather be writing $post-id You can't access the

Re: Html Helper get wrong!!

2008-06-24 Thread dr. Hannibal Lecter
Also, be sure to use a dot instead of a slash: $form-input('Artist.name'); Happy baking! On Jun 24, 11:51 am, Daniel Hofstetter [EMAIL PROTECTED] wrote: Hi, i get use the new cake version 1.2.0.7125 RC1, i code the Html helper like before: ?php echo $html-input('Artist/name');?

Re: Are Cake Models half-baked?

2008-06-24 Thread Jonathan Snook
No problem. It's not a big deal. It is a bit misleading that the Cake home page states that it supports ORM tho' :-( I disagree. I think that you are looking for a narrowly defined approach for OR mapping. The approach that you describe is quite similar to how CakePHP does it, even though the

Re: Are Cake Models half-baked?

2008-06-24 Thread Jonathan Snook
$toy = new Toy(); $toy.set(array( 'size' = 'value', 'price' = 'value', 'weight' = 'value', ); $toy.save(); That'll work in CakePHP. How is that conceptually different? I realized my PHP is wrong (hey, this is off the top of my head): $toy = new Toy(); $toy-set(array( 'size' =

Re: Are Cake Models half-baked?

2008-06-24 Thread Howie
Thanks Jonathan. I guess I'm being a little pendantic about the Model, but then again, I did lose time trying to understand it, as I's asumed it did much more than it appears to do. What happens under-the-hood is great, and keeps the code clean, but it's not ORM as I understand it. From my Java

Re: Are Cake Models half-baked?

2008-06-24 Thread Jonathan Snook
On Tue, Jun 24, 2008 at 8:36 AM, Howie [EMAIL PROTECTED] wrote: I guess I'm being a little pendantic about the Model, but then again, I did lose time trying to understand it, as I's asumed it did much more than it appears to do. What happens under-the-hood is great, and keeps the code clean,

Concurrency : need your opinion about this piece of code

2008-06-24 Thread Marc MENDEZ
Hi, I asked a few days ago how to handled concurrency with Cake. Thanks to some members of this group, examples and time, I have a possible solution. However, I need your experience to validate this solution. I want to warn users when a record they save was modified in the meanwhile by

Error using Cron

2008-06-24 Thread Pierre MARCOURT
Hello all, i have an error using Cron and CakePHP...** I have defined a cron_dispatcher.php file in my app/webroot/ (cf. http://www.lost-in-code.com/27/cakephp-crontab/ and http://bakery.cakephp.org/articles/view/calling-controller-actions-from-cron-and-the-command-line) but I have an

table driven select box example for cakePHP ver 1.2.0.xxxxx

2008-06-24 Thread Wayne Madison
Hello, I want to create cakePHP(1.2.0.) Forms to View, Add, Edit, Delete a User. Constraints: 1 (No Scaffold) 2 (No Deprecated generateList()) I want the Add and Edit form to contain: 1) A select option box for title based upon the values in the titles table showing

Re: Where do I find data before modification ?

2008-06-24 Thread francky06l
Yes, I need the URL of the bin after you posted it :-) On Jun 24, 9:38 am, Marc MENDEZ [EMAIL PROTECTED] wrote: Hi, I'm paste the very simple example in the bin (first time, I hope it will work...) Before posting, I tested the code. Ask me more if needed. francky06l a écrit :

Re: Where do I find data before modification ?

2008-06-24 Thread Marc MENDEZ
You're right : that may help you ; Here is it : http://bin.cakephp.org/saved/33964 francky06l a écrit : Yes, I need the URL of the bin after you posted it :-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Where do I find data before modification ?

2008-06-24 Thread grigri
callbacks in behaviors take the model as the first argument: function afterFind($model, $results, $primary) { ... } On Jun 24, 4:51 pm, Marc MENDEZ [EMAIL PROTECTED] wrote: You're right : that may help you ; Here is it :http://bin.cakephp.org/saved/33964 francky06l a écrit : Yes, I

Help with ajax and javascript

2008-06-24 Thread [EMAIL PROTECTED]
Any direction on this is much appreciated, I think I need to somehow use the 'complete' option on the ajax call but I cannot get it to work. I have an image gallery that displays one big image in the preview pane, and three thumbnails. I use an ajax call to fetch the next three or previous

Documentation

2008-06-24 Thread John David Anderson
Bakers, How are we doing? What is the most confusing? What's most needed and missing? I have a punchlist of my own, but I'm looking for input from you guys, especially the new ones. Thanks, John --~--~-~--~~~---~--~~ You received this message because you

Re: Documentation

2008-06-24 Thread Julio Protzek
2008/6/24 John David Anderson [EMAIL PROTECTED]: Bakers, How are we doing? What is the most confusing? What's most needed and missing? I have a punchlist of my own, but I'm looking for input from you guys, especially the new ones. Well, relations seems to be most confusing subject for

Re: Documentation

2008-06-24 Thread dr. Hannibal Lecter
Hi there, as far as I can see, the cookbook has become an excellent tool. Since I currently don't have internet connection at home, I just scrap the all in one page and take it with me. Indeed , it has helped me many times. I can see only one flaw, and one only. The cookbook explains things with

Re: Help with ajax and javascript

2008-06-24 Thread schneimi
Hi, I think this is because the javascript-code that comes with the ajax answer is only inserted but not executed. There is the ajax-Option evalScripts, you may try to set that to true. I am not sure with 'complete', if I am not wrong it is executed at the end of the ajax-call, but this is yet

Multiple sites - Single Login

2008-06-24 Thread Infinite Knight
Just curious... This may have been asked before but I missed it in my searches... I am designing a multi-site app, where each sub-site is a seperate app, but yet part of the larger core... The following layout is what I am after, any pointers to such would be helpful... http://www.domain.com

Re: A few questions from a new user.

2008-06-24 Thread Infinite Knight
Thanks DaveMahon... Right now I am using 1.2, and am playing around with it... From what I have found Cake seems to pickup the post data automatically, so getting it in, is fairly easy from what I have found, as is cleaning it... The ACL part I am looking at DarkAuth for what I need, as it

Re: user data sanitized automatically?

2008-06-24 Thread Perkster
Did you ever find the answer to this? I'm still looking... On Apr 28, 2:57 pm, ryanwaggoner.com [EMAIL PROTECTED] wrote: If I'm handling a form submission in a controller, do I need tosanitize$this-data or does Cake do that for me? I'm asking because if I bake my controllers, Cake is

Re: Documentation

2008-06-24 Thread Wayne Madison
Hello, I want to create cakePHP(1.2.0.) Forms to View, Add, Edit, Delete a User. Constraints: 1 (No Scaffold) 2 (No Deprecated generateList()) I want the Add and Edit form to contain: 1) A select option box for title based upon the values in the titles table showing

Re: Help with ajax and javascript

2008-06-24 Thread clrockwell
Thanks for the replay Michael I tried the complete with evalScripts set to true and no luck. I also tried 'success' but that did not do the trick. I think it has to be in the callbacks, just can not figure out where. Thanks again. On Jun 24, 12:50 pm, schneimi [EMAIL PROTECTED] wrote: Hi,

Re: Documentation

2008-06-24 Thread Alain Veylit
My personal requests: -- I think there should be more documentation -- or better a tutorial -- on how to add a simple search box integrated in an index display. Actually designing a Search component that can be easily integrated would be fabulous. Someone had added that feature in their

Re: Documentation

2008-06-24 Thread Chris Hartjes
On Tue, Jun 24, 2008 at 12:17 PM, Wayne Madison [EMAIL PROTECTED] wrote: Hello, Thanks for showing no social skills and hijacking a thread! -- Chris Hartjes Internet Loudmouth Motto for 2008: Moving from herding elephants to handling snakes... @TheKeyBoard:

Re: Documentation

2008-06-24 Thread Rich
I love the manual, but as the good doctor said . . . i'd like to see more hands-on code or tutorials for specific things. Kinda like the api but with actual usage code. and thanks wayne for the post jack! read the manual! On Jun 24, 2:01 pm, Chris Hartjes [EMAIL PROTECTED] wrote: On Tue, Jun

Re: A few questions from a new user.

2008-06-24 Thread francky06l
I also use a CURL model for this kind of POST / GET. I enhanced the one on the bakery for my needs, and it can be a base for the models of this kind. The ideal would be to have a data source, or a driver to handle this data in the cake way: find / read etc ... hth On Jun 24, 7:01 pm, Infinite

Re: Documentation

2008-06-24 Thread Nate
I totally don't get ACL. Like, at all. Who the heck wrote that?? On Jun 24, 12:11 pm, John David Anderson [EMAIL PROTECTED] wrote: Bakers, How are we doing? What is the most confusing? What's most needed and   missing? I have a punchlist of my own, but I'm looking for input from   you

Re: Using pagination helper on a view element

2008-06-24 Thread francky06l
Not sure of this, but I did used it at the beginning of 1.2: $lview= ClassRegistry::getObject('view'); $paginator = $lview-loaded['paginator']; Really not sure that will work.. hth On Jun 24, 11:47 am, bob [EMAIL PROTECTED] wrote: Anyone have an answer to this problem? Thanks On Apr

Re: Documentation

2008-06-24 Thread John David Anderson
On Jun 24, 2008, at 12:22 PM, Nate wrote: I totally don't get ACL. Like, at all. Who the heck wrote that?? I'd have to agree - the INI stuff is especially bad. -- John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: self-referencing HABTM relations

2008-06-24 Thread francky06l
Actually I think you might do something like this : in status model var $hasAndBelongsToMany = array('Tostatus' = array('className' = 'Status', 'joinTable' = 'status_links', 'foreignKey' = 'status_id', 'associationForeignKey' = 'to_status_id') ; You could even create a model for your

Re: Documentation

2008-06-24 Thread Mech7
Constraints on the join tables are still not described properly... --~--~-~--~~~---~--~~ 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

Re: Multiple sites - Single Login

2008-06-24 Thread francky06l
Basically you want to share the session. I have tried something like this (maybe a bit unsecured thought), in your link you can pass an argument 'sessid:xxx' ..You can get the value using Session-id(); On the different application, in beforeFilter, you can do :

Re: How to use several languages in cakePHP?

2008-06-24 Thread francky06l
Maybe this one : http://www.cakephpforum.net/index.php?showtopic=179 On Jun 24, 10:03 am, riverside [EMAIL PROTECTED] wrote: OK, guys I think most of the people who faced with that problem already are read above article, but in fact it is so hard to find out complete solution for friendly

Re: A few questions from a new user.

2008-06-24 Thread Infinite Knight
Trick is francky06l, the outside data sources don't always have the ability to recieve until they send first... The firewall structure they are behind, will only allow them to recieve data from a server that they have sent a http stream / post to prior, within a certain time window. One of the

Re: Multiple sites - Single Login

2008-06-24 Thread Infinite Knight
That is why I was thinking of having it look for the original cookie set on login, then connect to the root site's DB, grab the needed row from the Users table for that specific user, then switch back to it's own DB, and set the needed session data there and take the ID from the previously

Checkbox problem with pquery

2008-06-24 Thread CakeMan
Hi All, I am using latest RC realese of Cakephp with latest pquery. it is working fine. However, i am having one problem with it that is I have an form with some input fields and checkboxes as well. Whenever i submit blank form then it give error message it is fine But all of my checkboxes got

Re: simple noob problem with database fetching

2008-06-24 Thread Turnquist, Jonah
Yeah I guess I'm going to need to do a lot of thinking about this. Thanks. And thanks for the link Renan, it actually helped. I now see there is a 'fields' option in the hasMany field, maybe I could use the bind() or bindModel() function to temporarily change that setting before using find().

Re: Controller obviously not called. Wrong URL in Cake core ?

2008-06-24 Thread metalseb
Hi again there :) No idea ? Anybody ? --~--~-~--~~~---~--~~ 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

Re: An AJAX request made from a timed-out session will throw a 500 error

2008-06-24 Thread zheka
if your request was redirected to login page then you would get HTML of the login page returned. chances are you are getting 500 error response header by design. This way you can deal with it using onFailure callback handler. The problem though is that generic 500 status code is not specific

Re: Concurrency : need your opinion about this piece of code

2008-06-24 Thread francky06l
In this process, there are 2 approaches, quite different . What I think is very frustrating is to fill up a form (can be long), and find out that your time is lost because someone was quicker than you to post. The other approach is to implement a lock mechanisms (I know it can be quite complex,

Re: How to set Ajax function call on onblur event of an select tag

2008-06-24 Thread francky06l
Use the $javascript-event along with $ajax-remoteFunction. On Jun 24, 10:59 am, adnangohar [EMAIL PROTECTED] wrote: Hi, I am using $ajax-ObserverField('mydd',$options) to call ajax from my page. It works fine but works on the onchange event of my select tag by default. How can i change its

Re: A few questions from a new user.

2008-06-24 Thread Infinite Knight
Not quite... The firewalls I am dealing with won't support SOAP, though I am looking at using it for logging into some things from Google, such as their docs and mail components if I use them instead of private designs... But for the remote data sources, most of them are behind a firewall that

Re: How to set Ajax function call on onblur event of an select tag

2008-06-24 Thread adnangohar
Thanx alot .. i figured it out earlier ... just need one more clarification , any idea how to change event on $ajax - observerField() ?? Regards, Adnan Gohar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: simple noob problem with database fetching

2008-06-24 Thread Turnquist, Jonah
Hey guys, I actually found a (better) solution by accident. Check this link for anyone else that is interested: http://cakebaker.42dh.com/2008/05/18/new-core-behavior-containable/ On Jun 24, 12:09 pm, Turnquist, Jonah [EMAIL PROTECTED] wrote: Yeah I guess I'm going to need to do a lot of

How to get path to the file

2008-06-24 Thread jhicks
I've got a flash file that I want to include on all pages of a site so I'm trying to include it in the layout (default.ctp). I need to set the param value where name = movie and the src value under the embed tag to the path of the actual swf flash file. I can't for the life of me figure out how

Re: Documentation

2008-06-24 Thread floob
I've been going at cake for a bit over one month, and I've developed a love/hate relationship with it. I apologize if this is a rant ... cake documentation is a touchy subject for me, and I believe my experiences may help you. Understanding CakePHP has been an uphill battle the whole way, but

Re: Importing a helper

2008-06-24 Thread Federico Rinaldi
It actually works but the Helper's callbacks are not called so is only viable if you don't need them. On Thu, Jun 19, 2008 at 9:48 AM, Chris Hartjes [EMAIL PROTECTED] wrote: On Wed, Jun 18, 2008 at 9:15 PM, Turnquist, Jonah [EMAIL PROTECTED] wrote: I do not understand I did not give an

Re: Problems with query functions on production server

2008-06-24 Thread Sanfly
Now I have another problem with differences on my production and development servers Im using $ajax-editor to update a field (bg_notes). On my home development server, this works fine regardless of debug mode. On my actual website, it didnt seem to be updating the database (i would make the

Multiple checkboxes and inserting descriptions

2008-06-24 Thread Tad
CakePHP 1.2 RC1, PHP 5.2.5 I'm using 1.2's new multiple checkbox input as follows: echo $form-input('race', array( 'type'='select', 'multiple'='checkbox', 'options'=$races, 'label'=false )); Currently, $races is populated from a find('list'). If I have the descriptions of each race as

Re: Importing a helper

2008-06-24 Thread francky06l
I usually do : if(!isset($this-helpers['Time'])) $this-helpers[] = 'Time'; Seems a lot of concern about performances (even if this checked by cake, that avoid the cake checking) .. My 2 (maybe 1) cents.. On Jun 24, 11:13 pm, Federico Rinaldi [EMAIL PROTECTED] wrote: It actually works but

Re: Multiple checkboxes and inserting descriptions

2008-06-24 Thread francky06l
Seems just a story of find('all' ..) and set::extract / set::combine... On Jun 24, 11:16 pm, Tad [EMAIL PROTECTED] wrote: CakePHP 1.2 RC1, PHP 5.2.5 I'm using 1.2's new multiple checkbox input as follows: echo $form-input('race', array( 'type'='select', 'multiple'='checkbox',

Re: How to get path to the file

2008-06-24 Thread jhicks
Never mind. Found the solution right after I posted (of course :) ). This works: ?php echo $html-url('/files/logo.swf'); ? On Jun 24, 3:25 pm, jhicks [EMAIL PROTECTED] wrote: I've got a flashfilethat I want toincludeon all pages of a site so I'm trying toincludeit in the layout

Re: Documentation

2008-06-24 Thread davidpersson
I would like to see more documentation on the Translate behavior and i18n/l10n in general. How do I localize numbers? How do I set up and make use of routes like www.example.org/eng/posts? How do I switch current locale? What about timezones? On 24 Jun., 18:11, John David Anderson [EMAIL

Re: How to set Ajax function call on onblur event of an select tag

2008-06-24 Thread francky06l
Well you do not need observeField in fact, You could write a javascript block : echo $javascript-codeBlock(); ? function myfunc() { ?php echo $ajax-remoteFunction(array('url' = 'where you want to go', 'with' = 'Element.serialize(\'id_of_obersered_field\')', 'update' = 'divtoupdate')); ? } ?php

Re: user data sanitized automatically?

2008-06-24 Thread Samuel DeVore
there is some sanitation that is done by the model when data is saved to a database, it is one of the reasons that conditions were moved from the right side to the left side in the way you can specify them. Now is it perfect, is it going to cover all cases, probably not, that is why the sanitize

Re: Auth Component the most failment of Cakephp

2008-06-24 Thread francky06l
I guess if this Auth-user() looses the user, it's linked to session. What are you security.level in core ? What is your check.agent (do you do lot's of ajax ?). Do you have some other notices, warnings before ? On Jun 24, 5:30 am, aranworld [EMAIL PROTECTED] wrote: I'm curious to know why you

Cant't change Columns or View

2008-06-24 Thread skyrocket777
Hi guys!!! fist of all thanks if you can help me!!! I have just started discovering CakePhp an find it very nice!!! I decided to create the Controllers, Models, then the Views interactively, but now that i have the code done, i have some columns in teh view that i dont want to be shown on the

$loginRedirect in the Auth component does not work?

2008-06-24 Thread deltawing
I tried setting $loginRedirect in the Auth component but it doesn't seem to work. No matter what I set the variable to, Cake will always redirect to the last page that I was at prior to logging in. Anyone have any ideas on why? --~--~-~--~~~---~--~~ You received

Table name

2008-06-24 Thread Alvas
Hello I'm new here. I got this problem when I upload my script to web host : Query: SELECT `Language`.`id`, `Language`.`lang`, `Language`.`code` FROM `Langs` AS `Language` WHERE `Language`.`default`='1' LIMIT 1 Warning: SQL Error: 1146: Table 'h53.Langs' doesn't exist in /home/

Re: exception handling in phpcake

2008-06-24 Thread SajjadRaza
so if i made the custom exception classes where i have to keep them and how can i access them On Jun 23, 6:56 pm, leo [EMAIL PROTECTED] wrote: As Peter Chng says in his blog (http://unitstep.net/blog/2008/05/11/cakephp-and-errorexception-handling/ ): One thing I’d like to see,

Re: Problems with query functions on production server

2008-06-24 Thread Chris Hartjes
On Tue, Jun 24, 2008 at 4:37 PM, Sanfly [EMAIL PROTECTED] wrote: So i quickly changed the debug mode on my live website to '2' (Silly I know, but I dont know how to display debug info on one page when the site is set to '0', if anyone can tell me would appreciate), tried again, copied the

Re: Cake 1.2 RC1 and MySQL 4.0 are not able to delete a record

2008-06-24 Thread aranworld
I would submit a bug on this. I ran across another MySQL 4.1 incompatibility last week and they fixed it. But first update to the latest SVN version, because maybe this has already been fixed. I came across another MySQL 4.1 issue that luckily wasn't causing me any problems, so I didn't dig

Re: Documentation

2008-06-24 Thread David C. Zentgraf
Just the vaguest of ideas, but a section on app flow would be good I think. Which parts of Cake get called in which order, which files are minimally relevant to a functioning application, where all the automagic comes from [1] etc. I think for traditional PHP programmers [2] Cake is a

Re: Html Helper get wrong!!

2008-06-24 Thread [EMAIL PROTECTED]
thank you Daniel ! thank you Hannibal ! dr. Hannibal Lecter wrote: Also, be sure to use a dot instead of a slash: $form-input('Artist.name'); Happy baking! On Jun 24, 11:51�am, Daniel Hofstetter [EMAIL PROTECTED] wrote: Hi, i get use the new cake version 1.2.0.7125 RC1, i code

integration phpbb3 with cake

2008-06-24 Thread Alessio
I am trying to integrate cake and phpbb3... The problem I get is that name of class of Cake are used in the core of PhpBB3... SO I get error ... Already declareted... USer Cache So someone was able to integrate? I am also trying to hash password with alghoritm...it is very hard ... Thanks

S3 Behavior Integration Help

2008-06-24 Thread [EMAIL PROTECTED]
Hello, I've used this behavior http://bin.cakephp.org/view/517863202 I added the 2 required fields to my database table ('path' and 's3_url') When I try to upload the file, the file does get uploaded, but I get this printed to the screen: string(16)dkaksdfjw8rlaskdwwsampleniore508.mp3

Re: Documentation

2008-06-24 Thread David Christopher Zentgraf
I suppose I'm talking about this: http://book.cakephp.org/view/21/a-typical-cakephp-request Just right now I feel it's neither high-level enough nor detailled enough to really help. Adding code examples would be great. Following variables/data throughout the application would help

Re: integration phpbb3 with cake

2008-06-24 Thread Louie Miranda
I think cakephpbb is only for phpBB2 and not phpBB3. http://cakeforge.org/forum/forum.php?thread_id=3616forum_id=327 Louie On Wed, Jun 25, 2008 at 11:56 AM, Marcos Aruj [EMAIL PROTECTED] wrote: There's a project called cakephpbb that may help you: http://cakeforge.org/projects/cakephpbb/ On

Re: Cant't change Columns or View

2008-06-24 Thread Dr. Tarique Sani
If you have thtml files you are using a very old version of CakePHP. Time to shift to CakePHP 1.2 RC1 Also try clearing the cache in /tmp to see the effect of your views editing Lastly while developing have the debug level set to 2 HTH Tarique On Wed, Jun 25, 2008 at 3:12 AM, skyrocket777

Re: cakephp on MAMP

2008-06-24 Thread mukelarvin
That was my problem. Turned on hidden files. Found I was missing a .htaccess in the /webroot. Thanks. L.M. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Re: Multiple checkboxes and inserting descriptions

2008-06-24 Thread Tad
Thanks; I know how to grab the info from the database, but what I was wondering is if there is an $option like 'after' that works for each checkbox element, rather than the entire checkbox set. On Jun 24, 2:57 pm, francky06l [EMAIL PROTECTED] wrote: Seems just a story of find('all' ..) and

Good coding

2008-06-24 Thread Federico Rinaldi
Hi all, I'm working in a helper that has to output lot of JS code. The thing is that I really dislike coding JS as string (ie alert('whatever')) becouse I'm loosing all the code completition that modern IDE's do for me. So I'm actually doing something like this: (inside a helper class) function

Re: Documentation

2008-06-24 Thread Federico Rinaldi
I agree with Nate, I've been a cake developer for almost a year and made a few projects with ACL before I get things working. On Tue, Jun 24, 2008 at 3:22 PM, Nate [EMAIL PROTECTED] wrote: I totally don't get ACL. Like, at all. Who the heck wrote that?? On Jun 24, 12:11 pm, John David

Re: $loginRedirect in the Auth component does not work?

2008-06-24 Thread Federico Rinaldi
That's how it's supposed to work. The Auth component just redirects to $loginRedirect when you access the $loginAction directly becouse it doesn't have any where else to go. If you want to redirect somewhere else you can use the auth's or controller's redirect method after a succesfull login. On

Re: exception handling in phpcake

2008-06-24 Thread Federico Rinaldi
You should use the vendors dir then just use App::import('Vendor', 'YourCustomExceptionClass'); For more information on PHP Exception you can check out: http://www.php.net/exceptions** http://www.devshed.com/c/a/PHP/Error-Handling-in-PHP-Introducing-Exceptions-in-PHP-5/