Re: Change Password

2009-09-30 Thread Flipflops
I think the 'password' only gets automatically hashed if there is a 'username' field set as well (and I regularly forget this). So you tend tend to run into problems when you have a view just to update a password. When I remember I use a bit of code like this and has the new password manually:

Re: javascript link in default.ctp

2009-09-30 Thread lorenx
m, ok... i raised the issue just because the cookbook says not to edit files in cake/ folder... thanks. On Sep 30, 2:12 am, brian bally.z...@gmail.com wrote: On Tue, Sep 29, 2009 at 5:07 PM, lorenx lor...@gmail.com wrote: sure but... is there a way to do it in the app/ area? Do you mean

sample examples not working

2009-09-30 Thread boobalan
Hi All, i've downloaded usermgmt SNO.- 24 sample project but its not working properly link http://cakeforge.org/top/mostactive.php some of them i downloaded and installed there is no use. anybody give some solutions Note: please upload sample projects with some docs.

Re: CPAMF plugin, Auth and Encryption - anyone got any experience?

2009-09-30 Thread designvoid
Guess thats a no then... LOL! If I have any success I'll try and write something for the bakery. t. On Sep 29, 12:11 pm, designv...@gmail.com designv...@gmail.com wrote: Hi there, I'm looking at starting a new project that is going to need to use the CPAMF plugin, CakePHP Auth and

Paginate fat models

2009-09-30 Thread Braindead
I'm currently reworking one of my early Cake applications and I want to follow the fat models - skinny controllers principle. What I don't understand is how to paginate a fat model. Is it true, that I have to use pagination in the controller? Or is there another way? Thanks, Markus

Javascript libraries with images/css inside Cake Plugins

2009-09-30 Thread Elte Hupkes
I'm trying to develop a small backend cms-plugin, which contains some Javascript libraries like jQuery, jQuery-ui and TinyMCE. Doing this I stumbled upon a problem I cannot seem to solve in a good way. jQuery-ui and TinyMCE come bundled with themes, consisting of images and css files. CakePHP

Re: Simple Acl controlled Application Tutorial - Problem with release 1.2.5??

2009-09-30 Thread Eric
I was having the same problem today. I made one change that got rid of the problem, however, since I'm new to Acl I am not sure that the change I made is correct. I changed the line that you have to the following and the fatal error went away. $Controllers =

Re: Containable, Pagination and HABTM

2009-09-30 Thread Jesus Angel
Hi! Did you solve your problem? I think you have a typo in the conditions element: $this-paginate['Group'] = array( 'order' = 'Group.name ASC', 'contain' = array(

book.cakephp.org small problem

2009-09-30 Thread John Morris
IE7 java script errors, gonna guess it has something to do with the plain text view option, because that doesn't show up in IE7. also this is more of a peeve but when code is copied in IE7 it copy's non formatted on a single line, in firefox you get a numbered list the plain text view in firefox

remove authorization from Cakephp form

2009-09-30 Thread swati1231
Hi, I am new to Cakephp Can you please tell me how can i remove authorization from a Cakephp form -- View this message in context: http://www.nabble.com/remove-authorization-from-Cakephp-form-tp25675842p25675842.html Sent from the CakePHP mailing list archive at Nabble.com.

Re: remove authorization from Cakephp form

2009-09-30 Thread Braindead
In the beforeFilter event of your controller you have to use $this-Auth-allow('action_of_your_form'); http://book.cakephp.org/view/563/Setting-Auth-Component-Variables --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: javascript link in default.ctp

2009-09-30 Thread rich...@home
AppController doesn't go in the cake/ folder, it goes in your app folder: /app/app_controller.php class AppController extends Controller { var $helpers = array(Html, Form, Javascript); } On Sep 30, 9:17 am, lorenx lor...@gmail.com wrote: m, ok... i raised the issue just because the

Problem with saving id's

2009-09-30 Thread Xanax
Hi everyone, I've got a little problem with my cake app'. My database is Oracle. Every data saving handled by cake engine works fine. The problem is with a 'manual' saving : $this-User-Planification-create($data_planification);

Re: Doubt in cake php

2009-09-30 Thread theChrisWalker
On the other hand, to answer your question, you can always use: ClassRegistry::init('ModelName')-find(...) to read data from a model in a view. I often use this approach in cached elements, that display things like yesterdays stats where the read access is needed but only once per day then

Re: Problem with saving id's

2009-09-30 Thread John Andersen
I am not sure, but as far as I know, you have to get the new ID from the sequence yourself. Whether you can persuade CakePHP to do it (don't know how, maybe id = your_seq.NEXTVAL) or maybe add a before insert trigger to get the new ID from the sequence (if it can be done!). Enjoy, John On Sep

Method access problem

2009-09-30 Thread swati
Hi, I am getting the following error: Private Method in NominationsController Error: NominationsController::admin_add() cannot be accessed directly. Notice: If you want to customize this error message, create content/ views/errors/private_action.ctp Can you tell me how can i use this

Re: javascript link in default.ctp

2009-09-30 Thread lorenx
mmm, i have just these two: cake/libs/controller/app_controller.php cake/console/libs/templates/skel/app_controller.php On Sep 30, 11:41 am, rich...@home richardath...@gmail.com wrote: AppController doesn't go in the cake/ folder, it goes in your app folder: /app/app_controller.php class

Re: Method access problem

2009-09-30 Thread amol jadhav
Hey.. Baking is good practice to impliment admin methods for CRUD operations. It gives you directly admin_add,admin_edit, admin_view admin_delete methods with completly code. You can it. -- Thanks Regards Amol a...@weboniselab.com --~--~-~--~~~---~--~~

Conditions $quoteValues

2009-09-30 Thread seanislegend
Hi, I'm trying to disable $quoteValues (http://api.cakephp.org/view_source/ dbo-source/#line-1745), but I cannot get it working at all. My finder query looks like this (trimmed down): $this-find('all', array( 'conditions' = array( 'Release.id' = array($release_ids) ) ));

Re: Simple Acl controlled application

2009-09-30 Thread Onezino HEAT
i want the source of this tutorial. my aplication return the follow erros: Warning (512): AclNode::node() - Couldn't find Aro node identified by Array ( [Aro0.model] = User [Aro0.foreign_key] = 3 ) [CORE\cake\libs\model\db_acl.php, line 191] Code | Context $ref= array(

Re: Conditions $quoteValues

2009-09-30 Thread seanislegend
Nevermind, got it! All you need to do is simply put your conditions outside of the find array in $this-conditions. Ch33rz! On Sep 30, 12:56 pm, seanislegend boredofm...@googlemail.com wrote: Hi, I'm trying to disable $quoteValues (http://api.cakephp.org/view_source/ dbo-source/#line-1745),

Re: Conditions $quoteValues

2009-09-30 Thread seanislegend
OK, that actually doesn't work by the looks of it :( On Sep 30, 1:00 pm, seanislegend boredofm...@googlemail.com wrote: Nevermind, got it! All you need to do is simply put your conditions outside of the find array in $this-conditions. Ch33rz! On Sep 30, 12:56 pm, seanislegend

Re: Conditions $quoteValues

2009-09-30 Thread John Andersen
Ok, if I remember correctly, then you just need to change: 'Release.id' = array($release_ids) into 'Release.id' = $release_ids as $release_id is already an array! Enjoy, John On Sep 30, 3:14 pm, seanislegend boredofm...@googlemail.com wrote: OK, that actually doesn't work

Re: Conditions $quoteValues

2009-09-30 Thread seanislegend
Thanks VERY much for your reply, John. $releases_ids was actually a string so all I had to do was replace 'array($release_ids)' with 'explode(,, $release_ids)'. Again, thanks for the tip! Cheers On Sep 30, 1:38 pm, John Andersen j.andersen...@gmail.com wrote: Ok, if I remember correctly, then

Using Pretty URLs on Windows

2009-09-30 Thread Kamran Hameed
Folks i am new to CakePHP. I am going through the manual which assumes that the user is on Linux Or Unix System. I want to ask one question http://book.cakephp.org/view/782/Lighttpd-and-mod_magnet LINK says that in order to use Pretty URLs in cakephp, place this lua script in /

A Query from CakePHP Beginner

2009-09-30 Thread Kamran Hameed
Folks, i am new to CakePHP. I know about PHP and want to learn Cake now. I first started with the standard manual. However, i feel that there is 'too much' to digest in it. I mean can i get some resource, tutorial or book which covers each topic systematically .. i mean i am not saying that the

Re: Release: CakePHP 1.2.5

2009-09-30 Thread robust solution
http://bakery.cakephp.org/articles/rss/news On Sep 18, 3:33 pm, Henrik Gemal henrikge...@gmail.com wrote: Is there a way to get notified about new CakePHP releases? Like a CakePHP announe malinglist? On Sep 9, 5:54 pm, mark_story mark.st...@gmail.com wrote: The CakePHP development team is

Re: Using Pretty URLs on Windows

2009-09-30 Thread Kevin Wentworth
I'm not sure if this is the answer you are looking for, but I highly recommend Isapi Rewrite if you are using IIS on windows: http://www.helicontech.com/isapi_rewrite/ Version 3 supports .htaccess on Windows nearly identical to Apache. Version 2 can work using the instructions here, see

ACL Tutorial Problem

2009-09-30 Thread robmcvey
We are going through the Simple Acl controlled Application Tutorial in the manual. Everything is going fine until we try and run the Automated tool for creating ACOs in this section; http://book.cakephp.org/view/647/An-Automated-tool-for-creating-ACOs When we run this method we get the

Re: javascript link in default.ctp

2009-09-30 Thread m lundvall
You have to create app_controller.php in app/ Don't mess with cake/ directory unless you know what you are doing. // lundvall On 30 Sep, 13:16, lorenx lor...@gmail.com wrote: mmm, i have just these two: cake/libs/controller/app_controller.php

Re: Associating model aliases

2009-09-30 Thread Mario
Ok, I think I found another bit of the puzzle... Problem was wrong: model aliases do retain the associations of the original models, after all. But (thank you John for pointing in that direction) the default value of Model recursive property seems to be 1. If I set it to 2 ?php class Message

Re: javascript link in default.ctp

2009-09-30 Thread lorenx
do i have to create it or to copy cake/libs/controller/ app_controller.php so that cakephp will read mine from now on? On Sep 30, 4:41 pm, m lundvall mrlundv...@gmail.com wrote: You have to create app_controller.php in app/ Don't mess with cake/ directory unless you know what you are doing.

Re: Method access problem

2009-09-30 Thread brian
Did you give it the private keyword? What does the code look like? On Wed, Sep 30, 2009 at 6:50 AM, swati swatitom...@gmail.com wrote: Hi, I am getting the following error: Private Method in NominationsController Error: NominationsController::admin_add() cannot be accessed directly.

Re: javascript link in default.ctp

2009-09-30 Thread brian
On Wed, Sep 30, 2009 at 11:01 AM, lorenx lor...@gmail.com wrote: do i have to create it or to copy cake/libs/controller/ app_controller.php so that cakephp will read mine from now on? Yeah, copy the one in cake/libs/controller to your app dir (not app/controllers/). Then edit that with

Re: A Query from CakePHP Beginner

2009-09-30 Thread Marcelo Andrade
On Wed, Sep 30, 2009 at 8:58 AM, Kamran Hameed camran.ham...@gmail.com wrote: Folks, i am new to CakePHP. I know about PHP and want to learn Cake now. I first started with the standard manual. However, i feel that there is 'too much' to digest in it. I mean can i get some resource,

Re: A Query from CakePHP Beginner

2009-09-30 Thread Kamran Hameed
i think its quite obvious.. On Wed, Sep 30, 2009 at 8:52 AM, Marcelo Andrade mfandr...@gmail.comwrote: On Wed, Sep 30, 2009 at 8:58 AM, Kamran Hameed camran.ham...@gmail.com wrote: Folks, i am new to CakePHP. I know about PHP and want to learn Cake now. I first started with the

Re: A Query from CakePHP Beginner

2009-09-30 Thread Kamran Hameed
thanks any ways for your reply On Wed, Sep 30, 2009 at 8:55 AM, Kamran Hameed camran.ham...@gmail.comwrote: i think its quite obvious.. On Wed, Sep 30, 2009 at 8:52 AM, Marcelo Andrade mfandr...@gmail.comwrote: On Wed, Sep 30, 2009 at 8:58 AM, Kamran Hameed camran.ham...@gmail.com

Re: Problem with saving id's

2009-09-30 Thread brian
Oracle uses triggers to implement auto increment functionality. Cake deals with that but I think it expects the sequence name to be pk_$table_name. Is that what you have? Hmm ... looking at the source, it appears that you can set the sequence name in the model: $model-sequence. On Wed, Sep 30,

Re: Javascript libraries with images/css inside Cake Plugins

2009-09-30 Thread brian
How are you linking the css files? You should only need to preface the file name with 'plugin_name/css/', eg. $html-css('/plugin_name/css/css_filename'); On Tue, Sep 29, 2009 at 6:32 PM, Elte Hupkes ell...@gmail.com wrote: I'm trying to develop a small backend cms-plugin, which contains some

Re: javascript link in default.ctp

2009-09-30 Thread lorenx
ok, i'm going to try. thanks a lot! On Sep 30, 5:46 pm, brian bally.z...@gmail.com wrote: On Wed, Sep 30, 2009 at 11:01 AM, lorenx lor...@gmail.com wrote: do i have to create it or to copy cake/libs/controller/ app_controller.php so that cakephp will read mine from now on? Yeah, copy the

Re: Search-Engine: Extend results with random records if there are no 'real' results

2009-09-30 Thread braaan
you are right, it doesn't make sense, but we've to do it that it looks better. it's a search-engine for a specific sector so every result will statisfy the user (a little bit). therefore i wanted to do it like that. does anyone know how? (with pagination) thank you! On 27 Sep., 18:45, brian

Re: A Query from CakePHP Beginner

2009-09-30 Thread Miles J
Long? I read the whole cookbook in like 5 hours -_- Your best bet is to start alongside the cookbook. Say you start reading about controllers, open up and create a controller and test it out. Then gradually move piece by piece. On Sep 30, 8:55 am, Kamran Hameed camran.ham...@gmail.com wrote:

Re: sample examples not working

2009-09-30 Thread Miles J
Make sure the files you download are supported by the version of Cake you are using. On Sep 30, 1:46 am, boobalan boobal...@gmail.com wrote: Hi All,      i've downloaded usermgmt SNO.- 24 sample project but its not working properly linkhttp://cakeforge.org/top/mostactive.php some of them i

Model association validation

2009-09-30 Thread Daniel
Hi, I'm sorry if this is a silly question, but I just wanted to check this to make sure I get it right from the start. I've just finished building the tables that I'm going to use for my project and am about to use Bake to build the models. Some of the Models have BelongTo associations, i.e.

Help with an array()

2009-09-30 Thread Dave Maharaj :: WidePixels.com
I have a merged array which produces $new = array_merge($newSelections[$model_table],$additional_options); Array ( [0] = Array ( [id] = 9 [name] = Confident [UsersOption] = Array ( [id] = 222

Re: Paginate fat models

2009-09-30 Thread Braindead
That's what I thought. --~--~-~--~~~---~--~~ 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: Help with an array() - SOLVED

2009-09-30 Thread Dave Maharaj :: WidePixels.com
Sorry to post...i figured it out. Dave -Original Message- From: Dave Maharaj :: WidePixels.com [mailto:d...@widepixels.com] Sent: September-30-09 3:23 PM To: cake-php@googlegroups.com Subject: Help with an array() I have a merged array which produces $new =

Help Program Issues on a program I did not write

2009-09-30 Thread mkgour
Hi, I use a great peer evaluation program created by some grad students at University of BC. Unfortunately, with the recession, the students /IT people that created the program I use are no longer on the payroll and I really need help resolving one small issue. The name of the program I use is

SQL SUM function

2009-09-30 Thread DAM
I'm developing web based application. example table create table item{ price decimal(12,2) notnull, } I want to show sum of price.How I can do it? SQL query ( SELECT SUM(price) as price FROM.) but I want to that implement using cakephp. Please help me This is for my university

issues with scaffolding and HABTM on 1.2.5

2009-09-30 Thread Javier
I'm attempting a simple example documented here: http://www.packtpub.com/article/working-with-complex-associations-using-cakephp however, can't get this to work on 1.2.5 I get following message: Notice (8): Undefined index: book_id [CORE\cake\libs\model\datasources \dbo_source.php, line

Re: Help Program Issues on a program I did not write

2009-09-30 Thread brian
Check that the controller's $uses class var includes 'EvaluationMixeval'. If not, and this model is associated with a model that is in $uses, change the line to: $this-TheOtherModel-EvaluationMixeval-setAllEventCommentRelease(...) On Wed, Sep 30, 2009 at 1:12 PM, mkgour mkg...@gmail.com wrote:

Re: A Query from CakePHP Beginner

2009-09-30 Thread Hols Kay
Haha, reading the cookbook took me many, many days ;) Not everybody goes at the same rate. TBH, Kamran, I didn't get very much out of any of the tutorials I found and only really started getting the hang of things after I began an actual application and not just writing sandboxed example code.

Re: SQL SUM function

2009-09-30 Thread Edinei L. Cipriani
Hi, $this-Model-find('all', array('fields' = array('Model.id'.'SUM(Model.price) AS price' )); Regards 2009/9/30 DAM damit...@gmail.com I'm developing web based application. example table create table item{ price decimal(12,2) notnull, } I want to show sum of price.How I

Contain Problem

2009-09-30 Thread Dave Maharaj :: WidePixels.com
I have this: User Model $q = $this-find('first', array( 'conditions' = array( 'User.id' = $auth_id), //'fields' = array('User.id'), 'contain' = array( 'Addition' = array( 'conditions' = array('Addition.id' = $auth_id), 'fields' = array(

Re: 1.3 problem with baking from custom view template

2009-09-30 Thread Johnny
Thanks, i missed those notes in the wiki about the template location when i read through it. I put the template files where they belong and now it works fine. On Sep 30, 12:56 am, mark_story mark.st...@gmail.com wrote: fired that last email off too quickly, also check

Re: SQL SUM function

2009-09-30 Thread brian
But read this post: http://teknoid.wordpress.com/2008/09/29/dealing-with-calculated-fields-in-cakephps-find/ Cake will not put the data for the calculated field under the model name in the data array. Put Teknoid's code in your AppModel and you'll be good to go. On Wed, Sep 30, 2009 at 3:20

Sort returns 1?

2009-09-30 Thread Dave Maharaj :: WidePixels.com
Anyone know why a sort returns 1? Model function: $merged = array_merge ($new_skills, $selected); //debug($merged); $sorted = sort($merged); //debug($sorted); $merged produces Array ( [0] = Cohghol [1] = Shit [2] = Thfghfdgh [3] = Zoo [4] = Alfred [5] =

Password field is automatically hashed, how to change this?

2009-09-30 Thread Mukhamad Ikhsan
I have a password field that when submiting, the value is already hashed. before, I'm not really concider with this problem, but now i realize because of that, the validation for 'notEmpty' is break. Even i enter the empty, Cake automated hashed the empty value so i never get validation error for