$ajax-remotetimer question

2008-10-25 Thread [EMAIL PROTECTED]
can i use multiple time $ajax-remotetimer in singal layout? --~--~-~--~~~---~--~~ 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

decrypt password

2008-10-25 Thread [EMAIL PROTECTED]
hi, i m encrypted my password with $this-Auth-password ,but noe i want to decrypt that password , how can i do that? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Re: A case study of a real-world migration to CakePHP 1.2

2008-10-25 Thread Daniel Hofstetter
Hi Martin, I am in the process of migrating my very first CakePHP application to 1.2. I decided to try to keep track of my migration steps in a case- study. Considering how much CakePHP has evolved and also how many beginner- mistakes I have put into this application, this migration will

Re: decrypt password

2008-10-25 Thread Bernhard J. M. Grün
Hi! This is impossible as CakePHP uses a hash function to encrypt them. A hash function is a one way function. So there is no way to decrypt them again. -- Bernhard J. M. Grün 2008/10/25 [EMAIL PROTECTED] [EMAIL PROTECTED]: hi, i m encrypted my password with $this-Auth-password ,but noe i

Re: decrypt password

2008-10-25 Thread Daniel Hofstetter
Hi, i m encrypted my password with $this-Auth-password ,but noe i want to decrypt that password , how can i do that? You can't, because a hash function is used to encrypt your password. And from a hash value you can't get back the original value by design. Why do you want to decrypt the

Problem with Multivalidatable on hosted service ...

2008-10-25 Thread Rob
I have an application that is working fine on my local machine using the behavior of Multivalidatable (see http://bakery.cakephp.org/articles/view/multivalidatablebehavior-using-many-validation-rulesets-per-model) When I run it from my local machine (where I have control of the httpd.conf), it

CLI has stopped working

2008-10-25 Thread Carlos
Hello everybody Since yesterday, everytime I try to cake bake views my windows vista box come with the following error: CLI has stopped working does anybody know about that issue? thanks a lot Carlos --~--~-~--~~~---~--~~ You received this message because you

Re: External Referer URL in CakePHP Page Header Issue

2008-10-25 Thread Raph
What about http and https? I'm using the language controller form: http://bakery.cakephp.org/articles/view/p28n-the-top-to-bottom-persistent-internationalization-tutorial, and in change method there is, a line: $this-redirect($this-referer(null, true)); The problem is if I use my app via https

Re: A case study of a real-world migration to CakePHP 1.2

2008-10-25 Thread teknoid
just a few things off top of my head... - validation rules and new validation options in 1.2 - containable behavior to restrict model bindings - 1.2 rc1+ ... the operators in find() moved to the key side, i.e. ('ModelName.Field LIKE'='apple') - Don't remember for sure how it was in 1.1, but

css menu helper mouseover broken

2008-10-25 Thread rogwei
Hi, I added a comment in the Bakery to the CSS Menu Helper page here: http://bakery.cakephp.org/articles/view/css-menu-helper Here is a duplicate of my comment: #begin comment 4 gap between parent and child breaks menu In IE and Opera, there is a small but visible gap between the parent li and

Disabling Cake's error handling for CLI commands.

2008-10-25 Thread Mathew
Hi, I am working on some controller actions that can only be run from the command line, and if there is a PHP error then cake dumps out error messages wrapped in HTML. When you try to read these error message from the command line it's impossible to see what the error was. Is there a way to

Re: Disabling Cake's error handling for CLI commands.

2008-10-25 Thread Mathew
I think I figured it out. Adding the following to my Cake loader seems to work. define('DISABLE_DEFAULT_ERROR_HANDLING', true); define('CAKEPHP_SHELL', true); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: css menu helper mouseover broken

2008-10-25 Thread Adam Royle
I workaround this problem by defining a different margin-bottom value for IE using conditional styles... !--[if IE] style type=text/css #menu LI { margin-bottom: -3px; } #menu LI UL A { margin-bottom: 5px; } /style ![endif]-- On Oct 26, 12:52 am, rogwei [EMAIL PROTECTED]

Re: Resetting Lost Passwords

2008-10-25 Thread Smelly_Eddie
Thanks Martin. Looks like the same concept, I noticed some things that made me curios. In implementation did you include the functionality within a users component or a separate one dedicated to tickets? Do you have a different method to let logged in users change their credentials? I am going

Can't access the User's associated model with AuthComponent

2008-10-25 Thread gravyface
Hello, I have User hasOne Profile and Profile belongsTo User set up as associated models. I'm using the AuthComponent to to do simple/basic authentication; my login action is empty. When authenticating, the Profile model data is retrieved along with the User model data (I see it in my debug

Set::extract issue - array must start with [0] index

2008-10-25 Thread senser
Hello, I have problem using Set::extract class. Here is an example array $test: Array ( [3181] = Array ( [Sync] = Array ( [id] = 3181 [synced] = 0 ) ) On this array Set::extract('/Sync[id=3181]', $test)

BelongsTo work using bind but not on model

2008-10-25 Thread nanomag
Hi, I've got 3 tables users, events and user_has_events In my model user, I have added the relation hasmany on user_has_events, did same thing on event model. user_has events must have 2 relations belongsTo. Each record in this table have one and only one event and one and only one user I've

Tags implementation

2008-10-25 Thread bookme
Hi, I want to implement tag functionality for my site. I have four modal 1 Tag 2 User 3 Brand 4 Product 5 Post I am thinking to make two tables tags : id, tag_name entities_tags : tag_id, entity_id, entity_type here entity is User, Brand, Post and their corresponding ids.. Should I follow

Re: Problem with Multivalidatable on hosted service ...

2008-10-25 Thread Dardo Sordi Bogado
Hi Rob, it seems that the behavior isn't being attached to your model. Try putting a die(Multivalidatable) at the begining of the multivalidatable.php. If that kills your app, then it's beign loaded, then add a die() in Multivalidatable::setUp() function setUp($model, $config = array()) {

Re: Hosting

2008-10-25 Thread djXternal
I just recently switched from GoDaddy, as they have a massive lack of support for cake, to WestHost.com. I have been extremely pleased with WestHost so far, and cake works like a dream. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Cakephp shell configuration

2008-10-25 Thread majna
http://cakephp.org/screencasts/view/6 ? On Oct 25, 7:47 am, mirfan [EMAIL PROTECTED] wrote: Hi, I am using windows XP 2002 i am not able to configure shell please help me to do so --~--~-~--~~~---~--~~ You received this message because you are subscribed to

How to use Components in Views?

2008-10-25 Thread [EMAIL PROTECTED]
Hi, Must be extremely simple but I've searched all around the docs and I just can't seem to find it, but how do I use component code in a view? I've made a component to handle settings from a DB, so in my views, I want things like: if ($component-settings['status'] == '1') { echo

Re: Wampserver and Cake Bake

2008-10-25 Thread soldier.coder
Ok, I got 3 suggestions for you: 1) write a simple php script that echos hello and run it from a CMD box. Does it run? if not find out the path to where your php runs from and add it to your path. 2) add to your path the path to the console section of your cake app. I have an app called

Is the cookbook broken, or is it just me?

2008-10-25 Thread Brenda
I'm trying to access the cookbook at http://book.cakephp.org/, but all I see is a bunch of 'This section is yet to be written.' It worked fine last night. Perhaps someone is working on it, or is it just me? Thank you for your help. --~--~-~--~~~---~--~~ You

book.cakephp is down

2008-10-25 Thread jjh
Sorry, I don't know who to report about http://book.cakephp.org/ being down so I just leave a message here. I see This section has yet to be written all over the place. Cake is awesome! --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: book.cakephp is down

2008-10-25 Thread Gwoo
#cakephp on irc.freenode.net is the place to report. We are working on the problem. Should be back up very soon. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Re: Is the cookbook broken, or is it just me?

2008-10-25 Thread Jared
Not just you. I can't see anything either. Bummer. On Oct 25, 2:56 pm, Brenda [EMAIL PROTECTED] wrote: I'm trying to access the cookbook athttp://book.cakephp.org/, but all I see is a bunch of 'This section is yet to be written.' It worked fine last night. Perhaps someone is working on it,

Re: Is the cookbook broken, or is it just me?

2008-10-25 Thread Gwoo
We are working on fix. Should be back up soon. --~--~-~--~~~---~--~~ 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

Re: Need help getting site to work

2008-10-25 Thread Ozzy OG Kush
I'm using CakePHP 1.1, and Apache 2.2. On Oct 24, 4:45 pm, Ozzy OG Kush [EMAIL PROTECTED] wrote: Here's my situation. I have my site (http://www.phillynorml.org/) set up in a production environment (index.php, .htaccess, img, css, js, etc in ../DocumentRoot, everything else in ../cake, and

Re: Disabling Cake's error handling for CLI commands.

2008-10-25 Thread Gwoo
you can use Debugger::output('txt') --~--~-~--~~~---~--~~ 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 [EMAIL

Re: How to use Components in Views?

2008-10-25 Thread Gwoo
Actually, it is not simple because it would be wrong to use a component in the view. This is why you cannot find the information in the docs. If you need some data you can set it in the beforeRender callback. --~--~-~--~~~---~--~~ You received this message because

How should I implement two login Section 1: User Login 2: Business Login

2008-10-25 Thread [EMAIL PROTECTED]
Hi, I am working on a site and want to implement two types of users with different logins like: http://www.naukri.com/ 1. User Login 2. Business Login There are three ways of doing this 1) We can have only one users table and using $userScope we distinguish between both type of logins .. but

Re: How should I implement two login Section 1: User Login 2: Business Login

2008-10-25 Thread RyOnLife
I've got a similar need in the app I am working on and elected to go with the single users table. Working with two instances of Auth sounds messy. $this-Auth-userScope = array('Model.field' = 'value'); You can set 'field' to something like 'group_id' and have a 'groups' table. If the degrees

Re: How to use Components in Views?

2008-10-25 Thread RyOnLife
I've set a few configurations in my core.php: Configure::write('site_id', 1); Which you can get at from your views: ?php echo Configure::read('site_id') ? -- View this message in context: http://n2.nabble.com/How-to-use-Components-in-Views--tp1377006p1377198.html Sent from the CakePHP

Re: Is the cookbook broken, or is it just me?

2008-10-25 Thread Brenda
Thank you so much. Your efforts on a Saturday night are much appreciated! May the rest of your evening be peaceful. On Oct 25, 6:33 pm, Gwoo [EMAIL PROTECTED] wrote: We are working on fix. Should be back up soon. --~--~-~--~~~---~--~~ You received this message

Load Data from other table

2008-10-25 Thread thatsgreat2345
I am making a site and for the index, and contact, and TOS, and other stuff I have it running on GeneralController. I may end up selling the script and so Site Name is saved in the General table. Is there an OOP way to access the General table with out defining a $hasone/$belongsto or anything

Re: Tags implementation

2008-10-25 Thread RyOnLife
I'm having some trouble with save/delete HABTM myself, but I can at least help you on your table design. Following Cake conventions (plural, lowercase, abc order) and assuming you want everything taggable, your join tables would be: tags_users (tag_id, user_id) brands_tags (brand_id, tag_id)

Re: css menu helper mouseover broken

2008-10-25 Thread Dardo Sordi Bogado
It's a well known IE rendering bug (also the solution is well known), just google it... On Sat, Oct 25, 2008 at 3:14 PM, Adam Royle [EMAIL PROTECTED] wrote: I workaround this problem by defining a different margin-bottom value for IE using conditional styles... !--[if IE] style

Re: Is the cookbook broken, or is it just me?

2008-10-25 Thread jjh
Cookbook is back up now... Thank you Cake Team. On Oct 25, 3:58 pm, Brenda [EMAIL PROTECTED] wrote: Thank you so much. Your efforts on a Saturday night are much appreciated! May the rest of your evening be peaceful. On Oct 25, 6:33 pm, Gwoo [EMAIL PROTECTED] wrote: We are working on fix.

Re: Load Data from other table

2008-10-25 Thread RyOnLife
If it's something as simple as a site name, http://n2.nabble.com/How-to-use-Components-in-Views--tp1377006p1377198.html this might help. Just use 'site_name' instead of 'site_id' and that will do the trick. thatsgreat2345 wrote: I am making a site and for the index, and contact, and

Re: Load Data from other table

2008-10-25 Thread thatsgreat2345
Thanks, but I totally forgot about the $uses variable. On Oct 25, 4:18 pm, RyOnLife [EMAIL PROTECTED] wrote: If it's something as simple as a site name,http://n2.nabble.com/How-to-use-Components-in-Views--tp1377006p137719... this  might help. Just use 'site_name' instead of 'site_id' and

Re: Wampserver and Cake Bake

2008-10-25 Thread soldier.coder
One more thing... It is hard to diagnose the problem without seeing the exact symptoms. Could you post the exact text of the error? And... do you have a prior version of MySql running as a service? Just some thoughts. On Oct 24, 5:41 pm, Merk [EMAIL PROTECTED] wrote: Hi, I have an

not understanding simple HABTM save/delete

2008-10-25 Thread RyOnLife
After spinning my wheels for a few hours on this one, any help would be very appreciated... I have an 'Item' model: class Item extends AppModel { var $name = 'Item'; var $hasAndBelongsToMany = 'Label'; } A 'Label' model: class Label extends AppModel { var $name = 'Label'; var

Filter HABTM associations

2008-10-25 Thread lazyeye
Here is my table setup: posts id name ... tags id parent_id name ... posts_tags id post_id tag_id I want to be able to filter posts by their associated parent tag. So for example I want to be able to request all posts with an associated tag whose parent tag has an id of 1. Currently I am

Re: Hosting

2008-10-25 Thread tracyfloyd
I recently got into a Liquid Web VPS (www.liquidweb.com) and it has been great for me. Great support as well. I have a TextDrive account and second the comment on those guys being great, They are smart folks who really know their stuff. Let us know what you decide and how it goes...