Hi,
I've been researching on ACL, trying to find a way to implement this
to authorize users to access the resources in my application.
I've found several tutorials and articles in the Bakery and other
webs about CakePHP and I think I understand de basis and how to
implement access control
Well, it seems as though Cake is being picky...
In my view which is rendered for the AJAX output, if I have this code,
it works:
div('id1', array('style'=>'display:inline')); ?>
test content 1
divEnd('id1'); ?>
div('id2', array('style'=>'display:inline')); ?>
test content 2
divEnd('id2'); ?>
Ho
Hi all,
Anyone an idea how to unit test a helper method which adds stuff to
the head area of an HTML page (the functionality is similar to
HtmlHelper::css() when $inline is set to false)?
Thanks,
daniel
--
Daniel Hofstetter
http://cakebaker.42dh.com
--~--~-~--~~~--
Ok, I found the answer myself, I have to use View::renderLayout().
Cheers,
daniel
--
Daniel Hofstetter
http://cakebaker.42dh.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this gr
On Sep 10, 11:32 am, Daniel Hofstetter <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Anyone an idea how to unit test a helper method which adds stuff to
> the head area of an HTML page (the functionality is similar to
> HtmlHelper::css() when $inline is set to false)?
Hi Daniel,
1) call method to t
Any ideas?
On Sep 8, 3:49 pm, NicoE <[EMAIL PROTECTED]> wrote:
> Hello everybody.
>
> We are moving a site made with CakePHP from one development server to
> a production server. In the first one, everythink works fine but when
> trying to login in the second one, the following error appears:
>
>
hey everyone,
is there an easy way to read the parent ARO of any given ARO, from
cake-ACL? I didnt see anything about it in the API docs, thus i must
assume its not implemented.. :-(
How do you go about it then?
thanks!
andrew
--~--~-~--~~~---~--~~
You received
As far as I understand, the Auth Component is only half of the story. You
still have to set up all that ACL stuff before hand.
If you're up to the task:
http://lemoncake.wordpress.com/2007/07/15/using-aclbehavior-in-cakephp-12/
then
http://lemoncake.wordpress.com/2007/07/19/using-authcomponent-and
On 9/10/07, Baz <[EMAIL PROTECTED]> wrote:
> As far as I understand, the Auth Component is only half of the story. You
> still have to set up all that ACL stuff before hand.
No - you can simply use the Auth by writing isAuthorized method in
your controller OR model and setting the appropriate opt
Thanks for your answer. I now use:
$view = new View(new AppController());
$this->helper->serverLink('http://example.com/server', false);
$content = $view->renderLayout('');
// here comes a not yet existing regex
Cheers,
daniel
--
Daniel Hofstetter
http://cakebaker.42dh.com
--~--~-~--~
On 9/10/07, Daniel Hofstetter <[EMAIL PROTECTED]> wrote:
>
> Thanks for your answer. I now use:
>
Hey - welcome back ;)
T
--
=
Cheesecake-Photoblog: http://cheesecake-photoblog.org
PHP for E-Biz: http://sanisoft.com
==
On Sep 8, 9:49 pm, NicoE <[EMAIL PROTECTED]> wrote:
> Hello everybody.
>
> We are moving a site made with CakePHP from one development server to
> a production server. In the first one, everythink works fine but when
> trying to login in the second one, the following error appears:
>
> "Fatal er
On 9/10/07, Baz <[EMAIL PROTECTED]> wrote:
> SoI'll be patiently waiting for Chris or someone else to do that write
> up. Since there's not going to be an official Manual for 1.2, I guess I have
> to just wait on enterprising bloggers.
There already is a manual for 1.2 and currently in the sa
We moved from PHP 5 - MySQL 5 to PHP 4 MySQL 3.
Are there PHP - MySQL version requirements for CakePHP?
On Sep 10, 8:48 am, AD7six <[EMAIL PROTECTED]> wrote:
> On Sep 8, 9:49 pm, NicoE <[EMAIL PROTECTED]> wrote:
>
> > Hello everybody.
>
> > We are moving a site made with CakePHP from one developm
On Sep 10, 9:24 am, Fran Iglesias <[EMAIL PROTECTED]> wrote:
> For example. I need to allow several groups to acces to an index
> action, but I need to retrieve only the items that are are allowed to
> the logged user.
ACL logic does not lend itself easily to mass searching like that, and
I've
On 9/10/07, Matt <[EMAIL PROTECTED]> wrote:
>
>
> Chris, I found the AuthComponent mentioned in the release for the
> 1.2.0.5427alpha:
> http://bakery.cakephp.org/articles/view/the-last-alpha-cake
>
> but to be honest I'm not really that confident using an AuthComponent
> that is in a alpha releas
On 9/10/07, Dr. Tarique Sani <[EMAIL PROTECTED]> wrote:
>
>
> Chris has already written about it in the past can't recall the exact
> URL but something like two pronged auth or two headed auth
>
Yeah, I did a small post about it:
http://www.littlehart.net/atthekeyboard/2007/07/28/two-headed-appl
There you go, that just goes to show that I have no clue what I'm talking
about.
SoI'll be patiently waiting for Chris or someone else to do that write
up. Since there's not going to be an official Manual for 1.2, I guess I have
to just wait on enterprising bloggers.
--
Baz L
Web Development 2
Hi,
I don't think there is a built-in migration system in cakePHP yet. the
one that is available is written by a cakePHP user.
means it's not official.
I heard that john is playing around with migrations in his sandbox, I
don't know the progress though.
But back to your framework. For it to be a
Sorry, I left out something from that statement: "...until 1.2 goes stable".
Yeah, I found it too, but no Auth stuff.
Two-Headed Application Authentication in CakePHP 1.2 :
http://www.littlehart.net/atthekeyboard/2007/07/28/two-headed-application-authentication-in-cakephp-12/
But, I'm too stupid/
Try this one: http://www.dhtmlgoodies.com/index.html?whichScript=image-crop
On Sep 9, 9:31 pm, d'plus <[EMAIL PROTECTED]> wrote:
> Chris Hartjes napisał(a):
>
> > On 9/9/07, d'plus <[EMAIL PROTECTED]> wrote:
> > > But can I achieve editing like this
> > >http://www.ajaxprogrammer.com/examples/Ima
I use a helper for image manipulation. A simple example would be:
Html->link($this->Html->image($file, array('border'
=> '0')), '/', null, null, false);
} // End Function
function resize($path, $width, $height, $aspect = true,
$htmlAttributes = array(), $return
On Sep 10, 3:06 pm, nej <[EMAIL PROTECTED]> wrote:
> We moved from PHP 5 - MySQL 5 to PHP 4 MySQL 3.
> Are there PHP - MySQL version requirements for CakePHP?
It is not afaik the reason for your specific error but unless you have
MySql version 4.x joins won't work.
hth,
AD
--~--~-~-
I'd do something like this: create an element for each flash chunk you
want to display, then store the references in the session - separately
from the normal flash data.
/app/elements/flash-email-not-unique.ctp :
Email not unique
Someone is already using the email address ; to view their inf
Thank you AD,
I guess it's better for me to activate the "B plan".
In my pre-cakaphp developer life, I wrote a simpler, yet functional,
system. I could try to improve it with some ideas from ACL's. Major
limitations was granularity (it works on group basis) and it was not
hierarchical.
--
Hi. I've got 2 models, n<->m, and i'm trying to asociate them with HABTM, so
i wrote this code:
array(
'foreignKey' => 'category_id'
)
);
var $hasOneAndBelongsToMany = array('RateRequest');
}
?>
I don't ge
Hi,
I used bake before in v1.2 and working alright for me. But after a
certain svn update (don't know which version) my admin_index gives an
error in i18n:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
allocate 1048577 bytes) in /cake/libs/i18n.php on line 379
And when I
On Sep 10, 2007, at 7:43 AM, CraZyLeGs wrote:
>
> Hi,
>
> I don't think there is a built-in migration system in cakePHP yet. the
> one that is available is written by a cakePHP user.
> means it's not official.
>
> I heard that john is playing around with migrations in his sandbox, I
> don't know
table name is plural
medias_rate_requests
On 9/10/07, Sebastian Choren <[EMAIL PROTECTED]> wrote:
> Hi. I've got 2 models, n<->m, and i'm trying to asociate them with HABTM, so
> i wrote this code:
>
> class Media extends AppModel {
> var $name = 'Media';
> var $belongsTo = array('MediaC
$form->select
On Sep 10, 5:11 pm, Seth <[EMAIL PROTECTED]> wrote:
> I'm trying to create a dropdown list .. but i can't find a helper for
> it like there is for imput, radio, checkbox etc, dose cake has a
> helper for it or i'm just missing it from docs ?
>
> Thanks.
> Claudiu
--~--~-~-
I'm trying to create a dropdown list .. but i can't find a helper for
it like there is for imput, radio, checkbox etc, dose cake has a
helper for it or i'm just missing it from docs ?
Thanks.
Claudiu
--~--~-~--~~~---~--~~
You received this message because you are
I've seen this in the code on that particular line:
$data = fread($file, 1<<20);
1<<20 ?? I will submit a trac ticket.
On Sep 10, 5:06 pm, Charlie van de Kerkhof <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I used bake before in v1.2 and working alright for me. But after a
> certain svn update (don't k
Which version of cake ? if cake 1.2 $form->select() (form helper),
$html->select() for cake 1.1 (html helper).
On Sep 10, 5:11 pm, Seth <[EMAIL PROTECTED]> wrote:
> I'm trying to create a dropdown list .. but i can't find a helper for
> it like there is for imput, radio, checkbox etc, dose cake h
Thanks! but i have try that and is not working i get this message
"Fatal error: Call to undefined method FormHelper::select()" and i
have imported in my controller helpers for Html and Form ... and i
don't get any erros with input or radio on the same form .. but i get
with this select, any hints
Note that $form->select it's only for Cake 1.2
On Sep 10, 5:23 pm, francky06l <[EMAIL PROTECTED]> wrote:
> $form->select
>
> On Sep 10, 5:11 pm, Seth <[EMAIL PROTECTED]> wrote:
>
> > I'm trying to create a dropdown list .. but i can't find a helper for
> > it like there is for imput, radio, check
> That's not a bug. Data is always returned in this format:
>
> Array
> (
> [ModelName] => Array
> (
> [fieldname1] => 'value'
> [fieldname2] => 'value'
> )
> )
Am I correct in my thinking that the reason data is returned this way
is for the scenario w
On 9/10/07, Troy Gilbert <[EMAIL PROTECTED]> wrote:
>
> Am I correct in my thinking that the reason data is returned this way
> is for the scenario where a model has an association, e.g. if post had
> a user:
>
> Array
> (
> [Post] => Array ( [field1] => 'value', [field2] => 'value' )
> [U
On 9/10/07, Charlie van de Kerkhof <[EMAIL PROTECTED]> wrote:
>
> I've seen this in the code on that particular line:
>
> $data = fread($file, 1<<20);
>
> 1<<20 ?? I will submit a trac ticket.
>
Not a bug. << is used as a bitwise operator:
http://www.litfuel.net/tutorials/bitwise.htm
1 << 20 i
Thank you for the help. I appreciate it greatly.
DGPhoebus
On Sep 9, 9:55 pm, hydra12 <[EMAIL PROTECTED]> wrote:
> I don't use the standard setup, but my understanding is that when you
> use the standard setup, the paths just work. When you move from one
> server to another, it should still ju
Well, for anybody in a similar situation, I have solved this problem.
It seems as though the second code only works like so:
div($div_id . $i,
array('style'=>'display:inline')); ?>test contentdivEnd($div_id . $i);?>
In other words, you cannot join the $ajax->div echo statement with
another ech
Joel Moss also wrote a migrations that integrates with 1.2.
http://joelmoss.info/switchboard/blog/2583:Migrations_v33
One of the best things about Cake is how easy it is to drop these
third party packages into vendors.
The Cake 1.2 core has a alpha version of the CakeSchema that John
refers to. T
$this->Acl->Aro->findByParentId()
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL
I'm trying to use the froms from EXTJS with cake. When my form posts,
this is what is in $_POST:
[action] => submit
[last_name] => Buckner
[first_name] => Mark
Nothing shows up in $this->data. How do I get it into this format?
[data] => Array
(
[User]=>Arra
Sory : name form inputs like : data[User][first_name];
On Sep 10, 8:27 pm, majna <[EMAIL PROTECTED]> wrote:
> name form inputs like : data[User][first:name].
> or
> $this->data['User']['first_name] = $this->params['form']
> ['first_name'];
> ...
>
> On Sep 10, 8:15 pm, hydra12 <[EMAIL PROTECTED]>
name form inputs like : data[User][first:name].
or
$this->data['User']['first_name] = $this->params['form']
['first_name'];
...
On Sep 10, 8:15 pm, hydra12 <[EMAIL PROTECTED]> wrote:
> I'm trying to use the froms from EXTJS with cake. When my form posts,
> this is what is in $_POST:
>
> [act
I'm wondering how stable 1.2 is currently? I've got a site with a
minimal feature set currently built with 1.1 and we're about to do a
significant rework/expansion of the site over the next month. Would it
make sense to migrate to 1.2? Where can I go to get a good comparison
of 1.1 vs. 1.2 in rega
hey guys, sorry for my late replay, and cheers for your help.
I'll try to be less cryptic.
Let's take a multilingual website with a specular section in language
1 (italian), and language 2 (english). When in other circumstances I
was in this kind of situation I used to add an extra "language fi
On 9/10/07, Troy Gilbert <[EMAIL PROTECTED]> wrote:
>
> I'm wondering how stable 1.2 is currently? I've got a site with a
> minimal feature set currently built with 1.1 and we're about to do a
> significant rework/expansion of the site over the next month. Would it
> make sense to migrate to 1.2?
That did it! Thanks!
On Sep 10, 1:28 pm, majna <[EMAIL PROTECTED]> wrote:
> Sory : name form inputs like : data[User][first_name];
>
> On Sep 10, 8:27 pm, majna <[EMAIL PROTECTED]> wrote:
>
> > name form inputs like : data[User][first:name].
> > or
> > $this->data['User']['first_name] = $this->p
Now i can read the model and i get the relation, but when i try to
save a new one, it saves the first model, but it doesn't save the
relation table. Instead it makes a delete:
1 INSERT INTO `rate_requests` (`user_id`) VALUES (4)
2 SELECT LAST_INSERT_ID() AS insertID
3 DELETE FRO
I abandoned cake few days ago and now I'm using Ruby on Rails because
I think cake takes too much time to evolve and I could wait more one
year to finally use it seriously.
In my opinion you should study RoR before rework/expansion because you
will have immediately results.
On 10 set, 15:50, "Tro
On 9/10/07, Ismael S. Kafeltz <[EMAIL PROTECTED]> wrote:
>
> I abandoned cake few days ago and now I'm using Ruby on Rails because
> I think cake takes too much time to evolve and I could wait more one
> year to finally use it seriously.
> In my opinion you should study RoR before rework/expansion
He's not asking if he should try RoR, he's asking about 1.2 availability.
So if you just wanna fill up your inbox with arguments, go somewhere else. I
know a couple of blogs that would benefit from that.
-MI
---
Remember,
My EURO 0.02
I would personally like to applaud and thank the CakePHP team for remaining
focused on releasing *quality* software rather than pumping up their version
numbers like so many commercial products. I am quite happy to wait as long
as it takes for 1.2 in the knowledge it'll be solid and
> Show me how to build Digg with Ruby on Rails and I will believe that
> RoR is better than a PHP-backed solution. There, I said it.
I certainly agree with that sentiment (hence, why I built the site
with CakePHP in the first place). I've read all of "The David's"
presentations (and books) on Ro
Just my 2 cents :
I have used 1.1 for my first application now live. I am in development
stage for the second one and I am using 1.2. I admit that I could not
get to 1.1 anymore. Once you tried it, you can't go back ..
I have to migrate my first application, but . well it works and I
wait a b
On 9/6/07, francky06l <[EMAIL PROTECTED]> wrote:
>
>
>
> - do not use the name "password" in the views (login or other user
> management views), but another "dummy" name. Handle this dummy name
> (hash or whatever and replace in your password field) prior to save.
Why not use the name 'password'?
On Sep 10, 2007, at 2:06 PM, Troy Gilbert wrote:
>
>> Show me how to build Digg with Ruby on Rails and I will believe that
>> RoR is better than a PHP-backed solution. There, I said it.
>
> I certainly agree with that sentiment (hence, why I built the site
> with CakePHP in the first place). I'
@Ismael
Then why are you still on this list? Or why even bother responding?
I think the expression is "if you dont have something nice to say,
dont say it at all"
@Troy
http://ahsanity.wordpress.com/2007/08/29/cakephp-12-the-romance-continues/
http://www.cakephp.org/files/OCPHP.pdf
--~--~--
nope thats all you need.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTE
Yes it does, I mean for me .. Because when a user enters his password
I want to verify the strength (ie : 6 characters, at least a numeric
and different from user name). So when you use "password" as field
name (in your add view), you will get it already hashed (in your
controller $this->data['Use
I have been working all morning on this without any luck. This is on
Cake 1.2 (branch) / 5626. The only nonstandard thing I'm doing is app
and webroot dirs outside the normal locations (and renamed), but that
shouldn't make a difference with this.
ROUTE
$Route->connect('/:community_id/bulletins/
ummm, I think its the "hasOneAndBelongsToMany" should be
"hasAndBelongsToMany"
as far as I know there isn't a hasOneAndBelongsToMany
On Sep 10, 8:01 am, "Sebastian Choren" <[EMAIL PROTECTED]>
wrote:
> Hi. I've got 2 models, n<->m, and i'm trying to asociate them with HABTM, so
> i wrote this cod
Actually to the Auth component, not the Security one ..
Cheers
On Sep 10, 10:42 pm, "Sonic Baker" <[EMAIL PROTECTED]> wrote:
> Aha,
>
> Thanks for clearing that up. I didn't realise you were referring
> specifically to the security component. I thought you meant in general user
> forms.
>
> Cheer
Well you can use the current language ('Config.language') to set it in
your DB and then use the current language as a condition when
querying. In anyway that will force the user to enter his post in the
language he decided to display the page ...Unless you can detect the
language from the fields i
I'll pipe in here to say that the next version of SlideShowPro
Director (1.1) will run on Cake 1.2. We've been in beta testing for a
few months now, and with our current release candidate installed on
north of 500 domains, we haven't seen any Cake related issues. Issues
of my own making, however,
Aha,
Thanks for clearing that up. I didn't realise you were referring
specifically to the security component. I thought you meant in general user
forms.
Cheers,
Sonic
On 9/10/07, francky06l <[EMAIL PROTECTED]> wrote:
>
>
> Yes it does, I mean for me .. Because when a user enters his password
>
On Sep 10, 9:42 pm, nerohc <[EMAIL PROTECTED]> wrote:
> $this->data['Media']['Media'] = 15;
That's supposed to be an array of all values to which the RateRequest
is associated. The delete is because before saving the new habtm
associations, cake will delete the old ones (otherwise it would be
Hi,
Correct way to implement above route would be:
Router::connectNamed(array('community_id'));
Router::connect('/:community_id/bulletins/:action/*',
array('controller' => 'bulletins'), array('community_id' =>
'[0-9]+'));
On Sep 10, 10:40 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> I h
Thanks, I was not aware of the new explicit nature.
On Sep 10, 5:15 pm, biesbjerg <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Correct way to implement above route would be:
>
> Router::connectNamed(array('community_id'));
> Router::connect('/:community_id/bulletins/:action/*',
> array('controller' => 'b
Originally I thought this was an optional new feature, but for those
who were passing arrays with arbitrary named values to Router::url()
and its friends HtmlHelper::url() and HtmlHelper::link(), note that
the parameter must be defined with a $Route->connectNamed() in
routes.php or the router won'
Hello
I'm writing a little catalog for a client, and setup Section and
Product controllers with admin routing, so /admin/sections manages
sections and /admin/products manages products
I want to point /admin to /admin/sections, but I'm struggling with app/
config/routes.php. Already tried:
$Route-
Could someone please post the Doxyfile used to generate the api
documentation for cakephp. I am guessing some modification was
required to get it to support several phpdoc style comments.
thanks
David
--~--~-~--~~~---~--~~
You received this message because you ar
Hi,
I am using google maps in my webpage. I allow the user to set location
of any place on the goolge maps. Google maps allows to use hand cursor
on the map and on clicking the map, a plaemark is set. while user
tries to place placemarks on the map. I want to show a placemark
cursor instead of ha
This is my situation: the user clicks on an ajax link and this updates
a with an ajax response, which also contains this form:
input('Comment.comment', array('rows'=>2, 'cols'=>30,
'label'=>''));?>
hidden('Comment.created_at', time());?>
hidden('Comment.marker_id', $mark
First of all, Hello everybody :)
I'm pretty new to formalized ACL stuff as I've been using "hand made"
code till now and I'm not used to write applications using frameworks.
I've been reading so many confusing things all around and it's not
really clear where to get info, real info.
The moment i
I am getting into CakePHP but I keep struggling with the following
problem:
I have a photo collection and use pagination to order the photos. I
also try to order a list of collections which I can modify, add and
delete.
Both photos and collections are based on rdBloggery.
Because I want to use th
I looked all over for there doxyfile. I would love to see it as they
somehow (my guess though alieses) support several phpdoc only style
comments..
David
On Sep 7, 6:52 am, MarkH <[EMAIL PROTECTED]> wrote:
> On Sep 6, 4:53 pm, djiize <[EMAIL PROTECTED]> wrote:
>
> > Where did you see it was pars
I have a question about where to put some code. In a fishing
tournament scoring system 2 classes are at issue: Catches and
ScoreCard (a ScoreCard is a tournament entry -- standings are the
ordered list of ScoreCards for a given Tournament). The tournament
abstraction is layered over an underlying
Hey guys,
Ive had a similar problem to this on an unrelated cake project before
(unrelated other than being programed by me as pointed out by someone
on IRC last night :P)
Whats happening is if i don't let a page load 100% before i click a
link on it cake will take 1min+ to answer the requests.
My guess would be that outputting binary blobs through a script ( meanign an
http request, a db request, a second http request + output ) for each image
is simply taking a long time.
I wouldn't be surprised if outputting binary data like images was in some
fashion a synchronous event either by d
I would put the functionality into your User model. Have a function
addCatch(), which can also look at all the User's ScoreCards and
update them appropriately.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
Unless I've misunderstood, I think what you are looking for is the
Model Translate behaviour, a related part of the new
internationalisation features of 1.2.
On Sep 10, 6:11 pm, francky06l <[EMAIL PROTECTED]> wrote:
> Well you can use the current language ('Config.language') to set it in
> y
I guess I just have to go for it and see the results for myself. I
just have to tell myself "it's just an auth system"
Thanks.
On Sep 10, 6:19 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On 9/10/07, Matt <[EMAIL PROTECTED]> wrote:
>
>
>
> > Chris, I found the AuthComponent mentioned in the
84 matches
Mail list logo