$html input can't escape?

2008-10-11 Thread rocket
hey im on cake1.1 with a weird problem. when i save to the db eveyrthing saves fine, but when i use $html- >input and it autopopulates from the $data var, it can't seem to escape the "-" and always produces "&" instead. Any idea how to fix this? thanks rocket --~--~-~--~~

xmlwriter

2008-10-11 Thread .
has anybody worked with xmlwriter (or similar) with cakephp? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from t

Re: One controller for multiple models - Or any better design?

2008-10-11 Thread Jimmy Bourassa
It was indeed a very good idea. I created a Calendar controller and a Results controller to hande both events/games and results of these events/games. In each controller, I created the proper action to generate the elements that are included in the home page. Now I need to do the entire page for

Re: tilted table headers in cake...

2008-10-11 Thread xavierunited
Hell Naw lol lmao thanks dude i need that answer and laugh. On 10/11/2008, Samuel DeVore <[EMAIL PROTECTED]> wrote: > > On Sat, Oct 11, 2008 at 9:24 PM, soldier.coder > <[EMAIL PROTECTED]> wrote: >> >> >> >> On Oct 11, 3:06 pm, "Xavier Mathews" <[EMAIL PROTECTED]> wrote: >>> What kinda question i

Re: tilted table headers in cake...

2008-10-11 Thread Samuel DeVore
On Sat, Oct 11, 2008 at 9:24 PM, soldier.coder <[EMAIL PROTECTED]> wrote: > > > > On Oct 11, 3:06 pm, "Xavier Mathews" <[EMAIL PROTECTED]> wrote: >> What kinda question is this??? > > Cake is a framework. As such, it trys to solve problems that a whole > lot of peeps have in creating PHP database

Re: tilted table headers in cake...

2008-10-11 Thread xavierunited
I am very sorry but i do not kno the answer. I will have someone look at this for you. On 10/11/2008, soldier.coder <[EMAIL PROTECTED]> wrote: > > > > On Oct 11, 3:06 pm, "Xavier Mathews" <[EMAIL PROTECTED]> wrote: >> What kinda question is this??? > > Cake is a framework. As such, it trys to so

Re: tilted table headers in cake...

2008-10-11 Thread soldier.coder
On Oct 11, 3:06 pm, "Xavier Mathews" <[EMAIL PROTECTED]> wrote: > What kinda question is this??? Cake is a framework. As such, it trys to solve problems that a whole lot of peeps have in creating PHP database driven sites. So I just asked myself, is it really possible that I am the *only pers

Re: In controller using too many models hit the performance?

2008-10-11 Thread David C. Zentgraf
Yes, the more models you use, the more overhead there is. Not only in terms of database hits, but simply the fact that an additional class needs to be included and loaded. So design your database and models wisely from the start. Having said that, this overhead is often negligible, except f

Re: In controller using too many models hit the performance?

2008-10-11 Thread Larry E. Masters aka PhpNut
Should have added, refresh your page within 10 seconds and you should see the caching does work. -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Sat, Oct 11, 2008 at 9:42 PM, [EMAIL PROTECTED] < [EMAIL PROTE

Re: In controller using too many models hit the performance?

2008-10-11 Thread Larry E. Masters aka PhpNut
http://groups.google.com/group/cake-php/browse_thread/thread/93560397e44819e6/e69f61828e527664 -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Sat, Oct 11, 2008 at 9:42 PM, [EMAIL PROTECTED] < [EMAIL PROTEC

In controller using too many models hit the performance?

2008-10-11 Thread [EMAIL PROTECTED]
Hi there, My controller includes eight models as follows, var $uses = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H'); When loading a view for the controller, it always DESCRIBE the above eight TABLES (models) even the action (view) has nothing to do with these tables. From the cakephp log on view

Re: HABTM & Belongs_To Together?

2008-10-11 Thread Larry E. Masters aka PhpNut
Keith, Bin you models and send the link to the bin in your email, I will show you how to fix it. http://bin.cakephp.org/add/Keith -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Sat, Oct 11, 2008 at 8:45 PM,

Re: HABTM & Belongs_To Together?

2008-10-11 Thread Keith
So then... Does that mean that my problem is that I need to make my user_id in the projects table something like owner_id so that it won't get grouped in with the traditional habtm relationship that already exists with the user model? Thanks for the assistance. - Keith On Oct 11, 9:17 pm, "Lar

Re: HABTM & Belongs_To Together?

2008-10-11 Thread Larry E. Masters aka PhpNut
Helps to read the manual: http://manual.cakephp.org/view/79/Relationship-Types "...however, aliases must be unique both within a single model and on both sides of a belongsTo/hasMany or a belongTo/hasOne relationship. Choosing non-unique names for model aliases can cause unexpected behavior." --

Re: Problem using phpThumb

2008-10-11 Thread djXternal
I figured out the problem... The App:import line you provided me with was needed, but I also had to check exactly which directory phpThumb was trying to save the files to... the /app/tmp/thumbs dir as stated in the article was wrong, it was trying to save in: /app/tmp/cache/ thumbs So if anyone e

Re: Problem using phpThumb

2008-10-11 Thread djXternal
Well, that got rid of my error, but now when I run the controller with proper input, the output is nothing, just a blank page On Oct 11, 5:32 pm, Adam Royle <[EMAIL PROTECTED]> wrote: > Try this > > App::import('Vendor', 'phpThumb', array('file' => 'phpThumb/ > phpthumb.class.php')); > > On O

Re: HABTM & Belongs_To Together?

2008-10-11 Thread xavierunited
Ok yea i am not sure abt the first part but David was right the debuging is impossible. On 10/11/2008, David C. Zentgraf <[EMAIL PROTECTED]> wrote: > > A HABTM relationship will fetch data differently then a belongsTo > relationship. > HABTM will get you an array with multiple results, belongsTo

Re: HABTM & Belongs_To Together?

2008-10-11 Thread David C. Zentgraf
A HABTM relationship will fetch data differently then a belongsTo relationship. HABTM will get you an array with multiple results, belongsTo just a "flat" array. $habtm = array( [0] => array(['id'] =>, ...), [1] => array(['id'] =>, ...) ) $belongsTo = array(['id'] =>, ...) Whe

Re: Tree reorder method won't work if other model methods are called first

2008-10-11 Thread Corie
I finally tracked down the problem. The reorder method calls children to get the nodes of the root level first, but children has the following condition: if ($id === null && $model->id) { $id = $model->id; } elseif (!$id) { $id = null; } So if you were saving things to the model

Re: Problem using phpThumb

2008-10-11 Thread Adam Royle
Try this App::import('Vendor', 'phpThumb', array('file' => 'phpThumb/ phpthumb.class.php')); On Oct 12, 7:54 am, djXternal <[EMAIL PROTECTED]> wrote: > I am trying to set up phpThumb to generate thumbnails for me as seen > in:http://bakery.cakephp.org/articles/view/thumbnails-generation-with

Problem using phpThumb

2008-10-11 Thread djXternal
I am trying to set up phpThumb to generate thumbnails for me as seen in: http://bakery.cakephp.org/articles/view/thumbnails-generation-with-phpthumb I set everything up just as the article says, the only modification I have made was to the line: $sourceFilename = WWW_ROOT.$_GET['src']; changed t

Re: HABTM goodness: searching!!

2008-10-11 Thread Brenton B
Out of frustration: hate to say it, but Cake is quickly dropping on my list of "usable frameworks" due to it's inability to efficiently handle joins. On Oct 8, 1:24 pm, Brenton B <[EMAIL PROTECTED]> wrote: > I feel like I'm spinning my wheels searching for something that I > woulda figured was al

Re: Confusion with $uniqueIds in dbo_source.php

2008-10-11 Thread Brenton B
You're missing the point. Don't worry. On Oct 11, 6:55 am, villas <[EMAIL PROTECTED]> wrote: > Hi Brenton > > I think we need help from a HABTM expert :-) > > From what I understand, storing extra info in the join table is > commonly done. However, I think storing multiple join table rows for

Re: HABTM & Belongs_To Together?

2008-10-11 Thread Xavier Mathews
Ok first the link that you gave us is looping meaning that it loads and never stops! Next b/c there are many users do you see any options that allow you to set privacy or something like that? Xavier A. Mathews Student/Developer/Web-Master GG Client Based Tech Support Specialist Hazel Crest Illinoi

Re: HABTM & Belongs_To Together?

2008-10-11 Thread Xavier Mathews
Hello Keith i am sorry that this is still a problem for you. Maybe i can assist you. First i need to know if you are getting any error messages? Then i would like to refer you to this site to see if there is anything there that will help you! http://www.phpfreaks.com/ As far as your problem i wi

Re: 500 Internal Server Error - GoDaddy

2008-10-11 Thread Xavier Mathews
Are they even compatiable? Xavier A. Mathews Student/Developer/Web-Master GG Client Based Tech Support Specialist Hazel Crest Illinois [EMAIL PROTECTED] "Fear of a name, only increases fear of the thing itself." On Sat, Oct 11, 2008 at 12:37 AM, Keith <[EMAIL PROTECTED]> wrote: > > There a

Re: tilted table headers in cake...

2008-10-11 Thread Xavier Mathews
What kinda question is this??? This is CakePHP so the question that you asked is accepted here! As far as the code you may wanna check out this like or go to google search codes! http://www.phpfreaks.com/ Xavier A. Mathews Student/Developer/Web-Master GG Client Based Tech Support Specialist Haze

tilted table headers in cake...

2008-10-11 Thread Ed Drain
Ok, I am not even sure this is as much a cake question as it is a php/html question I'm writing this app that keeps track of grades and one of the things I'd like to do is have one overarching header that describes what category of grades is below it in a table, and then (here comes the questi

Date format in Grid

2008-10-11 Thread Fernando Mendonça
Hi again guys, I'm with another problem. I need to change de date format that appears in my grid. I was reading the manual and I try to use the TimeHelper but it didn't work. Look please my view Reserve, page index.ctp: format($format = 'd-m-Y', $reserve['Reserve'] ['reserve_da

Re: Date in another language

2008-10-11 Thread Fernando Mendonça
Thank you very much. This problem was solved. ;) Thanks again On 9 out, 10:45, Simonas Juodelis <[EMAIL PROTECTED]> wrote: > I don't know if this have changed in recent vesions (I use older one - > 1663), but when I need to translate some application to another language > I do this way ( for exa

Re: IP to GEO

2008-10-11 Thread Pablo Viojo
I'm using this[1] on 1.2rc3 (and rc2) it looks similar Regards, Pablo Viojo [EMAIL PROTECTED] http://needish.com http://pviojo.net [1] http://bakery.cakephp.org/articles/view/geoip-component On Sat, Oct 11, 2008 at 12:22 PM, Louie Miranda <[EMAIL PROTECTED]> wrote: > > http://bakery.cakephp.or

Re: Controller/Model Question

2008-10-11 Thread [EMAIL PROTECTED]
Hi, I'm posting my question here, because jfgreco wanted to do almost the same thing I was thinking about. This question mainly askes if what I am thinking is possibly, reasonable, and allowed in the MVC Pattern. On Oct 11, 4:51 am, jfgreco <[EMAIL PROTECTED]> wrote: > David thank you for your re

Can someone with Bakery admin rights help me out?

2008-10-11 Thread benjam
I apologize in advance for using the group for this, but I can't seem to log into the bakery. I tried resetting my password, I also tried creating a new account, both to no avail. I would like for someone with admin rights to the bakery to get into there and get me my original login data, and po

IP to GEO

2008-10-11 Thread Louie Miranda
http://bakery.cakephp.org/articles/view/quickly-translate-ip-to-geo-coordinates Guys, anyone tried to work on this on 1.2.x? -- Louie Miranda ([EMAIL PROTECTED]) http://louiemiranda.axishift.com Security Is A Series Of Well-Defined Steps chmod -R 0 / ; and smile :) --~--~-~--~~

Re: jquery validation

2008-10-11 Thread Lamonte(Scheols/Demonic)
Oops.. var validator = $("#UserSignupForm").validate({ rules: { firstname: "required", lastname: "required", data[User][username]: { required: true, min

Re: jquery validation

2008-10-11 Thread Lamonte(Scheols/Demonic)
Ever tried the Error Console in FireFox? var validator = $("#UserSignupForm").validate({ rules: { firstname: "required", lastname: "required", data[User][username]: { required: true,

Re: How to Create Subdomains on your localhost - host multiple projects at once

2008-10-11 Thread Alit Atmaja
Hi Mathew, I'm following your way. It's work for me now. I was looking for a long time to do this thing. With your post, less than 5 minutes changing the configuration files. Thanks for bring this here. Thanks for Eddie for throwing the topic here. You guys rocks! Cheers, ketut On Sat, Oct 11,

Re: HABTM & Belongs_To Together?

2008-10-11 Thread Keith
Hi Villas, I tried clearing out the cache and that didn't fix it unfortunately. I have the max debug level set. The code appears to be operating as programmed. I tried a simple habtm with belongs_to in a scenario where I only had those two models and still got the same results. I think it's a

Re: Automagic JavaScript Validation Helper - Beta integration problem

2008-10-11 Thread bookme
Same problem I am facing? Ant body have any solution? On Aug 21, 10:52 am, Pascal Messana <[EMAIL PROTECTED]> wrote: > I am facing the same problem. > I just posted on the author page > :http://www.pseudocoder.com/archives/2008/02/17/automagic-javascript-v... > > If you solved this problem, can

Re: Confusion with $uniqueIds in dbo_source.php

2008-10-11 Thread villas
Hi Brenton I think we need help from a HABTM expert :-) >From what I understand, storing extra info in the join table is commonly done. However, I think storing multiple join table rows for the same join so that you can store even more data is going beyond the existing HABTM design. Technic

Re: Sanitize problem with writing negative numbers into db

2008-10-11 Thread Dardo Sordi Bogado
Cake will escape your data before saving it to the database if you are using Model::save(), your model should validate the data so it's conforming to your application input requirements and cake helpers (form/html) will escape it when displaying and you can use the h() function for outputting data

Error when including prototype and scriptaculous in layout template

2008-10-11 Thread ORCC
I have a layout template that includes the prototype and scriptaculous scripts that are placed in webroot/js directory. The template looks like: http://www.w3.org/1999/xhtml";> charset(); ?> meta('icon'); echo $html->css(

Re: CakePHP Install Problem

2008-10-11 Thread darwin2kx
/cake/app/webroot/> is where the redirect goes. On Oct 10, 3:13 pm, "3lancer.eu" <[EMAIL PROTECTED]> wrote: > Hallo again, > > Sorry, I don't have time to really help you today, but the 1st thing > I'd suggest to do, is to change cake .htaccesses so they do the > explicit redirect, ie. change [L]

jquery validation

2008-10-11 Thread bookme
Hi, I am using jquery validation for signup form. But facing problem when I am using CakePHP helper class. if I used instead of text('username')); ?> that's generate " " it's working fine. Jquery validation code is var validator = $("#UserSignupForm").validate({ rules: {

Re: HABTM & Belongs_To Together?

2008-10-11 Thread villas
Hi Keith Thanks for the extra info although it still isn't very clear to me from that what's going on. However, I would mention: 1. Are you clearing your cache? You might have old data hanging around. 2. Did you try to set a higher debug level to get more info? 3. Did you try to experiment wit

Yet another site powered by Cakephp

2008-10-11 Thread Sayhello
Hello all, Just wanted to introduce yet another site built with CakePHP 1.2 RC3 - www.sayhello.me. Sayhello is a new classified ads site to help you buy and sell. We are initially launching in the Los Angeles market. Check it out. Any suggestions and feedback are welcome. Thank you! www.sayhello

OIDs on cakephp

2008-10-11 Thread Zureño
Hi everybody I need put a image from my database over a view but I cant find how can use the lo_import in cakephp, I find in the api all the functions pg_ lo_ create pg_ lo_ export pg_ lo_ import pg_ lo_ open pg_ lo_ read_ all pg_ lo_ read pg_ lo_ seek pg_ lo_ tell pg_ lo_ unlink pg_ lo_ write

Yet another site powered by Cakephp

2008-10-11 Thread Sayhello
Hello all, Just wanted to introduce yet another site built with CakePHP 1.2 RC3 - www.sayhello.me. Sayhello is a new classified ads site to help you buy and sell. We are initially launching in the Los Angeles market. Check it out. Any suggestions and feedback are welcome. Thank you! www.sayhello

Security question: AuthComponent and passwords

2008-10-11 Thread Bernhard J. M. Grün
Hi! Is it correct that the passwords created with the help of the AuthComponent are not public hashed (i.e. only secret hashed)? At least in my test app it seems to be like that. If so this is a major security hole. Example: User Alice has password "test": 2dd357c503a6812e276096a306cca02852cc1e4f

Re: Confusion with $uniqueIds in dbo_source.php

2008-10-11 Thread Brenton B
Hey villas, Thanks for that. I had read through a bunch of those and I have put in the ID field and experimented with the 'unique' functionality but was still confused why the core is restricting potentially useful rows. The logic in that chunk of code doesn't seem to fit. I mean if the result fr

security component newbie

2008-10-11 Thread .
i have multiple forms in one page. when I add var $components=array('Security'); component (without doing anything else), it does not work. i notice that it only adds the security token to the first form on the page. How do I get it on all of the forms? thanks --~--~-~--~~

Re: Validation won't work on tutorial at 1.2 RC3

2008-10-11 Thread Huen
I found a manual page which seems to be related my problem. http://jp.php.net/manual/en/regexp.reference.php According to the description, the \p, \P and \X are available when UTF-8 mode is selected. The preg functions use PCRE. I ran the pcretest by terminal, and set the regex of Varidation::a