sorry i mean cake bake freeze.
i mean it will lock up and throw an error after you create your
database config...
On Mar 29, 1:08 am, rocket wrote:
> does anyone else cake bake freeze in windows vista 32bit?
--~--~-~--~~~---~--~~
You received this message because
does anyone else cake bake freeze in windows vista 32bit?
--~--~-~--~~~---~--~~
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,
Some basic question:
Have you configured ROOT (must point to cake folder, if default setup
is not used) properly on webroot/index.php?
look for something like
//define('ROOT', 'FULL PATH TO DIRECTORY WHERE APP DIRECTORY IS
LOCATED. DO NOT ADD A TRAILING DIRECTORY SEPARATOR');
Are you using "sticky sessions" when balancing? (ask your system admin)
Which session.save value are you using (php, database, cache)?
(located on your core.php)
Saludos,
Pablo Viojo
pvi...@gmail.com
http://pviojo.net
(#260 y creciendo!)
Hi, have you looked at
http://book.cakephp.org/view/641/Simple-Acl-controlled-Application.
I think it might just be what you need to understand a way to do so,
that one actions oriented but you could use that concept for your
needs. Good luck!
--~--~-~--~~~---~--~~
logout: thanks for your answer, i'm using mayorly (hah nice word) ajax
calls for my app but there are some not ajax ones and i'm using
requestAction at least one time witch is suggested using it with
cache. I'll try $this->disableCache(); under requestHandler->isAjax
maybe, i'll
look how that work
logout: thanks for your answer, i'm using mayorly (hah nice word) ajax
calls for my app but there are some not ajax ones and i'm using
requestAction at least one time witch is suggested using it with
cache. I'll try $this->disableCache(); under Auth->isAjax maybe, i'll
look how that works. But I t
Hi JamesF, thanks a lot for your answer. I'm kind of new to this hole
framework but at least the mayor part, if not all, of the Auth and Acl
setup got it from book.cakephp.org from reading "Simple Acl controlled
Application" (example applications) and the Auth and Acl components
docs, including th
I've noticed that the Auth component works very strange when it comes
to ajax calls. I think the session is involved here plus the fact that
if you use IE for a browser, it is caching something wrong. So in my
case I put this line:
$this->disableCache();
in the beforeFilter() function in the App
This:
select('Candidate.country_id', array('options' =>
$countries), null, null, true); ?>
should be like this:
input('Candidate.country_id', array('empty' => '--
Select Country--')); ?>
You can also ommit the model name, but it will be lees explanatory.
In case you wonder, the input method
Oh well, I found a solution for those who might be interested heres
what I have done (thanks to this post who helped a lot
http://mark-story.com/posts/view/using-bindmodel-to-get-to-deep-relations?utm_source=rss)
First of all, I`m doing this find in pagination, so there was a little
more to do.
Maybe ACL isn't really needed for this. You could have a users_courses
table that defined the cut-off date.
On Sat, Mar 28, 2009 at 3:49 PM, Dave Maharaj :: WidePixels.com
wrote:
> Can someone help me understand how / if possible to define individual user
> permissions using ACL? Is there a good
I implemented it and it works with one rather important drawback -
HABTM queries are made separately and I think I can't use sort in
pagination.
I was thinking... there's always only one associated instance in this
HABTM relationship (a ticket has only one value of color). If it was
possible to
Hi guys,
I am new to using cakephp and am using a WAMP server on my desktop
computer while running it. I have uncommented the line in httpd.conf
to use the pretty URL's since for some reason even though my
mod_rewrite looks enabled the CSS / images were missing on my cake
start page.
Anyhow, I
this should have been more obvious but
echo $form->input('id', array("type" => "hidden","value" => $this->data
['Model']['id']));
solution made sure my edit form stayed an edit form and didn't lose
it's parameters
On Mar 27, 5:20 pm, JamesF wrote:
> i am having the same problem withvalidationm
didn't know about this method!! gotta try it out
thanks!
On Mar 28, 11:12 am, Smelly Eddie wrote:
> An easier option might be to create the superlist method for the form
> helper. You can call it with much less code and it will show as many
> concatenated fields as you want, and even use cascad
Can someone help me understand how / if possible to define individual user
permissions using ACL? Is there a good site that explains it? I read thru
the Lord of the Rings and see you can define the permissions by hard coding
it. But for my application the permissions need to be created / deleted or
I'm doing a multi-language dictionary.
If multiple terms of language A (TA1, TA2, TA3) have the same
translation in language B, I must take care that all versions of the
term in B (TB1, TB2, TB2) are synchronized.
Could Translate Behavior do this for me?
--~--~-~--~~~-
Translate Behavior should make the creation and modification dates of
the translations automatically, as is done in a model without this
behavior. I expected this feature only writing this in the model: var
$actsAs = array('Translate' => array
('translate_field','created','modified'));
--~--~
Hi
I'm getting this error
Fatal error: Class 'Dispatcher' not found in /var/www/vhosts/
shakethembones.com/httpdocs/index.php on line 87
I've done a search on google and can find a couple of post about
getting this error but no solutions
I have just installed
I've used the instructions here
Hi to all
I am building a multilevel users application, but i don't want to use
the Auth or ACL components, cause they give me so much troubles, i
want to manage to create the whole thing with using my own functions
so i can have different groups of users like Administrators, Managers
and the comm
Hello there, I just subscribed to this group, nice to met you guys
cakephp's addicts.
I'm relatively new to cakephp, like 3-4 months but I just love it,
after 3 years developing solo php, the famous "spaghetti code", start
using and learning cake was just wonderfull. Just a point here, I
heard a
I have 2 models: Candidate & Country. I am using the following code to
extract data from the countries table & passing it to a dropdown on a
view of the CandidatesController.
class CandidatesController extends AppController {
var $name = 'Candidates';
var $uses = array('Candidate', 'Country
Hello Friends,
I am keyur vaghani and working on cake php 1.2.
Please help me out from following issue on cake php 1.2 related to
post values of selected multiple check boxes.
I want to list multiple check boxes with same name on different rows
and post its values as array with selected (checke
I am stuck on a query problem :
These are the tables involved :
Group
id
name
User
id
name
Groups_Users (for HABTM)
id
group_id
user_id
Now i have an admin system that lets the admin view the group and all
the related users.
Which is working fine. However, I want to
On Sat, Mar 28, 2009 at 12:07 PM, Aurelius wrote:
>
> That works only if the model is DIRECTLY associated with Users, but
> not e.g. here:
>
> User hasMany Blogs hasMany Entries
>
> I can't believe theres no standard-function for this, isn't is one of
> the normallest things,
> that there can be
Hi,
I'm writing an open source app, something similar to Trac. I have a
slightly different approach to bug tracking - dynamic "ticket
attributes" - instead of having a few fixed attribs (ticket priority,
severity, component, milestone, etc.), project's owner creates them by
himself. For example
That works only if the model is DIRECTLY associated with Users, but
not e.g. here:
User hasMany Blogs hasMany Entries
I can't believe theres no standard-function for this, isn't is one of
the normallest things,
that there can be User, which have stuff to edit, but ONLY there one
(=99% of big web
It "clearly states" that, does it? Would you mind pointing out that
line? I've just read that section for probably the 5th time and I
don't see it. I'm more than willing to admit that I'm still missing
it, though, as this entire subject has been rather confusing.
On Sat, Mar 28, 2009 at 11:07 AM,
An easier option might be to create the superlist method for the form
helper. You can call it with much less code and it will show as many
concatenated fields as you want, and even use cascading lists. It
overrides the default list method in form helper.
the result is like
Select Name
| - Last
Yes if you read the ACL section of the manual it clearly states to use
null for the top level group.
It is advisable in my opinion to make one group 'entire_site' and give
yourself unfettered access without having to declare things
individually. THis group would have a parent id of nul.
On Mar
It's RBAC. I'm not really equipped to properly address the question,
though. See here:
http://en.wikipedia.org/wiki/Role-based_access_control
And check the links at the bottom of the page.
On Sat, Mar 28, 2009 at 10:35 AM, aranworld wrote:
>
> Some guy left a comment on a blog that said that I
I've never run into this problem before.
I have a very simple cake site that spits out a pretty long table of
data. For whatever reason, when the database gets "too" big, IE stops
displaying the page and gives a "Internet Explorer cannot display the
webpage" message. The page works fine in Firefo
Some guy left a comment on a blog that said that I shouldn't be using
CakePHP, because its use of ACL is very antiquated. The guy was
obviously trying to promote his own PHP framework that uses RABC
instead. After reading about RABC, though, I'm having a bit of a hard
time understanding the diff
Thanks for the suggestion.
I just installed the toolbar and that has what I was looking for. It shows
all the info related to the particular user.
Dave
-Original Message-
From: brian [mailto:bally.z...@gmail.com]
Sent: March-28-09 11:18 AM
To: cake-php@googlegroups.com
Subject: Re: Ge
whoops hit enter too quick:
continuing the function
if ($this->Model->data['Model']['user_id'] == $auth_id ) // make sure
to use == not =
{
//render logic if authorized
}
else
{
$this->redirect('/'); //redirect unauthorized
now this all breaks down w
I guess this would depend on your models, and how they're associated
with a particular User. You could write a routine in
AppModel::beforeSave() that checks for existence of
$data[$this->alias]['user_id'] and, if there, check that against the
session ..
Wait--can't get the session from the model.
first make sure the thing you are saving has a foreign key with the
user id associated with it.
i usually would deny access with the Auth component to the action that
i don't want a non logged in user to use.
simple acl to check if the record belongs to current logged in user:
put some kind of c
Do you mean like this?
$this->User->find(
'first',
array(
'conditions' => array(
'User.id' => $user_id
),
'contain' => array(
'Post',
'Message'
not sure if all of your actions are in app_controller but i noticed
something
function beforeFilter() {
//Configure AuthComponent
$this->Auth->allowedActions = array('display', 'index',
'view');
$this->Auth->authorize = 'actions';
$this->Auth->loginAction = arra
use AppController::beforeFilter()
On Fri, Mar 27, 2009 at 5:01 PM, Jason wrote:
>
> Hi all,
>
> I'm writing a facebook app, using flash & PHP. I need to verify that
> the flash is called inside facebook, therefore I need to call a
> function verify() in PHP which do something to verify that the
when i first started cakephp i used the findby methods because they
seemed intuitive. find 'all' seems to be much more flexible and i use
that instead on most queries.
On Mar 27, 4:00 pm, cpeele wrote:
> Hey guys,
>
> I am trying to just get a list of Products ordered by created desc but
> I can
Thanks a lot for the answer :) By the way, your stories (in your
personal site) became part of my guides through the web programming
jungle. And the disign rocks! :)To be honest, I will hardly find much
time to study any other tool. I want to stick with Cake because of its
very consistent logic a
Hello Friends,
I am keyur vaghani and working on cake php 1.2.
Please help me out from following issue on cake php 1.2 related to
post values of selected multiple check boxes.
I want to list multiple check boxes with same name on different rows
and post its values as array with selected (checke
Hello Friends,
I am keyur vaghani and working on cake php 1.2.
Please help me out from following issue on cake php 1.2 related to
post values of selected multiple check boxes.
I want to list multiple check boxes with same name on different rows
and post its values as array with selected (checke
This should be in your AppController beforeFilter(): $this->Auth-
>loginRedirect = array('controller' => 'users', 'action' => 'cms');
Also what is $Auth, and where is it coming from?
http://www.milesj.me/blog/read/5/using-cakephps-auth-component
--~--~-~--~~~---~--~---
Hello all,
I'm building a search form using the autocomplete helper. i'm doing
the search after some text and everithing is working fine, but i want
the input element, on submit, to submit the id of the specific text
element from the databse. i found here an example to add
afterUpdateElement => g
47 matches
Mail list logo