Re: phpGACL installation

2007-05-10 Thread Dr. Tarique Sani

On 5/9/07, Mariano Iglesias [EMAIL PROTECTED] wrote:

 point. Plugin controllers should be named as unique as possible, because
 that's the idea of plugins: you drop it on any application and it should
 avoid collisions as much as possible.

Sorry I disagree on the point that uniqueness of  plugin controller
name should/would be a requisite for it to be plug and play

It is merely a matter of referring to the said controller as
plugin/controllername which the framework already manages (?)

And yeah it is demeaning for an app to be referred as a plugin :))

Cheers
Tarique

-- 
=
PHP for E-Biz: http://sanisoft.com
Cheesecake-Photoblog needs you!: http://cheesecake-photoblog.org
=

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



RE: phpGACL installation

2007-05-10 Thread Mariano Iglesias

From http://manual.cakephp.org/chapter/plugins:

While it isn't required, it is recommended that you name your plugin
controllers something relatively unique in order to avoid namespace
conflicts with parent applications. Its not a stretch to think that a parent
application might have a UsersController, OrderController, or
ProductController: so you might want to be creative with controller names,
or prepend the name of the plugin to the classname

If in my application I have a UsersController, and need to do a
requestAction() to a plugin's UsersController, then hell breaks loose.

-MI

---

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!

blog: http://www.MarianoIglesias.com.ar


-Mensaje original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de Dr. Tarique Sani
Enviado el: Jueves, 10 de Mayo de 2007 04:17 a.m.
Para: cake-php@googlegroups.com
Asunto: Re: phpGACL installation

Sorry I disagree on the point that uniqueness of  plugin controller
name should/would be a requisite for it to be plug and play


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



Re: phpGACL installation

2007-05-10 Thread Dr. Tarique Sani

On 5/10/07, Mariano Iglesias [EMAIL PROTECTED] wrote:

 From http://manual.cakephp.org/chapter/plugins:

 While it isn't required, it is recommended that you name your plugin
 controllers something relatively unique in order to avoid namespace
 conflicts with parent applications. Its not a stretch to think that a parent
 application might have a UsersController, OrderController, or
 ProductController: so you might want to be creative with controller names,
 or prepend the name of the plugin to the classname

Ugh! wonder how I missed it...

But again IMO the framework should handle this gracefully. Prepending
or appending classname is not an answer as it will lead to
ugly/confusing/funny URLs or the developers will have to use routes
which is not so bad BUT for apps where plugins are supposed to be plug
and play expecting end users to edit routes is not an acceptable
option.

Hmmm... DB based routing anyone?

Just my 2ps

Tarique
-- 
=
PHP for E-Biz: http://sanisoft.com
Cheesecake-Photoblog needs you!: http://cheesecake-photoblog.org
=

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



RE: phpGACL installation

2007-05-09 Thread Paul R. Zwiers

Silv,

Thanks, so my setup should work. Hmmnz... Which version of phpGACL do you
use? Did you have to edit some things manually or just installed the bunch
like described here: http://dev.sypad.com/installing-phpgacl-plugin-cakephp

TIA
Paul

 
 I'm using PHP5, MySQL 5 and CakePHP 1.1.14.4797 with Mariano's phpGACL
 and also dAuth 0.3; no problems.  The only thing I had to do was
 implement the connection_manager.php trunk fix to resolve a datasource
 error message.  That doesn't sound like your issue, though...
 
 On May 8, 9:45 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  When the page loads where it extends my database (I did not change
 the
  database.php) I can click the button to proceed with installation,
  it creates the tables and comes right back with the same page ...
  Seems like it is missing something or something did not work.
 
  TIA
  Paul


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



Re: phpGACL installation

2007-05-09 Thread Sliv

Well, I used PhpGACL 3.3.7 installed into APP_DIR . /vendors/

After extraction, I did have to make a symbolic link to the
phpgacl-3.3.7 folder called 'phpgacl' because the plugin was looking
for that folder.

For the plugin:

app_dir . /plugins/phpgacl/

app_dir . /components/php_gacl.php

WEBROOT . /css/phpgacl/
WEBROOT . /img/phpgacl/

a while back there was a post that talked about updating the
webroot . /js/vendors.php to revision 4409

...I don't think I had to do anything else to get it working (other
than that datasource fix)


On May 9, 5:50 am, Paul R. Zwiers [EMAIL PROTECTED] wrote:
 Silv,

 Thanks, so my setup should work. Hmmnz... Which version of phpGACL do you
 use? Did you have to edit some things manually or just installed the bunch
 like described here:http://dev.sypad.com/installing-phpgacl-plugin-cakephp

 TIA
 Paul



  I'm using PHP5, MySQL 5 and CakePHP 1.1.14.4797 with Mariano's phpGACL
  and also dAuth 0.3; no problems.  The only thing I had to do was
  implement the connection_manager.php trunk fix to resolve a datasource
  error message.  That doesn't sound like your issue, though...

  On May 8, 9:45 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
   When the page loads where it extends my database (I did not change
  the
   database.php) I can click the button to proceed with installation,
   it creates the tables and comes right back with the same page ...
   Seems like it is missing something or something did not work.

   TIA
   Paul


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



Re: phpGACL installation

2007-05-09 Thread Gonzalo Servat
On 5/9/07, Sliv [EMAIL PROTECTED] wrote:


 Well, I used PhpGACL 3.3.7 installed into APP_DIR . /vendors/

 After extraction, I did have to make a symbolic link to the
 phpgacl-3.3.7 folder called 'phpgacl' because the plugin was looking
 for that folder.

 For the plugin:

 app_dir . /plugins/phpgacl/

 app_dir . /components/php_gacl.php

 WEBROOT . /css/phpgacl/
 WEBROOT . /img/phpgacl/

 a while back there was a post that talked about updating the
 webroot . /js/vendors.php to revision 4409

 ...I don't think I had to do anything else to get it working (other
 than that datasource fix)


I had one problem with it which I was able to fix pretty easily. I had an
old installation of Cheesecake in the plugins dir which had an
UsersController. My CakePHP app also has an UsersController so it clashed.
You'd have to be pretty unlucky to face this sort of issue but, I did :) I
think it is more Cheesecake's fault than anyone elses as you're not supposed
to use common names like UsersController as plugin controller names.

Cheers,
Gonzalo

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



Re: phpGACL installation

2007-05-09 Thread AD7six



On May 9, 3:18 pm, Gonzalo Servat [EMAIL PROTECTED] wrote:
 On 5/9/07, Sliv [EMAIL PROTECTED] wrote:





  Well, I used PhpGACL 3.3.7 installed into APP_DIR . /vendors/

  After extraction, I did have to make a symbolic link to the
  phpgacl-3.3.7 folder called 'phpgacl' because the plugin was looking
  for that folder.

  For the plugin:

  app_dir . /plugins/phpgacl/

  app_dir . /components/php_gacl.php

  WEBROOT . /css/phpgacl/
  WEBROOT . /img/phpgacl/

  a while back there was a post that talked about updating the
  webroot . /js/vendors.php to revision 4409

  ...I don't think I had to do anything else to get it working (other
  than that datasource fix)

 I had one problem with it which I was able to fix pretty easily. I had an
 old installation of Cheesecake in the plugins dir which had an
 UsersController. My CakePHP app also has an UsersController so it clashed.
 You'd have to be pretty unlucky to face this sort of issue but, I did :) I
 think it is more Cheesecake's fault than anyone elses as you're not supposed
 to use common names like UsersController as plugin controller names.

Why not - cheesecake isn´t a plugin btw, it's an app.

AD


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



RE: phpGACL installation

2007-05-09 Thread Mariano Iglesias

What datasource fix?

-MI

---

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!

blog: http://www.MarianoIglesias.com.ar

-Mensaje original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de Sliv
Enviado el: Miércoles, 09 de Mayo de 2007 10:05 a.m.
Para: Cake PHP
Asunto: Re: phpGACL installation

...I don't think I had to do anything else to get it working (other
than that datasource fix)


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



RE: phpGACL installation

2007-05-09 Thread Mariano Iglesias

AD7six: can you have your answer posted above the original mail quote? :)

Regarding Cheesecake being an application, AD7six has a point. Don't want to
piss Tarique off. 

Regarding plugins (even though Cheesecake is not one AFAIK) Gonzalo has a
point. Plugin controllers should be named as unique as possible, because
that's the idea of plugins: you drop it on any application and it should
avoid collisions as much as possible.

-MI

---

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!

blog: http://www.MarianoIglesias.com.ar


-Mensaje original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de AD7six
Enviado el: Miércoles, 09 de Mayo de 2007 10:35 a.m.
Para: Cake PHP
Asunto: Re: phpGACL installation

Why not - cheesecake isn´t a plugin btw, it's an app.


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



Re: phpGACL installation

2007-05-09 Thread Sliv

Mariano:

When I installed your plugin, I was running 1.1.14.4797 and got the
error described in ticket 2370:

http://groups.google.com/group/tickets-cakephp/browse_thread/thread/40546c1950d1d70f/5f9d2360f5e31f95?lnk=gstq=%232370rnum=1#5f9d2360f5e31f95

So I implemented the fix and no problems.

On May 9, 9:36 am, Mariano Iglesias [EMAIL PROTECTED]
wrote:
 What datasource fix?

 -MI

 ---

 Remember, smart coders answer ten questions for every question they ask.
 So be smart, be cool, and share your knowledge.

 BAKE ON!

 blog:http://www.MarianoIglesias.com.ar

 -Mensaje original-
 De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
 de Sliv
 Enviado el: Miércoles, 09 de Mayo de 2007 10:05 a.m.
 Para: Cake PHP
 Asunto: Re: phpGACL installation

 ...I don't think I had to do anything else to get it working (other
 than that datasource fix)


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



RE: phpGACL installation

2007-05-09 Thread Mariano Iglesias

Oh yeah, that's right. Thanks.

-MI

---

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!

blog: http://www.MarianoIglesias.com.ar


-Mensaje original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de Sliv
Enviado el: Miércoles, 09 de Mayo de 2007 11:22 a.m.
Para: Cake PHP
Asunto: Re: phpGACL installation

When I installed your plugin, I was running 1.1.14.4797 and got the
error described in ticket 2370:

http://groups.google.com/group/tickets-cakephp/browse_thread/thread/40546c19
50d1d70f/5f9d2360f5e31f95?lnk=gstq=%232370rnum=1#5f9d2360f5e31f95

So I implemented the fix and no problems.



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



Re: phpGACL installation

2007-05-08 Thread Sliv

I'm using PHP5, MySQL 5 and CakePHP 1.1.14.4797 with Mariano's phpGACL
and also dAuth 0.3; no problems.  The only thing I had to do was
implement the connection_manager.php trunk fix to resolve a datasource
error message.  That doesn't sound like your issue, though...

On May 8, 9:45 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Just adapting CakePHP, needing a complete auth environment and decided
 to use phpGACL with the plugin Mariano developed (nice work!). So far
 so good.

 Downloaded all the latest releases, put them in the right folders and
 started the plugin.

 When the page loads where it extends my database (I did not change the
 database.php) I can click the button to proceed with installation,
 it creates the tables and comes right back with the same page ...
 Seems like it is missing something or something did not work.

 Ideas anybody? :-)

 Using PHP5 and MySQL 5 by the way.

 TIA
 Paul


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