Re: cant use email as login cakephp

2014-08-06 Thread Hakim Miah
Delete and start again and follow the example exactly in the cakephp 
documentation...

On Tuesday, 5 August 2014 08:38:19 UTC+1, ajt wrote:

 This function wont work as I get no output

  public function isAuthorized($user) {
 // Admin can access every action
 debug($user['role']);
 debug(asdd);





-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: cant use email as login cakephp

2014-08-06 Thread Stephen S
What you have looks fine to me, first thing I would do is the following:

public function isAuthorized($user) {
pr($user);
die();
}

If isAuthorized gets called it'll kill the process and you can see the
output of user, if not something went wrong before then and we may need
more info to help.


On 6 August 2014 09:41, Hakim Miah hakim.miah.7...@gmail.com wrote:

 Delete and start again and follow the example exactly in the cakephp
 documentation...


 On Tuesday, 5 August 2014 08:38:19 UTC+1, ajt wrote:

 This function wont work as I get no output

  public function isAuthorized($user) {
 // Admin can access every action
 debug($user['role']);
 debug(asdd);



  --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google Groups
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.




-- 
Kind Regards
 Stephen Speakman

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Custom FormWidget Vs Custom FormHelper vs ... [Cake 3]

2014-08-06 Thread Dr. Tarique Sani
Hi,

Playing around with form helpers  and form widgets in Cake 3

Is there a way to override the Basic Widget with my custom Basic Widget and
have options 'error'=false, 'label'=false by default?

OR this can't be done in the widget and will have to go into my custom form
helper

TIA

Tarique



-- 
=
The Conference Schedule Creator : http://shdlr.com

PHP for E-Biz : http://sanisoft.com
=

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: Custom FormWidget Vs Custom FormHelper vs ... [Cake 3]

2014-08-06 Thread José Lorenzo
Wouldn't that be possible by altering the inputContainer and 
inputContainerError templates?

On Wednesday, August 6, 2014 11:30:02 AM UTC+2, Dr. Tarique Sani wrote:

 Hi, 

 Playing around with form helpers  and form widgets in Cake 3 

 Is there a way to override the Basic Widget with my custom Basic Widget 
 and have options 'error'=false, 'label'=false by default? 

 OR this can't be done in the widget and will have to go into my custom 
 form helper

 TIA

 Tarique



 -- 
 =
 The Conference Schedule Creator : http://shdlr.com

 PHP for E-Biz : http://sanisoft.com
 = 


-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Form in Element instead of View

2014-08-06 Thread Jovan Chee Nanić
I have to do one page web application in cakePHP. I have template where are 
put all divs and from jQuery then show or hidden appropriate div. I have 
two div with forms to store some data in db. I crated elements for my 
div-s, and then in my layout, in each div i put br/

 ? php echo $this-element('register'); ?

I created form in element, a same way in view.

   
 ?php $customers = $this-requestAction('customers/add'); ?

div class=customers form
?php echo $this-Form-create('Customer'); ?



?php
echo $this-Form-input('salutation', array(
'options' = array('Mr' = 'Mr', 'Mrs' = 'Mrs', 
'Ms' = 'Ms')
));
echo $this-Form-input('firstname', array('required' = true));
echo $this-Form-input('lastname', array('required' = 
true));
echo $this-Form-input('street', array('required' = true));
echo $this-Form-input('zip_city', array('required' = 
true));
echo $this-Form-input('country', array('required' = 
true));
echo $this-Form-input('phone', array('required' = 
true));
echo $this-Form-input('email', array('required' = 
true));
?
?php echo $this-Form-end($options); ?

/div



My controller for adding data in db:


public function add(){
if($this-request-is('customer')) {
$this-Customer-create();
if($this-Customer-save($this-request-data)){
$this-Session-setFlash('Register successiful');
}
$this-Session-setFlash('Unable to register!');
}
}



I think that is my problem in this line: 

if($this-request-is('customer')) {



If I remove if-statement, I succedd to store data in table, but stored and 
more blank rows.

I appreciate every suggestion. Thanks

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: Form in Element instead of View

2014-08-06 Thread José Lorenzo
'customer' is not an HTTP method, maybe you are confusing the is('post') as 
if it were a Post model and not a POST request. Just change that if to:

 if($this-request-is('post')) {

On Wednesday, August 6, 2014 12:19:56 PM UTC+2, Jovan Chee Nanić wrote:

 I have to do one page web application in cakePHP. I have template where 
 are put all divs and from jQuery then show or hidden appropriate div. I 
 have two div with forms to store some data in db. I crated elements for my 
 div-s, and then in my layout, in each div i put br/

  ? php echo $this-element('register'); ?

 I created form in element, a same way in view.


  ?php $customers = $this-requestAction('customers/add'); ?
 
 div class=customers form
 ?php echo $this-Form-create('Customer'); ?
 
 
 
 ?php
 echo $this-Form-input('salutation', array(
 'options' = array('Mr' = 'Mr', 'Mrs' = 'Mrs', 
 'Ms' = 'Ms')
 ));
 echo $this-Form-input('firstname', array('required' = true
 ));
 echo $this-Form-input('lastname', array('required' 
 = true));
 echo $this-Form-input('street', array('required' = true));
 echo $this-Form-input('zip_city', array('required' 
 = true));
 echo $this-Form-input('country', array('required' = 
 true));
 echo $this-Form-input('phone', array('required' = 
 true));
 echo $this-Form-input('email', array('required' = 
 true));
 ?
 ?php echo $this-Form-end($options); ?
 
 /div



 My controller for adding data in db:

 
 public function add(){
 if($this-request-is('customer')) {
 $this-Customer-create();
 if($this-Customer-save($this-request-data)){
 $this-Session-setFlash('Register successiful');
 }
 $this-Session-setFlash('Unable to register!');
 }
 }



 I think that is my problem in this line: 

 if($this-request-is('customer')) {



 If I remove if-statement, I succedd to store data in table, but stored and 
 more blank rows.

 I appreciate every suggestion. Thanks


-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: cant use email as login cakephp

2014-08-06 Thread José Lorenzo
That is most probably becuase you are calling $this-Auth-login($data); 
The login method will log users in when you pass an argument to it. If you 
want authentication to be checked against database, just call 
$this-Auth-login() without arguments

On Wednesday, August 6, 2014 10:59:15 AM UTC+2, Stephen S wrote:

 What you have looks fine to me, first thing I would do is the following:

 public function isAuthorized($user) {
 pr($user);
 die();
 }

 If isAuthorized gets called it'll kill the process and you can see the 
 output of user, if not something went wrong before then and we may need 
 more info to help.


 On 6 August 2014 09:41, Hakim Miah hakim.miah.7...@gmail.com wrote:

 Delete and start again and follow the example exactly in the cakephp 
 documentation...


 On Tuesday, 5 August 2014 08:38:19 UTC+1, ajt wrote:

 This function wont work as I get no output

  public function isAuthorized($user) {
 // Admin can access every action
 debug($user['role']);
 debug(asdd);



  -- 
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 --- 
 You received this message because you are subscribed to the Google Groups 
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.




 -- 
 Kind Regards
  Stephen Speakman
  

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: Custom FormWidget Vs Custom FormHelper vs ... [Cake 3]

2014-08-06 Thread Dr. Tarique Sani
Thanks, but if I look at

'inputContainerError' = 'div class=input {{type}}{{required}}
error{{content}}{{error}}/div',

I can remove the {{error}} here but then there will be no way to show it at
all by setting ['error'=true]

'inputContainer' = 'div class=input
{{type}}{{required}}{{content}}/div',

There is no way to remove label here... {{content}} has got label inside it.

So I should look at coding a custom helper?

Tarique




On Wed, Aug 6, 2014 at 4:49 PM, José Lorenzo jose@gmail.com wrote:

 Wouldn't that be possible by altering the inputContainer and
 inputContainerError templates?


 On Wednesday, August 6, 2014 11:30:02 AM UTC+2, Dr. Tarique Sani wrote:

 Hi,

 Playing around with form helpers  and form widgets in Cake 3

 Is there a way to override the Basic Widget with my custom Basic Widget
 and have options 'error'=false, 'label'=false by default?

 OR this can't be done in the widget and will have to go into my custom
 form helper

 TIA

 Tarique



 --
 =
 The Conference Schedule Creator : http://shdlr.com

 PHP for E-Biz : http://sanisoft.com
 =

  --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google Groups
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.




-- 
=
The Conference Schedule Creator : http://shdlr.com

PHP for E-Biz : http://sanisoft.com
=

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: Custom FormWidget Vs Custom FormHelper vs ... [Cake 3]

2014-08-06 Thread Thomas von Hassel
Hey

If i can chime in, the template system is very clever, but in comparison to the 
way it was done in 2.x there are quote a few more hoops to go though to achieve 
certain things.

/thomas


On 06 Aug 2014, at 13:30, Dr. Tarique Sani tariques...@gmail.com wrote:

 Thanks, but if I look at 
 
 'inputContainerError' = 'div class=input {{type}}{{required}} 
 error{{content}}{{error}}/div',
 
 I can remove the {{error}} here but then there will be no way to show it at 
 all by setting ['error'=true] 
 
 'inputContainer' = 'div class=input 
 {{type}}{{required}}{{content}}/div',
 
 There is no way to remove label here... {{content}} has got label inside it.
 
 So I should look at coding a custom helper?
 
 Tarique
 
 
 
 
 On Wed, Aug 6, 2014 at 4:49 PM, José Lorenzo jose@gmail.com wrote:
 Wouldn't that be possible by altering the inputContainer and 
 inputContainerError templates?
 
 
 On Wednesday, August 6, 2014 11:30:02 AM UTC+2, Dr. Tarique Sani wrote:
 Hi, 
 
 Playing around with form helpers  and form widgets in Cake 3 
 
 Is there a way to override the Basic Widget with my custom Basic Widget and 
 have options 'error'=false, 'label'=false by default? 
 
 OR this can't be done in the widget and will have to go into my custom form 
 helper
 
 TIA
 
 Tarique
 
 
 
 -- 
 =
 The Conference Schedule Creator : http://shdlr.com
 
 PHP for E-Biz : http://sanisoft.com
 =
 
 -- 
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP
 
 --- 
 You received this message because you are subscribed to the Google Groups 
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.
 
 
 
 -- 
 =
 The Conference Schedule Creator : http://shdlr.com
 
 PHP for E-Biz : http://sanisoft.com
 =
 
 -- 
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP
 
 --- 
 You received this message because you are subscribed to the Google Groups 
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: Custom FormWidget Vs Custom FormHelper vs ... [Cake 3]

2014-08-06 Thread Dr. Tarique Sani
But template is a much cleaner way to do it. Most of the times you can just
define templates and get away with it.

I am loving it!

T


On Wed, Aug 6, 2014 at 5:10 PM, Thomas von Hassel darx...@gmail.com wrote:

 Hey

 If i can chime in, the template system is very clever, but in comparison
 to the way it was done in 2.x there are quote a few more hoops to go though
 to achieve certain things.

 /thomas


 On 06 Aug 2014, at 13:30, Dr. Tarique Sani tariques...@gmail.com wrote:

 Thanks, but if I look at

 'inputContainerError' = 'div class=input {{type}}{{required}}
 error{{content}}{{error}}/div',

 I can remove the {{error}} here but then there will be no way to show it
 at all by setting ['error'=true]

 'inputContainer' = 'div class=input
 {{type}}{{required}}{{content}}/div',

 There is no way to remove label here... {{content}} has got label inside
 it.

 So I should look at coding a custom helper?

 Tarique




 On Wed, Aug 6, 2014 at 4:49 PM, José Lorenzo jose@gmail.com wrote:

 Wouldn't that be possible by altering the inputContainer and
 inputContainerError templates?


 On Wednesday, August 6, 2014 11:30:02 AM UTC+2, Dr. Tarique Sani wrote:

 Hi,

 Playing around with form helpers  and form widgets in Cake 3

 Is there a way to override the Basic Widget with my custom Basic Widget
 and have options 'error'=false, 'label'=false by default?

 OR this can't be done in the widget and will have to go into my custom
 form helper

 TIA

 Tarique



 --
 =
 The Conference Schedule Creator : http://shdlr.com

 PHP for E-Biz : http://sanisoft.com
 =


 --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google Groups
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.




 --
 =
 The Conference Schedule Creator : http://shdlr.com

 PHP for E-Biz : http://sanisoft.com
 =

 --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google Groups
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.


  --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google Groups
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.




-- 
=
The Conference Schedule Creator : http://shdlr.com

PHP for E-Biz : http://sanisoft.com
=

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: Custom FormWidget Vs Custom FormHelper vs ... [Cake 3]

2014-08-06 Thread Thomas von Hassel
It is cleaner ... and maybe i just need to fiddle with it some more.

For instance being able to set a class to the container div without having to 
make a template would be nice ?

On 06 Aug 2014, at 13:42, Dr. Tarique Sani tariques...@gmail.com wrote:

 But template is a much cleaner way to do it. Most of the times you can just 
 define templates and get away with it. 
 
 I am loving it! 
 
 T
 
 
 On Wed, Aug 6, 2014 at 5:10 PM, Thomas von Hassel darx...@gmail.com wrote:
 Hey
 
 If i can chime in, the template system is very clever, but in comparison to 
 the way it was done in 2.x there are quote a few more hoops to go though to 
 achieve certain things.
 
 /thomas
 
 
 On 06 Aug 2014, at 13:30, Dr. Tarique Sani tariques...@gmail.com wrote:
 
 Thanks, but if I look at 
 
 'inputContainerError' = 'div class=input {{type}}{{required}} 
 error{{content}}{{error}}/div',
 
 I can remove the {{error}} here but then there will be no way to show it at 
 all by setting ['error'=true] 
 
 'inputContainer' = 'div class=input 
 {{type}}{{required}}{{content}}/div',
 
 There is no way to remove label here... {{content}} has got label inside it.
 
 So I should look at coding a custom helper?
 
 Tarique
 
 
 
 
 On Wed, Aug 6, 2014 at 4:49 PM, José Lorenzo jose@gmail.com wrote:
 Wouldn't that be possible by altering the inputContainer and 
 inputContainerError templates?
 
 
 On Wednesday, August 6, 2014 11:30:02 AM UTC+2, Dr. Tarique Sani wrote:
 Hi, 
 
 Playing around with form helpers  and form widgets in Cake 3 
 
 Is there a way to override the Basic Widget with my custom Basic Widget and 
 have options 'error'=false, 'label'=false by default? 
 
 OR this can't be done in the widget and will have to go into my custom form 
 helper
 
 TIA
 
 Tarique
 
 
 
 -- 
 =
 The Conference Schedule Creator : http://shdlr.com
 
 PHP for E-Biz : http://sanisoft.com
 =
 
 -- 
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP
 
 --- 
 You received this message because you are subscribed to the Google Groups 
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.
 
 
 
 -- 
 =
 The Conference Schedule Creator : http://shdlr.com
 
 PHP for E-Biz : http://sanisoft.com
 =
 
 -- 
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP
 
 --- 
 You received this message because you are subscribed to the Google Groups 
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.
 
 
 -- 
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP
 
 --- 
 You received this message because you are subscribed to the Google Groups 
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.
 
 
 
 -- 
 =
 The Conference Schedule Creator : http://shdlr.com
 
 PHP for E-Biz : http://sanisoft.com
 =
 
 -- 
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP
 
 --- 
 You received this message because you are subscribed to the Google Groups 
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For 

Re: Custom FormWidget Vs Custom FormHelper vs ... [Cake 3]

2014-08-06 Thread José Lorenzo
you can change the widgets to whatever you like, including the basic 
widget. Here is a plugin that does that, for example:

https://github.com/FriendsOfCake/crud-view#example-controller

On Wednesday, August 6, 2014 1:52:02 PM UTC+2, Thomas von Hassel wrote:

 It is cleaner … and maybe i just need to fiddle with it some more.

 For instance being able to set a class to the container div without having 
 to make a template would be nice ?

 On 06 Aug 2014, at 13:42, Dr. Tarique Sani tariques...@gmail.com wrote:

 But template is a much cleaner way to do it. Most of the times you can 
 just define templates and get away with it. 

 I am loving it! 

 T


 On Wed, Aug 6, 2014 at 5:10 PM, Thomas von Hassel darx...@gmail.com 
 wrote:

 Hey

 If i can chime in, the template system is very clever, but in comparison 
 to the way it was done in 2.x there are quote a few more hoops to go though 
 to achieve certain things.

 /thomas


 On 06 Aug 2014, at 13:30, Dr. Tarique Sani tariques...@gmail.com wrote:

 Thanks, but if I look at 

 'inputContainerError' = 'div class=input {{type}}{{required}} 
 error{{content}}{{error}}/div',
  
 I can remove the {{error}} here but then there will be no way to show it 
 at all by setting ['error'=true] 

 'inputContainer' = 'div class=input 
 {{type}}{{required}}{{content}}/div',

 There is no way to remove label here... {{content}} has got label inside 
 it.

 So I should look at coding a custom helper?

 Tarique




 On Wed, Aug 6, 2014 at 4:49 PM, José Lorenzo jose@gmail.com wrote:

 Wouldn't that be possible by altering the inputContainer and 
 inputContainerError templates?


 On Wednesday, August 6, 2014 11:30:02 AM UTC+2, Dr. Tarique Sani wrote:

 Hi, 

 Playing around with form helpers  and form widgets in Cake 3 

 Is there a way to override the Basic Widget with my custom Basic Widget 
 and have options 'error'=false, 'label'=false by default? 

 OR this can't be done in the widget and will have to go into my custom 
 form helper

 TIA

 Tarique



 -- 
 =
 The Conference Schedule Creator : http://shdlr.com

 PHP for E-Biz : http://sanisoft.com
 = 


 -- 
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 --- 
 You received this message because you are subscribed to the Google 
 Groups CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.




 -- 
 =
 The Conference Schedule Creator : http://shdlr.com

 PHP for E-Biz : http://sanisoft.com
 = 

 -- 
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 --- 
 You received this message because you are subscribed to the Google Groups 
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.



 -- 
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 --- 
 You received this message because you are subscribed to the Google Groups 
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.




 -- 
 =
 The Conference Schedule Creator : http://shdlr.com

 PHP for E-Biz : http://sanisoft.com
 = 

 -- 
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 --- 
 You received this message because you are subscribed to the Google Groups 
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.




-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe 

Re: Custom FormWidget Vs Custom FormHelper vs ... [Cake 3]

2014-08-06 Thread José Lorenzo
I can see how having that would be useful. Maybe converting the 'container' 
logic into its own widget would be the best thing. Can you open a ticket 
for that?

On Wednesday, August 6, 2014 11:30:02 AM UTC+2, Dr. Tarique Sani wrote:

 Hi, 

 Playing around with form helpers  and form widgets in Cake 3 

 Is there a way to override the Basic Widget with my custom Basic Widget 
 and have options 'error'=false, 'label'=false by default? 

 OR this can't be done in the widget and will have to go into my custom 
 form helper

 TIA

 Tarique



 -- 
 =
 The Conference Schedule Creator : http://shdlr.com

 PHP for E-Biz : http://sanisoft.com
 = 


-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Authentication redirect problem when not logged in

2014-08-06 Thread Sam Clauw
I reached the authentication part of my CakePHP based cms system, things 
are going very well (thanks to you guys) ;)
As in every application, I should ask for a username / password combination 
when somebody tries to get into my CMS. This CMS is build as a plugin and 
is called CoasterCms. Without login, you can reach it by the following 
url for example:

http://new.bellewaerdefun.be/coaster_cms/attractions/index


Now, when I change my CoasterCmsAppController.php and update my $components 
variable with the Auth array value:

class CoasterCmsAppController extends AppController
 {
 ...
 
 public $components = array(
 'Session',
 'Paginator'/*,
 'Auth' = array(
 'loginRedirect' = array(
 'plugin' = 'CoasterCms',
 'controller' = 'attractions',
 'action' = 'index'
 ),
 'logoutRedirect' = array(
 'plugin' = 'CoasterCms',
 'controller' = 'attractions',
 'action' = 'index',
 ),
 'authenticate' = array(
 'Form' = array(
 'passwordHasher' = 'Blowfish'
 )
 )
 )*/
 );
 ...
 }


... then I'm constantly redirected to the url:

http://new.bellewaerdefun.be/users/login


What's the reason of that and how can I change it so I can link it to the 
plugin? 

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: Stuck with migration from 1.3 to 2.x / euromark plugin

2014-08-06 Thread Chetan Patel
Upgrade CakePHP 1.2 to 2.4

*What I have :*

I have cakephp application,which is in CakePHP 1.2.12.

*What I tried :*

I use Upgrade Plugin : https://github.com/dereuromark/cakephp-upgrade

I have followed all the step
1. download new Cakephp 2.4
2. create Plugin in folder inside app of cakephp1.3 application
3. rename /app/config folder to /app/Config
4. write CakePlugin::loadAll(); in my app/Config bootstrap


*What the error :*
when I try to 
..\lib\Cake\Console\cake Upgrade.Upgrade all

Its give me error like

Error: Plugin Upgrade could not be found.
#0 C:\xampp\htdocs\cakephp24\lib\Cake\Core\App.php(365): 
CakePlugin::path('Upgra
de')
#1 C:\xampp\htdocs\cakephp24\lib\Cake\Core\App.php(226): 
App::pluginPath('Upgrad
e')
#2 C:\xampp\htdocs\cakephp24\lib\Cake\Core\App.php(547): 
App::path('Console/Comm
and', 'Upgrade')
#3 [internal function]: App::load('UpgradeShell')
#4 [internal function]: spl_autoload_call('UpgradeShell')
#5 C:\xampp\htdocs\cakephp24\lib\Cake\Console\ShellDispatcher.php(247): 
class_ex
ists('UpgradeShell')
#6 C:\xampp\htdocs\cakephp24\lib\Cake\Console\ShellDispatcher.php(198): 
ShellDis
patcher-_getShell('Upgrade.Upgrade')
#7 C:\xampp\htdocs\cakephp24\lib\Cake\Console\ShellDispatcher.php(66): 
ShellDisp
atcher-dispatch()
#8 C:\xampp\htdocs\cakephp24\lib\Cake\Console\cake.php(49): 
ShellDispatcher::run
(Array)
#9 {main}

On Sunday, 24 February 2013 18:35:52 UTC+5:30, acl68 wrote:

 -BEGIN PGP SIGNED MESSAGE- 
 Hash: SHA1 

 Hi everybody, 


 after getting strange error messages with the default 2.0 migration 
 shell I tried it now with the improved version from euromark: 
 https://github.com/dereuromark/upgrade 


 Here the facts: 
 I am running Linux with php 5.4. 
 I downloaded cake 2.3.0 and euromarks plug-in. 
 After unpacking the new cake version to my webroot ( and setting all 
 rights to executable for me an my Apache) I renamed my 1.3 app to app, 
 adapted the cake core path in my webroot/index.php so it points to the 
 Cake folder in the lib folder. I renamed app/config to app/Config and 
 added the CakePlugin::loadAll(); to the bootstrap. 


 Questions: 
 Where do the files from the plug-in go? Do they just stay in the 
 app/plug-in/upgrade-master folder? Or do I replace the files in the 
 default Cake Core folders with them? 

 Can I tell the upgrade shell which app it should update, or do I have to 
 rename it to app? 

 When I tried to let it run no files were changed but empty folders 
 Model Controller etc were created under /app/Console/... 


 Exists there somewhere an extensive HowTo for using this plug-in? The 
 readme doesn't answer all my questions. 


 Also it works only if I call the shell with 
 /var/www/cakephp-2.3.0/app/Console$ ./cake upgrade all 
 and not 
 /var/www/cakephp-2.3.0/app/Console$ ./cake Upgrade.Upgrade all 

 Thanks for any help! If I don't get this done within the next week I 
 will stay with 1.3. *sigh* 

 Calamity Jane 

 -BEGIN PGP SIGNATURE- 
 Version: GnuPG v1.4.11 (GNU/Linux) 

 iEYEARECAAYFAlEqEDAACgkQbOdiIJzHNKHn/wCeIPKqr75ECx+feuEXfwOxSIPW 
 pEUAn2b2NDeIRnfbkfsL9lIxbPwsY5GY 
 =QeEG 
 -END PGP SIGNATURE- 


-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: Custom FormWidget Vs Custom FormHelper vs ... [Cake 3]

2014-08-06 Thread Dr. Tarique Sani
Thanks for the URL that is helpful.

Regards
Tarique


On Wed, Aug 6, 2014 at 6:15 PM, José Lorenzo jose@gmail.com wrote:

 you can change the widgets to whatever you like, including the basic
 widget. Here is a plugin that does that, for example:

 https://github.com/FriendsOfCake/crud-view#example-controller


 On Wednesday, August 6, 2014 1:52:02 PM UTC+2, Thomas von Hassel wrote:

 It is cleaner … and maybe i just need to fiddle with it some more.

 For instance being able to set a class to the container div without
 having to make a template would be nice ?

 On 06 Aug 2014, at 13:42, Dr. Tarique Sani tariques...@gmail.com wrote:

 But template is a much cleaner way to do it. Most of the times you can
 just define templates and get away with it.

 I am loving it!

 T


 On Wed, Aug 6, 2014 at 5:10 PM, Thomas von Hassel darx...@gmail.com
 wrote:

 Hey

 If i can chime in, the template system is very clever, but in comparison
 to the way it was done in 2.x there are quote a few more hoops to go though
 to achieve certain things.

 /thomas


 On 06 Aug 2014, at 13:30, Dr. Tarique Sani tariques...@gmail.com
 wrote:

 Thanks, but if I look at

 'inputContainerError' = 'div class=input {{type}}{{required}}
 error{{content}}{{error}}/div',

 I can remove the {{error}} here but then there will be no way to show it
 at all by setting ['error'=true]

 'inputContainer' = 'div class=input {{type}}{{required}}{{
 content}}/div',

 There is no way to remove label here... {{content}} has got label inside
 it.

 So I should look at coding a custom helper?

 Tarique




 On Wed, Aug 6, 2014 at 4:49 PM, José Lorenzo jose@gmail.com wrote:

 Wouldn't that be possible by altering the inputContainer and
 inputContainerError templates?


 On Wednesday, August 6, 2014 11:30:02 AM UTC+2, Dr. Tarique Sani wrote:

 Hi,

 Playing around with form helpers  and form widgets in Cake 3

 Is there a way to override the Basic Widget with my custom Basic
 Widget and have options 'error'=false, 'label'=false by default?

 OR this can't be done in the widget and will have to go into my custom
 form helper

 TIA

 Tarique



 --
 =
 The Conference Schedule Creator : http://shdlr.com

 PHP for E-Biz : http://sanisoft.com
 =


 --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google
 Groups CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.




 --
 =
 The Conference Schedule Creator : http://shdlr.com

 PHP for E-Biz : http://sanisoft.com
 =

 --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google
 Groups CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.



 --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google
 Groups CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.




 --
 =
 The Conference Schedule Creator : http://shdlr.com

 PHP for E-Biz : http://sanisoft.com
 =

 --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google Groups
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.


  --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received 

Re: Custom FormWidget Vs Custom FormHelper vs ... [Cake 3]

2014-08-06 Thread Thomas von Hassel
Indeed, the only things i would like is:

place checkbox inside it's label like bootstrap wants it without hacking things 
together
set a class on a container from field to field


On 06 Aug 2014, at 16:30, Dr. Tarique Sani tariques...@gmail.com wrote:

 Thanks for the URL that is helpful.
 
 Regards
 Tarique
 
 
 On Wed, Aug 6, 2014 at 6:15 PM, José Lorenzo jose@gmail.com wrote:
 you can change the widgets to whatever you like, including the basic widget. 
 Here is a plugin that does that, for example:
 
 https://github.com/FriendsOfCake/crud-view#example-controller
 
 
 On Wednesday, August 6, 2014 1:52:02 PM UTC+2, Thomas von Hassel wrote:
 It is cleaner ... and maybe i just need to fiddle with it some more.
 
 For instance being able to set a class to the container div without having to 
 make a template would be nice ?
 
 On 06 Aug 2014, at 13:42, Dr. Tarique Sani tariques...@gmail.com wrote:
 
 But template is a much cleaner way to do it. Most of the times you can just 
 define templates and get away with it. 
 
 I am loving it! 
 
 T
 
 
 On Wed, Aug 6, 2014 at 5:10 PM, Thomas von Hassel darx...@gmail.com wrote:
 Hey
 
 If i can chime in, the template system is very clever, but in comparison to 
 the way it was done in 2.x there are quote a few more hoops to go though to 
 achieve certain things.
 
 /thomas
 
 
 On 06 Aug 2014, at 13:30, Dr. Tarique Sani tariques...@gmail.com wrote:
 
 Thanks, but if I look at 
 
 'inputContainerError' = 'div class=input {{type}}{{required}} 
 error{{content}}{{error}}/div',
 
 I can remove the {{error}} here but then there will be no way to show it at 
 all by setting ['error'=true] 
 
 'inputContainer' = 'div class=input 
 {{type}}{{required}}{{content}}/div',
 
 There is no way to remove label here... {{content}} has got label inside it.
 
 So I should look at coding a custom helper?
 
 Tarique
 
 
 
 
 On Wed, Aug 6, 2014 at 4:49 PM, José Lorenzo jose@gmail.com wrote:
 Wouldn't that be possible by altering the inputContainer and 
 inputContainerError templates?
 
 
 On Wednesday, August 6, 2014 11:30:02 AM UTC+2, Dr. Tarique Sani wrote:
 Hi, 
 
 Playing around with form helpers  and form widgets in Cake 3 
 
 Is there a way to override the Basic Widget with my custom Basic Widget and 
 have options 'error'=false, 'label'=false by default? 
 
 OR this can't be done in the widget and will have to go into my custom form 
 helper
 
 TIA
 
 Tarique
 
 
 
 -- 
 =
 The Conference Schedule Creator : http://shdlr.com
 
 PHP for E-Biz : http://sanisoft.com
 =
 
 -- 
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP
 
 --- 
 You received this message because you are subscribed to the Google Groups 
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.
 
 
 
 -- 
 =
 The Conference Schedule Creator : http://shdlr.com
 
 PHP for E-Biz : http://sanisoft.com
 =
 
 -- 
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP
 
 --- 
 You received this message because you are subscribed to the Google Groups 
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.
 
 
 -- 
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP
 
 --- 
 You received this message because you are subscribed to the Google Groups 
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.
 
 
 
 -- 
 =
 The Conference Schedule Creator : http://shdlr.com
 
 PHP for E-Biz : http://sanisoft.com
 =
 
 -- 
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP
 
 --- 
 You received this message because you are subscribed to the Google Groups 
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to 

Re: Stuck with migration from 1.3 to 2.x / euromark plugin

2014-08-06 Thread euromark
See http://stackoverflow.com/questions/25162334/upgrade-cakephp-1-2-to-2-4 
for future reference

Am Mittwoch, 6. August 2014 16:04:42 UTC+2 schrieb Chetan Patel:

 Upgrade CakePHP 1.2 to 2.4

 *What I have :*

 I have cakephp application,which is in CakePHP 1.2.12.

 *What I tried :*

 I use Upgrade Plugin : https://github.com/dereuromark/cakephp-upgrade

 I have followed all the step
 1. download new Cakephp 2.4
 2. create Plugin in folder inside app of cakephp1.3 application
 3. rename /app/config folder to /app/Config
 4. write CakePlugin::loadAll(); in my app/Config bootstrap


 *What the error :*
 when I try to 
 ..\lib\Cake\Console\cake Upgrade.Upgrade all

 Its give me error like

 Error: Plugin Upgrade could not be found.
 #0 C:\xampp\htdocs\cakephp24\lib\Cake\Core\App.php(365): 
 CakePlugin::path('Upgra
 de')
 #1 C:\xampp\htdocs\cakephp24\lib\Cake\Core\App.php(226): 
 App::pluginPath('Upgrad
 e')
 #2 C:\xampp\htdocs\cakephp24\lib\Cake\Core\App.php(547): 
 App::path('Console/Comm
 and', 'Upgrade')
 #3 [internal function]: App::load('UpgradeShell')
 #4 [internal function]: spl_autoload_call('UpgradeShell')
 #5 C:\xampp\htdocs\cakephp24\lib\Cake\Console\ShellDispatcher.php(247): 
 class_ex
 ists('UpgradeShell')
 #6 C:\xampp\htdocs\cakephp24\lib\Cake\Console\ShellDispatcher.php(198): 
 ShellDis
 patcher-_getShell('Upgrade.Upgrade')
 #7 C:\xampp\htdocs\cakephp24\lib\Cake\Console\ShellDispatcher.php(66): 
 ShellDisp
 atcher-dispatch()
 #8 C:\xampp\htdocs\cakephp24\lib\Cake\Console\cake.php(49): 
 ShellDispatcher::run
 (Array)
 #9 {main}

 On Sunday, 24 February 2013 18:35:52 UTC+5:30, acl68 wrote:

 -BEGIN PGP SIGNED MESSAGE- 
 Hash: SHA1 

 Hi everybody, 


 after getting strange error messages with the default 2.0 migration 
 shell I tried it now with the improved version from euromark: 
 https://github.com/dereuromark/upgrade 


 Here the facts: 
 I am running Linux with php 5.4. 
 I downloaded cake 2.3.0 and euromarks plug-in. 
 After unpacking the new cake version to my webroot ( and setting all 
 rights to executable for me an my Apache) I renamed my 1.3 app to app, 
 adapted the cake core path in my webroot/index.php so it points to the 
 Cake folder in the lib folder. I renamed app/config to app/Config and 
 added the CakePlugin::loadAll(); to the bootstrap. 


 Questions: 
 Where do the files from the plug-in go? Do they just stay in the 
 app/plug-in/upgrade-master folder? Or do I replace the files in the 
 default Cake Core folders with them? 

 Can I tell the upgrade shell which app it should update, or do I have to 
 rename it to app? 

 When I tried to let it run no files were changed but empty folders 
 Model Controller etc were created under /app/Console/... 


 Exists there somewhere an extensive HowTo for using this plug-in? The 
 readme doesn't answer all my questions. 


 Also it works only if I call the shell with 
 /var/www/cakephp-2.3.0/app/Console$ ./cake upgrade all 
 and not 
 /var/www/cakephp-2.3.0/app/Console$ ./cake Upgrade.Upgrade all 

 Thanks for any help! If I don't get this done within the next week I 
 will stay with 1.3. *sigh* 

 Calamity Jane 

 -BEGIN PGP SIGNATURE- 
 Version: GnuPG v1.4.11 (GNU/Linux) 

 iEYEARECAAYFAlEqEDAACgkQbOdiIJzHNKHn/wCeIPKqr75ECx+feuEXfwOxSIPW 
 pEUAn2b2NDeIRnfbkfsL9lIxbPwsY5GY 
 =QeEG 
 -END PGP SIGNATURE- 



-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: Custom FormWidget Vs Custom FormHelper vs ... [Cake 3]

2014-08-06 Thread Dr. Tarique Sani
Actually the best thing would be if the whole project used a popular CSS
framework but I know it is too much to ask at this point and a well written
bootstrap based formhelper would take away most of my pain at this point.

I think I will borrow the widgets and helpers from the crud-view plugin :)

Cheers
T




On Wed, Aug 6, 2014 at 8:14 PM, Thomas von Hassel darx...@gmail.com wrote:

 Indeed, the only things i would like is:

 place checkbox inside it’s label like bootstrap wants it without hacking
 things together
 set a class on a container from field to field


 On 06 Aug 2014, at 16:30, Dr. Tarique Sani tariques...@gmail.com wrote:

 Thanks for the URL that is helpful.

 Regards
 Tarique


 On Wed, Aug 6, 2014 at 6:15 PM, José Lorenzo jose@gmail.com wrote:

 you can change the widgets to whatever you like, including the basic
 widget. Here is a plugin that does that, for example:

 https://github.com/FriendsOfCake/crud-view#example-controller


 On Wednesday, August 6, 2014 1:52:02 PM UTC+2, Thomas von Hassel wrote:

 It is cleaner … and maybe i just need to fiddle with it some more.

 For instance being able to set a class to the container div without
 having to make a template would be nice ?

 On 06 Aug 2014, at 13:42, Dr. Tarique Sani tariques...@gmail.com
 wrote:

 But template is a much cleaner way to do it. Most of the times you can
 just define templates and get away with it.

 I am loving it!

 T


 On Wed, Aug 6, 2014 at 5:10 PM, Thomas von Hassel darx...@gmail.com
 wrote:

 Hey

 If i can chime in, the template system is very clever, but in
 comparison to the way it was done in 2.x there are quote a few more hoops
 to go though to achieve certain things.

 /thomas


 On 06 Aug 2014, at 13:30, Dr. Tarique Sani tariques...@gmail.com
 wrote:

 Thanks, but if I look at

 'inputContainerError' = 'div class=input {{type}}{{required}}
 error{{content}}{{error}}/div',

 I can remove the {{error}} here but then there will be no way to show
 it at all by setting ['error'=true]

 'inputContainer' = 'div class=input {{type}}{{required}}{{
 content}}/div',

 There is no way to remove label here... {{content}} has got label
 inside it.

 So I should look at coding a custom helper?

 Tarique




 On Wed, Aug 6, 2014 at 4:49 PM, José Lorenzo jose@gmail.com
 wrote:

 Wouldn't that be possible by altering the inputContainer and
 inputContainerError templates?


 On Wednesday, August 6, 2014 11:30:02 AM UTC+2, Dr. Tarique Sani wrote:

 Hi,

 Playing around with form helpers  and form widgets in Cake 3

 Is there a way to override the Basic Widget with my custom Basic
 Widget and have options 'error'=false, 'label'=false by default?

 OR this can't be done in the widget and will have to go into my
 custom form helper

 TIA

 Tarique



 --
 =
 The Conference Schedule Creator : http://shdlr.com

 PHP for E-Biz : http://sanisoft.com
 =


 --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google
 Groups CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.




 --
 =
 The Conference Schedule Creator : http://shdlr.com

 PHP for E-Biz : http://sanisoft.com
 =

 --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google
 Groups CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.



 --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google
 Groups CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.




 --
 =
 The Conference Schedule Creator : http://shdlr.com

 PHP for E-Biz : http://sanisoft.com