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
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
> 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
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
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
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
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
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']
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
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
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
"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
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
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
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
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
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
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
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
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'
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
$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
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
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:
>
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
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
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
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
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
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]>:
>
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
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
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
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
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
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
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
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
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
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
> >
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
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
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
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
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
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
> 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
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
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
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
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
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
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
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
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
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-
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
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
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.
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.
60 matches
Mail list logo