Re: Change Auth component will solve hash without salt?

2008-09-10 Thread Yodi Aditya
Hey, dude. Thanks, that's right sha1 is default hashing in auth component. i just convience that using correct hashing sha1 in my controller using beforeFilter(). But, I say before, security.salt needed not only for Auth but hashing cookies too. Disable security.salt is a bad solution. I'm login

Re: Transaction in cakephp is just for one table?

2008-09-10 Thread [EMAIL PROTECTED]
well, is there any way to rollback the whole change on every table? I don't want to call commit/rollback on every model. On Sep 10, 12:54 am, "Anuj Chauhan" <[EMAIL PROTECTED]> wrote: > yes exactly. > > On Wed, Sep 10, 2008 at 1:10 PM, [EMAIL PROTECTED] < > > [EMAIL PROTECTED]> wrote: > > > Thank

Re: Need help on Install

2008-09-10 Thread Brett Wilton
> If we cannot use http://www.example.com why are they telling us to use it? Take a glance at this link Jerry, http://en.wikipedia.org/wiki/Example.com example.com is reserved for documentation use for this exact purpose i.e. www.itsjustanexample.com --- Brett Wilton http://wiltonsoftware.com

Re: Help with installation cakephp on xamp package

2008-09-10 Thread Brett Wilton
If your not getting any fonts and colors i.e. the CSS and image files are not getting read then you may have forgotten to place the .htaccess file in the /caketest directory. That file and the index.php need to be in the root directory. If this is not the error you will need to further explain y

Re: Help with installation cakephp on xamp package

2008-09-10 Thread Donkeybob
could you post some of the errors you're getting? that could help us, help you. On Sep 10, 7:02 pm, gabriel <[EMAIL PROTECTED]> wrote: > Hi, all. I have been reading a book by APRESS, called 'Beginning > CakePHP from novice to Professional' in it, it says that if you have > installed cake, and ge

Help with installation cakephp on xamp package

2008-09-10 Thread gabriel
Hi, all. I have been reading a book by APRESS, called 'Beginning CakePHP from novice to Professional' in it, it says that if you have installed cake, and get the starting up screen without the fonts and colours on the page working then, there is an error. Cake will work but the scaffolding and oth

Yorkshire cakers

2008-09-10 Thread simonb
Anyone in the dewsbury, England, West Yorkshire area who has used cake? --~--~-~--~~~---~--~~ 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 fr

Re: XML return type in HABTM queries

2008-09-10 Thread GTM
Ok ... don't do what I did - if you're passing data to an XML view, MAKE SURE it's in the form of an associative array. He'res the break down of my problem. In my controller, I did $result = $this->Post->Tag->Find. That of course gave me a $result that looked something like: Array ( ['Tag']

Re: Caching ACL in Session

2008-09-10 Thread Marcin Domanski
If i were you i would think "how can i use sessions in components ? hmmm let me think... auth component stores info in session - maybe ill look at its source and find out ?" not long after i would find mysqlf on one of the greatest resources : The API http://api.cakephp.org/1.2/class_auth_compone

Caching ACL in Session

2008-09-10 Thread Marcus J. Ertl
Hi! I'm just trying to cache the results of acl's check in the session. I have written a new component, inheriting from DbAcl: class CachedAclComponent extends DbAcl { function check($aro, $aco, $action = "*") { return parent::check($aro, $aco, $action); $key = 'CachedAcl

Re: Trying to use Auth + Acl...

2008-09-10 Thread nachopitt
By looking at your code, I can see that you are defining all of your models to be "controlled". Is that a different way to control your objects, being the models to be the ACOs insted of the pairs 'controllers-actions'? Also, I see that you pretend to have groups inside groups, but you are return

Re: Missing Database Table

2008-09-10 Thread Luiz Poleto
"In the app/config/core.php do you have the debug set to 0 or 1 if it is set to zero set it to 1,2, or 3 as this will keep refreshing your cache. >From what I have learned in the short time I been learning Cake the cache doesn't refresh as much will in production mode (debug set to 0) to help speed

Re: Still working on CAKE install uner xampp

2008-09-10 Thread scs
When any site tells you to go to www.example.com www.example.net www.example.org or example.com and so on they are telling to go to what ever your domain is if the server is live on the net your to what ever your IP address is for the server if on a network or Localhost if its on the computer you

Re: Missing Database Table

2008-09-10 Thread Luiz Poleto
I've been having a few problems with Cake 1.2.0.7296 RC2 internal cache. If i change something in the database, those changes are not reflected in Cake, what causes a lot of error.Actually nothing to worry too much, since deleting the cache files is solving it. But i'm concerned about how far this

Re: Missing Database Table

2008-09-10 Thread teknoid
Why is that a problem? It works exactly as it should... If you do not wish to cache your models, you can disable it in core.php (you shouldn't disable cache in production). On Sep 10, 2:20 pm, "Luiz Poleto" <[EMAIL PROTECTED]> wrote: > I've been having a few problems with Cake 1.2.0.7296 RC2 inte

Re: Missing Database Table

2008-09-10 Thread scs
In the app/config/core.php do you have the debug set to 0 or 1 if it is set to zero set it to 1,2, or 3 as this will keep refreshing your cache. >From what I have learned in the short time I been learning Cake the cache doesn't refresh as much will in production mode (debug set to 0) to help speed

Re: PolymorphicBehavior Questions

2008-09-10 Thread Mark
Oops, that's what I meant to say (apps/models/behaviors). And yes, I'm using 1.2. Thanks again Mark (IRC?), for the tip :) Mark On Sep 10, 9:44 am, mark_story <[EMAIL PROTECTED]> wrote: > Scaffolding will not use any behaviors.  It uses table schema's to > generate the forms. You would need to b

Validation for saveAll not returning messages

2008-09-10 Thread Lane
Hello, I'm trying to use saveAll to save multiple records of a model in one form. Everything works fine as far as saving and validation goes except for one little problem. If the data entered does not validate, the validationErrors array that is returned does not contain the fields or the error

XML return type in HABTM queries

2008-09-10 Thread GTM
Has anyone run across a situation with XML HABTM query results where the XML differs from the std results?I have a Post, Tags scenerio. I'm using a RequestHandler setup so /post/index.xml returns: ... That's good. But when I do a $this->Post->Tags->Find I get: ... I didn't

Re: bakery not taking comments?

2008-09-10 Thread Omar
I have the same problem. For example I want to know How I can import from memory images with TCPDF, for example an image generated by JPGRAPH ,in FPDF is possible. I try to leave a question but it's impossible. qwanta ha escrito: > Not sure if this is the best place to report this, but I couldn'

Re: Missing Database Table

2008-09-10 Thread forrestgump
Luiz Poleto Yea i checked my tables and all they were all perfect i tried the delete the cache solution by bonitarunner, tht did the trickman cake is wierd Thanks a lot guys.saved me a lot of time. On Sep 10, 8:07 pm, "Luiz Poleto" <[EMAIL PROTECTED]> wrote: > Gump, > Is thi

Re: Getting all (*) fields with Containable?

2008-09-10 Thread Mariano Iglesias
$this->Post->contain('Comment') the_woodsman wrote: > Hi, > > I want to contain() certain Models and get all their fields, rather > than explicitly mention every field. > For example, the example in the cookbook: > >1. $this->Post->contain('Comment.author'); > > I want to do something like $t

Getting all (*) fields with Containable?

2008-09-10 Thread the_woodsman
Hi, I want to contain() certain Models and get all their fields, rather than explicitly mention every field. For example, the example in the cookbook: 1. $this->Post->contain('Comment.author'); I want to do something like $this->Post->contain('Comment.*') so that I can be picky in some mode

Re: PolymorphicBehavior Questions

2008-09-10 Thread mark_story
Scaffolding will not use any behaviors. It uses table schema's to generate the forms. You would need to bake and edit the files manually. Behaviors go in app/model/behaviors And you need to be using 1.2 for behaviors to work at all. -Mark On Sep 10, 3:23 am, Mark <[EMAIL PROTECTED]> wrote: >

Re: Bakery Plan

2008-09-10 Thread mark_story
I think my point has been proven :) But I too love cheescake, and ice cream cake which is the emperor if all cakes! -Mark On Sep 10, 10:01 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Yum... I've been drooling over the looks of this one for a while, > haven't taken the time to actually

Re: Default Date Format

2008-09-10 Thread villas
This example may help: http://book.cakephp.org/view/189/Automagic-Form-Elements echo $form->input('birth_dt', array( 'label' => 'Date of birth' , 'dateFormat' => 'DMY' , 'minYear' => date('Y') - 70 , 'maxYear' => date('Y') - 18 )); On Sep 10, 5:10 pm, shabba <[EMAIL PROTECTED]> wrote: > Thats

Re: Default Date Format

2008-09-10 Thread shabba
Thats all very well, but i want to set it in $form->input On Sep 9, 7:03 pm, "Yodi Aditya" <[EMAIL PROTECTED]> wrote: > use date function. in controller. > for example, date('Y-m-d H:i:s') > > On 9/8/08, shabba <[EMAIL PROTECTED]> wrote: > > > > > How do you set the default formatting for date. I

Re: Trying to use Auth + Acl...

2008-09-10 Thread avairet
Ok, nobody answers... So, one error I've made is to call AuthComponent before AclComponent in $components array ! And another error is to not authorize an action called by a requestAction()... Hope this help! On 10 sep, 14:13, avairet <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to use Aut

Re: Problem with MySQL query

2008-09-10 Thread RichardAtHome
Post your query code :-) On Sep 10, 3:17 pm, krzysztofor <[EMAIL PROTECTED]> wrote: > Hello everybody. I'm begginer with CakePHP. The MySQL query is > genereting in a wrong way: > > Query: > SELECT `Option`.`id`, `Option`.`menu_id`, `Option`.`parent_id`, > `Option`.`page_id`, `Option`.`order`, `O

Re: How do I catch autoComplete input control contents being cleared?

2008-09-10 Thread Gustavo Carreno
Hey Ian, I'm guessing that it's more of a Javascript thing you're looking for. I'm assuming that the JS that is produced to trigger the AJAX call for the afterUpdateElement does not check for empty but it could if you have a look at it. Cheers, Gus 2008/9/10 Ian M. Jones <[EMAIL PROTECTED]>: >

Re: Missing Database Table

2008-09-10 Thread Luiz Poleto
Gump, Is this message correct? "Error: Database table itemss for model Items was not found." Look at table name the message show: itemss. If that is the message Cake has shown, then something is not properly configured, like the model class, for example. Regards, Luiz Poleto 2008/9/10 bonitaru

AW: Still working on CAKE install uner xampp

2008-09-10 Thread Liebermann, Anja Carolin
Hi, I think you are faring quite well at the moment. If you want to see your website under a real domain name you have to set up a DNS server, or get your page registered with one. However so long as you are just developing with it, don't bother with it. It will work as soon as your files are

Re: Missing Database Table

2008-09-10 Thread bonitarunner
Gump...Exact same thing happened to me! Very frustrating. I am absolute beginner (following same todo example) but here is what I did to get it to work. 1) Made another database called apress (not cake), then made items table in phpAdmin, put same fields as in example. Finally, changed databa

How do I catch autoComplete input control contents being cleared?

2008-09-10 Thread Ian M. Jones
Hi there, first time posting to this list I think, but I have read many great answers on this list while working with CakePHP, so thanks are due to all those who help others out here. I expect this is something really easy, but I can't find the answer... When using the $ajax->autoComplete in

Problem with MySQL query

2008-09-10 Thread krzysztofor
Hello everybody. I'm begginer with CakePHP. The MySQL query is genereting in a wrong way: Query: SELECT `Option`.`id`, `Option`.`menu_id`, `Option`.`parent_id`, `Option`.`page_id`, `Option`.`order`, `Option`.`extension_name`, `Option`.`extension_args`, `Option`.`menu` FROM `fk3_options` AS `Optio

Re: Html Helper

2008-09-10 Thread Luiz Poleto
Also, forget about using 'FanType/fantype_name'. Although it's still supported, now the correct way to use it is 'FanType.fantype_name'. Regards, Luiz Poleto 2008/9/10 nayan <[EMAIL PROTECTED]> > > I am using cake 1.2 .When i use "echo $html->input('FanType/ > fantype_name')" in my form.it give m

Re: Need help on Install

2008-09-10 Thread Jerry Ross
Also, replying to RichardAtHome, CAKE's installation instructions tell us to: 3.3.1 Development a.. Just place your cake install inside your web server's document root. For example, assuming your web server's document root is /var/www/html, a development setup would look like this on the fil

Re: Bakery Plan

2008-09-10 Thread [EMAIL PROTECTED]
Yum... I've been drooling over the looks of this one for a while, haven't taken the time to actually make it yet :D http://smittenkitchen.com/2008/08/chocolate-peanut-butter-cake/ On Sep 10, 3:12 am, "Marcin Domanski" <[EMAIL PROTECTED]> wrote: > i love cheesecake!http://www.instructables.com/id

Still working on CAKE install uner xampp

2008-09-10 Thread Jerry Ross
1. xampp is up and running so I have apache and myql running services 2. I still struggling to make any sense of CAKE's arcane installation directions I jave gone back to the CAKE manual: "3.2.2 Permissions: /app/tmp directory for a number of different operations. Model descriptions, cached vi

Re: Html Helper

2008-09-10 Thread Donkeybob
yes . . .just as john said . . .its $form->input. On Sep 10, 9:22 am, John David Anderson <[EMAIL PROTECTED]> wrote: > On Sep 10, 2008, at 1:35 AM, nayan wrote: > > > > > I am using cake 1.2 .When i use "echo $html->input('FanType/ > > fantype_name')" in my form.it give me the following error > >

Re: Html Helper

2008-09-10 Thread John David Anderson
On Sep 10, 2008, at 1:35 AM, nayan wrote: > > I am using cake 1.2 .When i use "echo $html->input('FanType/ > fantype_name')" in my form.it give me the following error > "Method HtmlHelper::input does not exist [CORE\cake\libs\view > \helper.php, line 148]".can we use html helper in cake 1.2 ? Ye

Html Helper

2008-09-10 Thread nayan
I am using cake 1.2 .When i use "echo $html->input('FanType/ fantype_name')" in my form.it give me the following error "Method HtmlHelper::input does not exist [CORE\cake\libs\view \helper.php, line 148]".can we use html helper in cake 1.2 ? --~--~-~--~~~---~--~~ Y

PolymorphicBehavior Questions

2008-09-10 Thread Mark
It doesn't seem to want to let me post comments in the bakery, so..posting this here instead. --- QUESTIONS: Anyway, two questions. One, is this supposed to work in scaffolding? I have "Users", which are broken into "Employers" and "Workers". When I view a user, it doesn't pull up any of the rela

Re: find() and deeper associations

2008-09-10 Thread teknoid
Just to clarify, the solution works for any association, we just use hasOne to trick cake into building a JOIN query, but as you see in the example we are using models from hasMany and HABTM. On Sep 9, 1:21 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Sorry, I didn't mention that I use ca

Trying to use Auth + Acl...

2008-09-10 Thread avairet
Hi, I'm trying to use Auth Component and Acl Component and Acl Behavior like that: 1) App_controller: public $components('Auth','Acl'); public beforeFilter() { $this->Auth->userModel = 'User'; $this->Auth->fields = array('username' => 'pseudo', 'password' => 'password'); $this->Auth->log

Re: biggner of cake php

2008-09-10 Thread [EMAIL PROTECTED]
On Sep 9, 11:26 pm, Kenchu <[EMAIL PROTECTED]> wrote: > > Id recommend buying a book. I fully agree with Kenchu. I went through the online tutorials and while they gave a good overview of how CakePHP worked I didn't really learn much. I'm now working through "Beginning CakePHP From Novice to Pro

Re: Need help on Install

2008-09-10 Thread RichardAtHome
> First off read this: http://en.wikipedia.org/wiki/Example.com Example.com is a test domain that you cannot use ;-) On Sep 10, 4:09 am, "Jerry Ross" <[EMAIL PROTECTED]> wrote: > Ooopps!  It was a false positive.  What I actually accidentally got up and > running washttp://myexample.com > > http

Re: CakePHP 1.2: Layout and views design issue

2008-09-10 Thread RichardAtHome
I'll answer b) /app/views/layouts/default.ctp: header markup goes here menu markup goes here markup for footer > if(session) print "hello $user" > else show login link. That's correct :-) Why do you not think this should go in the layout? You could paste the code into an elemen

Re: Organization of view in subdirectory

2008-09-10 Thread Jon Bennett
Hi MArco, > Is it possible to organizate these subdirectory together in a minor > number of directory? You can use $this->viewPath to set a custom directory from the one the controller you are using would expect. http://api.cakephp.org/class_controller.html#2e7373d4aaed7b64c974072e7f2a52f9 hth

CakePHP 1.2: Layout and views design issue

2008-09-10 Thread jkritikos
Hi there, I would like to ask 2 questions, both regarding the layout and views. a) After installing cake 1.2 and accessing my localhost domain, I get to see the cake info page and everything works fine. If i access a url that is lacking the underlying controller or view, I get to see cake's erro

Organization of view in subdirectory

2008-09-10 Thread [EMAIL PROTECTED]
Hi I have this question. I have my web application with many and many subdirectory in the views directory. Is it possible to organizate these subdirectory together in a minor number of directory? --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: Bakery Plan

2008-09-10 Thread Marcin Domanski
i love cheesecake! http://www.instructables.com/id/Cheesecake/ Check out other cake instructables (most of them - very easy to make ;) : http://www.instructables.com/tag/type:id/category:food/keyword:cake/ Of course some people have the best cake ;) http://debuggable.com/posts/workshop-day-2:48c5

Re: Caching help

2008-09-10 Thread Dave J
Hi Kenchu, I'm almost sure this is a hack, but it's been working fine for me so far. If you want your variables to persist in the cached views, set them like this: $this->data['variableName'] = 'variableValue'; You can have a look at the created cached files in the tmp directory to see what Ca

AW: Bakery Plan

2008-09-10 Thread Liebermann, Anja Carolin
I would like a Death-by-chocolate cake. Brownies are also strongly appreciated! Anja -Ursprüngliche Nachricht- Von: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von Donkeybob Gesendet: Dienstag, 9. September 2008 19:25 An: CakePHP Betreff: Re: Bakery Plan can we st

Re: Cake and oracle (Call to undefined method DboOracle::fetchResult())

2008-09-10 Thread Marcin Domanski
you should use the SVN version (the brnaches one) or the nightly HTH, -- Marcin Domanski http://kabturek.info On Tue, Sep 9, 2008 at 9:42 PM, Anthony Smith <[EMAIL PROTECTED]> wrote: > > I was following along a cake tutorial and I get this message: > Fatal error: Call to undefined method DboOra

Re: Transaction in cakephp is just for one table?

2008-09-10 Thread Anuj Chauhan
yes exactly. On Wed, Sep 10, 2008 at 1:10 PM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > Thanks for your reply. > > Not quit understand what you said. Possible I need something like, > > CakePHP->begin() > //Do some update/modification > if (succeed) > CakePHP->commit() > else > CakePHP-

Re: problem with HABTM find

2008-09-10 Thread Okto Silaban
I have the same problem too.. Then how to use this in pagination? Okto.Silaban.Net On Tue, Sep 9, 2008 at 6:48 PM, rob30 <[EMAIL PROTECTED]> wrote: > > $this->Conference->bindModel(array( >'hasOne' => array( > 'ConferencesSphere', > 'FilterSphere' => ar

Re: Transaction in cakephp is just for one table?

2008-09-10 Thread [EMAIL PROTECTED]
Thanks for your reply. Not quit understand what you said. Possible I need something like, CakePHP->begin() //Do some update/modification if (succeed) CakePHP->commit() else CakePHP->rollback() I need the CakePHP->rollback to undo all change regardless of any model I changed. rollback(&$model

Re: Change Auth component will solve hash without salt?

2008-09-10 Thread Okto Silaban
Why do you need to set Security::setHash('sha1') in beforeFilter() function ? CakePHP use sha1 as default encryption. Meanwhile, you can use this In login form : $this->Auth->password($this->data['User']['password']) <-- automatically using sha1 with salt. But if you want CakePHP use no .salt.

Re: Model find() and a BETWEEN clause

2008-09-10 Thread Claudia
It is a bit different from your example but here is how I use between: $startDateCond = array('Event.start_date' => 'BETWEEN ' . UDAYSTART . ' AND ' . (UDAYSTART + MONTH + MONTH)); The resulting SQL is something like: (`Event`.`start_date` BETWEEN '1218405600' AND '1226181600') which works fine.