Thanks Sam, that youtube tutorial helped. I'm continuing with the link
you sent earlier, right after finishing the cookbook soon..hopefully.

Regards,
Maxim

On Dec 29, 10:07 pm, Sam Sherlock <sam.sherl...@gmail.com> wrote:
> setting cake for commandline is easy - don't be put off
>
> it take minutes
>
> windows or *nix (these require quicktime - I 
> think)http://cakephp.org/screencasts
>
> or (windows setup on 
> youtube)http://www.youtube.com/watch?v=21Rt9HgITig&feature=related
>
> you won't regret setting this up - it opens so many new options :)
>
>  - S
>
> On 29 December 2010 13:46, John Maxim <goog...@gmail.com> wrote:
>
> > Hi Sam,
>
> > I tried quite a number of times logging in IRC on cake but there were
> > always connection failure or something..given up and use googlegroup
> > as of now..
>
> > I can't carry on with the link you recommended; it asks me to be
> > familiar with console, I'm not, I don't know what/how exactly to begin
> > with the console, going through the cookbook simultaneously.. I'm
> > aging.
>
> > > see the buildAcl function in the tutorial
>
> > do you mean from cookbook?, yes, I'm viewing it now..
>
> > What's the secret to log in to IRC cake ? something I'm missing ..
>
> > Thanks for the explanation I thought Acl and Bake is one thing.
>
> > Regards,
> > Maxim
>
> > On Dec 29, 9:36 pm, Sam Sherlock <sam.sherl...@gmail.com> wrote:
> > > you'll find that ACL is a heavy task.
>
> > > setting up a dummy application (own db files etc) -- deleting and
> > > reinstating things over  and over will make things clearer
>
> > > trail and error extremely useful when learning ACL.  if you back up the
> > db
> > > in between and compare what differences after doing things
>
> > > bake creates models, controllers & views (you can scaffold but I don't --
> > or
> > > have'nt found it useful to me personally)
> > > bake is not ACL - both ACL and bake have commandline access in cake
>
> > > your on the right track by the souds of what your doing.
>
> > > being prepared to redo various tutorials will really help you out;
> > > The cookbook tutorial is good - but Marks end to end really hammered it
> > home
> > > for me
>
> > > see the buildAcl function in the tutorial
>
> > > there are an awful lot of different terms involved with ACL and
> > variations
> > > on setup to -
> > > auth is easy to set up ACL not so much (at all); also lots of tla's
> > (three
> > > letter acronyms :)
> > > and this can be overwhelming)
>
> > > stick with it - and keep pens and paper handy = coffee or whatever your
> > > choice beverage in plentiful supply
>
> > > also if you use IRC you'll find lots of helpful people there
>
> > >  - S
>
> > > On 29 December 2010 13:09, John Maxim <goog...@gmail.com> wrote:
>
> > > > Thanks Sam, it's clearer now...but still struggling with Acl; I was
> > > > confused when I hear the word "populate" a general term. In oracle, I
> > > > populated db/tables/sql scripts in a batch file, last time. So it
> > > > brought me a meaning of the same when I hear it again. Now I know it
> > > > could mean using command line and here it's Bake. But I created the
> > > > tables already, is there a measurement to check if the tables are
> > > > correctly "populated" ? I may have to drop the 3 tables I created
> > > > earlier..and re-do starting from tutorial Acl(cookbook tutorial)
> > > > again/ the link you've sent to me. Will check on it, now.
>
> > > > Regards,
>
> > > > Maxim
>
> > > > On Dec 29, 8:53 pm, Sam Sherlock <sam.sherl...@gmail.com> wrote:
> > > > > Hi John,
>
> > > > > you want to setup cake so you can use it from commandline
>
> > > > > bake is one part of cakes commandline
>
> > > > > also acl too: (output from commandline)
>
> > > > > $ cake acl
> > > > > Available ACL commands:
> > > > >          - create
> > > > >          - delete
> > > > >          - setParent
> > > > >          - getPath
> > > > >          - check
> > > > >          - grant
> > > > >          - deny
> > > > >          - inherit
> > > > >          - view
> > > > >          - initdb
> > > > >          - help
>
> > > > > so `cake acl initdb` would setup the db structure which you
> > previously
> > > > > posted
>
> > > > > you don't have to, setup cake to run from commandline, but it is an
> > > > > advantage if you do
>
> > > > > also checkout the ACL tutorial by Mark Story (end to end acl parts 1
> > &
> > > > 2);
> > > > > it covers
> > > > > populating the tables and setting up controllers models etc - its the
> > > > least
> > > > > confusing acl tutorial out there :)
>
> > > > > additionally acl_extras a shell plugin is truly useful (also by Mark
> > > > Story)
>
> > > > > hth  - S
>
> > > > > On 29 December 2010 10:42, John Maxim <goog...@gmail.com> wrote:
>
> > > > > > Is Bake continued from scaffolding ? can I jump straight to learn
> > > > > > Bake ?
>
> > > > > > Must we use Bake to populate the Acl tables ?
>
> > > > > > Regards,
> > > > > > Maxim
>
> > > > > > On Dec 29, 6:12 pm, Amit Badkas <amit.sanis...@gmail.com> wrote:
> > > > > > > Hi,
>
> > > > > > > My question was 'are the ACL tables (aros, acos and aros_acos)
> > > > populated
> > > > > > > correctly?', please refer tohttp://
> > > > > > book.cakephp.org/view/1543/Simple-Acl-controlled-Applicationto
> > > > > > > understand how to populate ACL tables.
>
> > > > > > > Amit Badkas
>
> > > > > > > PHP Applications for E-Biz:http://www.sanisoft.com
>
> > > > > > > On Wed, Dec 29, 2010 at 3:35 PM, John Maxim <goog...@gmail.com>
> > > > wrote:
> > > > > > > > Thanks Amit,
>
> > > > > > > > Yes, the first undefined: is solved, I posted a post before
> > yours.
> > > > I
> > > > > > > > ran the DB sql scripts with no error. The sql is as follow:
>
> > > > > > > > ~~~~
>
> > > > > > > > CREATE TABLE acos (
> > > > > > > >  id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
> > > > > > > >  parent_id INTEGER(10) DEFAULT NULL,
> > > > > > > >  model VARCHAR(255) DEFAULT '',
> > > > > > > >  foreign_key INTEGER(10) UNSIGNED DEFAULT NULL,
> > > > > > > >  alias VARCHAR(255) DEFAULT '',
> > > > > > > >  lft INTEGER(10) DEFAULT NULL,
> > > > > > > >  rght INTEGER(10) DEFAULT NULL,
> > > > > > > >  PRIMARY KEY  (id)
> > > > > > > > );
>
> > > > > > > > CREATE TABLE aros_acos (
> > > > > > > >  id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
> > > > > > > >  aro_id INTEGER(10) UNSIGNED NOT NULL,
> > > > > > > >  aco_id INTEGER(10) UNSIGNED NOT NULL,
> > > > > > > >  _create CHAR(2) NOT NULL DEFAULT 0,
> > > > > > > >  _read CHAR(2) NOT NULL DEFAULT 0,
> > > > > > > >  _update CHAR(2) NOT NULL DEFAULT 0,
> > > > > > > >  _delete CHAR(2) NOT NULL DEFAULT 0,
> > > > > > > >  PRIMARY KEY(id)
> > > > > > > > );
>
> > > > > > > > CREATE TABLE aros (
> > > > > > > >  id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
> > > > > > > >  parent_id INTEGER(10) DEFAULT NULL,
> > > > > > > >  model VARCHAR(255) DEFAULT '',
> > > > > > > >  foreign_key INTEGER(10) UNSIGNED DEFAULT NULL,
> > > > > > > >  alias VARCHAR(255) DEFAULT '',
> > > > > > > >  lft INTEGER(10) DEFAULT NULL,
> > > > > > > >  rght INTEGER(10) DEFAULT NULL,
> > > > > > > >  PRIMARY KEY  (id)
> > > > > > > > );
>
> > > > > > > > ~~~
>
> > > > > > > > On Dec 29, 5:56 pm, Amit Badkas <amit.sanis...@gmail.com>
> > wrote:
> > > > > > > > > Hi,
>
> > > > > > > > > About 'Undefined index: content' error, you should already
> > know
> > > > how
> > > > > > to
> > > > > > > > fix
> > > > > > > > > it.
>
> > > > > > > > > About 'DbAcl::check() - Failed ARO/ACO node lookup in
> > permissions
> > > > > > check'
> > > > > > > > > error, are the ACL tables (aros, acos and aros_acos)
> > populated
> > > > > > correctly?
>
> > > > > > > > > Amit Badkas
>
> > > > > > > > > PHP Applications for E-Biz:http://www.sanisoft.com
>
> > > > > > > > > On Wed, Dec 29, 2010 at 2:56 PM, John Maxim <
> > goog...@gmail.com>
> > > > > > wrote:
> > > > > > > > > > Hi Amit, Thanks...!
>
> > > > > > > > > > I just put it in the controllers components--access.php:
> > > > > > > > > > ----------
> > > > > > > > > > <?
> > > > > > > > > > class AccessComponent extends Object{
> > > > > > > > > >        var $components = array('Acl', 'Auth');
> > > > > > > > > >        var $user;
>
> > > > > > > > > >        function startup(){
> > > > > > > > > >                 $this->user = $this->Auth->user();
> > > > > > > > > >        }
>
> > > > > > > > > >        function check($aco, $action='*'){
> > > > > > > > > >                 if(!empty($this->user) &&
> > > > > > > > $this->Acl->check('User::'.$this-
> > > > > > > > > > >user['User']['id'], $aco, $action)){
> > > > > > > > > >                        return true;
> > > > > > > > > >                } else {
> > > > > > > > > >                        return false;
> > > > > > > > > >                }
> > > > > > > > > >        }
>
> > > > > > > > > >        function checkHelper($aro, $aco, $action = "*"){
> > > > > > > > > >                App::import('Component', 'Acl');
> > > > > > > > > >                $acl = new AclComponent();
> > > > > > > > > >                return $acl->check($aro, $aco, $action);
> > > > > > > > > >        }
> > > > > > > > > > }
> > > > > > > > > > ?>
> > > > > > > > > > --------------
>
> > > > > > > > > > Now the errors are:
> > > > > > > > > > ~~
>
> > > > > > > > > > Notice (8): Undefined index: content
> > > > [APP\views\posts\index.ctp,
> > > > > > line
> > > > > > > > > > 7]
> > > > > > > > > > ~~
> > > > > > > > > > Warning (512): DbAcl::check() - Failed ARO/ACO node lookup
> > in
> > > > > > > > > > permissions check.  Node references:
> > > > > > > > > > Aro: User::44
> > > > > > > > > > Aco: Post [CORE\cake\libs\controller\components\acl.php,
> > line
> > > > 273]
> > > > > > > > > > ~~
>
> > > > > > > > > > Regards,
> > > > > > > > > > Maxim
>
> > > > > > > > > > On Dec 29, 4:43 pm, Amit Badkas <amit.sanis...@gmail.com>
> > > > wrote:
> > > > > > > > > > > Hi,
>
> > > > > > > > > > > Have you had AccessComponent class defined in
> > > > > > > > > > > app/controllers/components/access.php?
>
> > > > > > > > > > > Amit Badkas
>
> > > > > > > > > > > PHP Applications for E-Biz:http://www.sanisoft.com
>
> > > > > > > > > > > On Wed, Dec 29, 2010 at 1:30 PM, John Maxim <
> > > > goog...@gmail.com>
> > > > > > > > wrote:
> > > > > > > > > > > > <?php
> > > > > > > > > > > > class AccessHelper extends Helper{
> > > > > > > > > > > >        var $helpers = array("Session");
> > > > > > > > > > > >        var $Access;
> > > > > > > > > > > >        var $Auth;
> > > > > > > > > > > >        var $user;
>
> ...
>
> read more »

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to