Re: cake generate schema - Error

2008-01-13 Thread Copongcopong
i did and i added this code --- if(!class_exists('String')) include_once('string.php'); -- on that line to temporarily fix it --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group,

Re: How to save on a field? That is not on view?

2008-01-13 Thread majna
Try: if (!empty($this->data)) { $this->cleanUpFields(); // Modifications on the database $LoggedUsername = $this->Session->read('User.handle'); $this->data['Feature']['username_created'] = $LoggedUsername; if ($this->Feature->save($this->data)) { $this->Session-

Re: Flash - Want to show a Javascript pop-up window for success/error messages

2008-01-13 Thread majna
Paste full layout. where's link to js? On Jan 14, 6:39 am, Sai <[EMAIL PROTECTED]> wrote: > I have created a layout flash.thtml in app/views/layouts > > The code in this flash.thtml is: > > > > > > > > > > > > ec

Flash - Want to show a Javascript pop-up window for success/error messages

2008-01-13 Thread Sai
I have created a layout flash.thtml in app/views/layouts The code in this flash.thtml is: Close I am having the following problems: 1. It is not setting a pop

Re: Session db - format

2008-01-13 Thread cronet
Exactly what I need! Thank you!! On 14 Jan., 01:48, jarmstrong <[EMAIL PROTECTED]> wrote: > Look at the php serialize functions. > > http://us2.php.net/serializehttp://us2.php.net/manual/en/function.unserialize.php > > > > Cronet wrote: > > > Hi, > > > it's more a general question, not directly

Re: How to save on a field? That is not on view?

2008-01-13 Thread Louie Miranda
I tried this.. if (!empty($this->data)) { $this->cleanUpFields(); // Modifications on the database $LoggedUsername = $this->Session->read('User.handle'); *$this->Feature->saveField('username_created', $LoggedUsername);* if ($this->Feature->save($this->data)) { $th

How to save on a field? That is not on view?

2008-01-13 Thread Louie Miranda
HELP! I am trying to save on my username_created field. But, could not. username_created is not on my view. I tried this on my controller. if (!empty($this->data)) { $this->cleanUpFields(); // Modifications on the database $LoggedUsername = $this->Session->read('User.handle'); $t

htmLawed to sanitize/filter user input

2008-01-13 Thread atoz
CakePHP users/developers might be interested in htmLawed, a 45-kb, single-file, non-OOP, GPLv3-licensed script with low basal memory usage (0.5 MB) to filter illegal/disallowed HTML (tags, attributes, etc.) from user input. It also reduces XSS vulnerabilities, balances tags, etc. Visit http://ww

Fatal error: Class 'any_class' not found in ...\cake\scripts\bake.php on line 1311

2008-01-13 Thread KotMatroskin
WinXP localhost PHP 5.2.3, Cake 1.1.19.6305 Whenever I try to bake a controller, like: php cake/scripts/bake.php I go through all steps but after answering some y/n I get the following error message: PHP Fatal error: Class 'any_class' not found in ...\cake\scripts \bake.php on line 1311 Fata

Re: Fatal error: Class 'Post' not found

2008-01-13 Thread KotMatroskin
Did you manage to solve this issue? I have the same problem On Nov 27 2007, 8:25 pm, GunabalanS <[EMAIL PROTECTED]> wrote: > Would you like to use Sessions? (y/n) > [y] > > > Fatal error: Class 'Post' not found in /home/gunabalans/public_html/ > website/cake/cake/scripts/bake.phponline1311 > > C

Re: Sessions, redirects and setFlash

2008-01-13 Thread Chris Hartjes
On Jan 13, 2008 6:24 PM, lordG <[EMAIL PROTECTED]> wrote: > > Hi guys, > > I'm experiencing a problem with the redirects when I destroy the > session, set a flash message and then redirect. > > When it gets to the redirect page, the flash no longer exists and the > session is clean of any custom s

Re: Sessions, redirects and setFlash

2008-01-13 Thread Gráinne O'Neill
i'm having the same problem. (except minus the flash) ugh... On Jan 13, 2008 5:24 PM, lordG <[EMAIL PROTECTED]> wrote: > > Hi guys, > > I'm experiencing a problem with the redirects when I destroy the > session, set a flash message and then redirect. > > When it gets to the redirect page, the f

Re: Session db - format

2008-01-13 Thread jarmstrong
Look at the php serialize functions. http://us2.php.net/serialize http://us2.php.net/manual/en/function.unserialize.php Cronet wrote: > > > Hi, > > it's more a general question, not directly cake related. > > > If I store a Session in my db, the "data" field looks like: > > Config|a:3:{s

Sessions, redirects and setFlash

2008-01-13 Thread lordG
Hi guys, I'm experiencing a problem with the redirects when I destroy the session, set a flash message and then redirect. When it gets to the redirect page, the flash no longer exists and the session is clean of any custom session data they may have been set after the destroy call. Does the red

Re: Need ideas on using cake in a tabbed design.

2008-01-13 Thread Novice Programmer
Oh yes.. .they are ajax indeed.. view changes by reading the data from the server. Let me check out the tutorial then.. Thanks for the help. On 1/14/08, Baz <[EMAIL PROTECTED]> wrote: > > Sorry, I thought your tabs were ajax. > > Since they're not...I'm not sure what the problem is. A new view sho

Re: Saving Date and Time NOT in the Model/Database (cleanUpFields not working)

2008-01-13 Thread [EMAIL PROTECTED]
Try: $property_formatted_date_string = $this->Model->deconstruct($this- >data['Model']['datefield']); When you're saving data, it seems to work fine without calling Model::deconstruct, but if you're doing 'custom' date fields (e.g., searching records in a database) it appears that you need to de

Re: Need ideas on using cake in a tabbed design.

2008-01-13 Thread Baz
Sorry, I thought your tabs were ajax. Since they're not...I'm not sure what the problem is. A new view should be loaded when you call a new action, provided that these views and actions are implemented. I suggest you read the blog tutorial again. -- Kevin Lloyd 3HN Designs http://www.3HNDesigns.c

Re: Need ideas on using cake in a tabbed design.

2008-01-13 Thread Chris Hartjes
On Jan 13, 2008 1:06 PM, Novice Programmer <[EMAIL PROTECTED]> wrote: > Hello Kevin, > > Thanks for the help. but i probably did not explain the problem properly. > The problem is that view changes on clicking the tab. So I want to replace > the existing view with the new one when the tab is click

Re: Need ideas on using cake in a tabbed design.

2008-01-13 Thread Novice Programmer
Hello Kevin, Thanks for the help. but i probably did not explain the problem properly. The problem is that view changes on clicking the tab. So I want to replace the existing view with the new one when the tab is clicked. i hope this clears the issue. Thanks. On 1/13/08, Baz <[EMAIL PROTECTED]>

safe mode error

2008-01-13 Thread eid
My cake frontpage is throwing me an error: "Warning (2): realpath() [function.realpath]: SAFE MODE Restriction in effect. The script whose uid is 1235 is not allowed to access /usr/ local/lib/php owned by uid 0 [CORE/cake/libs/configure.php, line 458]" When I used the pre-beta version this error

Re: how display result in view with $this->$Modelname->Query("")

2008-01-13 Thread Made Aditiya Jaya
On Jan 11, 2008 10:26 PM, Pablo Viojo <[EMAIL PROTECTED]> wrote: > Try Model::findCount[1] > > $this->Customer->findCount(); > > > -- > Pablo Viojo > [EMAIL PROTECTED] > http://pviojo.net > > [1] > http://api.cakephp.org/1.2/class_model.html#0978aba07f5d196079d7518a99bcfa86 > > > > > > On Jan 11,

Re: Is it possible to validate a file upload?

2008-01-13 Thread davidpersson
I implemented such a validation method in one of the classes I'm using for my project: See Source: https://cakeforge.org/plugins/scmsvn/viewcvs.php/trunk/vendors/transfer.php?rev=74&root=attm&view=markup Scroll down to: /** * Checks if given data is valid */ pri

Session db - format

2008-01-13 Thread cronet
Hi, it's more a general question, not directly cake related. If I store a Session in my db, the "data" field looks like: Config|a:3:{s:9:"userAgent";s:32:"c8cea9c1eac13b66616ef07d94528a70";s: 4:"time";i:1199123052;s:4:"rand";i:1343036056;}Message|a:0:{}ref|s: 12:"/users/index";ref1|s:13:"/user

Session db - format

2008-01-13 Thread cronet
Hi, it's more a general question, not directly cake related. If I store a Session in my db, the "data" field looks like: Config|a:3:{s:9:"userAgent";s:32:"c8cea9c1eac13b66616ef07d94528a70";s: 4:"time";i:1199123052;s:4:"rand";i:1343036056;}Message|a:0:{}ref|s: 12:"/users/index";ref1|s:13:"/user

Web App Security Books

2008-01-13 Thread codecowboy
Does anyone recommend some books that cover web application security? Thank you, CodeCowBoy --~--~-~--~~~---~--~~ 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: Need ideas on using cake in a tabbed design.

2008-01-13 Thread Baz
http://groups.google.com/group/cake-php/web/frequent-discussions Go to this section: *How to display more views/blocks in a single page?*-- Kevin Lloyd 3HN Designs http://www.3HNDesigns.com/ (214) 473-4207 On 1/13/08, Novice Programmer <[EMAIL PROTECTED]> wrote: > > Hello All, > > I am having a m

Re: Model/controller naming question - object name ends in 's' :

2008-01-13 Thread SeanW
I think you want to look at custom inflection: http://tempdocs.cakephp.org/#TOC41977 And yes, the plural of "lens" is "lenses". Sean On Jan 12, 4:08 pm, Tim <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm a newbie to CakePHP, and a relative newbie to php. CakePHP looks > like just what I was loo

sessions being dropped on redirect or whenever i call a new page

2008-01-13 Thread Grainne
Hi, Hope you are all having enjoyable weekends... I'm certain I'm missing something obvious - but I have spent days trying to figure out what - so I thought I'd ask. My sessions are being dropped when or if I just go to a new page. I am using beta 1.2 I checked for whitespace outside of my mode

Need ideas on using cake in a tabbed design.

2008-01-13 Thread Novice Programmer
Hello All, I am having a main page in which i have 5 tabs. I load one tab by default. so what i have done is that i map the root to one of the actions in the main page controller. so when the website loads, that controller gets called and calls up the specified routine. Now what i want is that whe

Re: bakery search fixed!!

2008-01-13 Thread powtac
Good idea! --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more opti

Re: Login et Register on bakery problem

2008-01-13 Thread powtac
This seems to be a widely known problem: http://groups.google.com/group/cake-php/search?group=cake-php&q=login+bakery&qt_g=Search+this+group --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to

Re: Manual query with multidimensional associative array results

2008-01-13 Thread AD7six
On Jan 13, 5:10 am, Joshua <[EMAIL PROTECTED]> wrote: > I've been working at this for a while and I hope somebody here can > help me. I need to execute a manual query instead of using findAll and > I would really like the results to be formatted as if I used findAll - > it'll save me quite a bit

Re: PHP has encountered a Stack overflow

2008-01-13 Thread AD7six
On Jan 12, 11:45 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I'm not getting stack overflow, but i'm getting the redeclare paths() > error. Am downloading new version of basics.php now. Any other ideas > on this? I doubt downloading an updated basics.php file will do anything. Updating

Manual query with multidimensional associative array results

2008-01-13 Thread Joshua
I've been working at this for a while and I hope somebody here can help me. I need to execute a manual query instead of using findAll and I would really like the results to be formatted as if I used findAll - it'll save me quite a bit of extra work! I can get all the data I need but it's not as ea

Working ACL Example?

2008-01-13 Thread fael
I've read and made several ACL examples, but somehow every one of them has an issue and I simply can't make it work. http://bakery.cakephp.org/articles/view/how-to-use-acl-in-1-2-x ^ Seems old and confusing http://bakery.cakephp.org/articles/view/real-world-access-control ^ Simple, beautiful exam