Access session values on a custom component on Cakephp 3

2014-11-20 Thread Jipson Thomas
Hi,
Would you please let me know how I could access the session stored value 
from a custom component in cakephp 3. When I tried to access like 
$this->request->session()->read('Vendor.primary_manager');

I am getting the following error.
*Error: * Call to a member function session() on a non-object 
*File* /src/Controller/Component/CemailsComponent.php 
*Line: * 29

Regards
Jipson Thomas

-- 
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.


Error on phar update cakephp3

2014-11-12 Thread Jipson Thomas
Hi,
In our cakephp 3 project under development we were updating the library 
files using php composer.phar self-update and php composer.phar update. For 
last one week after this update I am getting an internal error message. 
Would you please help me to fix this?

Regards,
Jipson

-- 
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.


Access layout HTML in controller variable

2014-10-31 Thread Jipson Thomas
HI,
In my cakephp 3 project I am using mandrill API to send email campaigns. So 
from a controller function I am creating the html section of the email and 
pass it to mandrill. Is there any way that I can access the html generating 
by a layout in controller function and to create the html to pass to the 
mandrill?

Thanks in advance,
Jipson

-- 
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.


Ajax populates form fields in cakephp 3

2014-10-07 Thread Jipson Thomas
Hi ,
Would you please let me know is there any sample code or tutorials to 
integrate ajax populated form input field in cakephp 3. I found some 
samples wth cakephp 2 but those are using js helper, so I am not sure how I 
can bring those in cake PHP 3.
In my form I have a select box to select financial quarters, and some check 
boxes to choose the campaigns of selected financial quarter . So based on 
the selection of value in financial quarter select box I need to recreate 
the campaign check boxes. Thank you very much for your help in advance.

Thanks and Regards,
Jipson

-- 
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.


Accessing Vendor classes in cakephp 3 Controller

2014-09-19 Thread Jipson Thomas
Hi 
I am using Mandrill API (from a composer pack) in my cakephp 3 project. I 
installed the mandrill as a vendor by editing composer.js file by adding 
the line "require": {
"php": ">=5.4.16",
"cakephp/cakephp": "3.0.*-dev",
"mobiledetect/mobiledetectlib": "2.*",
"cakephp/debug_kit": "3.0.*-dev",
"mandrill/mandrill": "1.0.*"
},
Now I have a folder named mandrill in my vendors folder. So as the next 
step how I can access the classes and functions of mandrill in my 
controller class. That means how I can include the library like we are 
doing with cake 
use Cake\Event\Event; on top of controller class. And also how I can access 
the functions of mandrill classes

Thanks in advance.
Jipson

-- 
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: Credit card Expiry Date format in CakePHP 3

2014-09-18 Thread Jipson Thomas
Hi Mark,
Thank you for the update. This is helpful to rename the month name, but 
unfortunately I couldn't find anything to change the order of select box 
positions.

Thanks,
Jipson

On Wednesday, 17 September 2014 19:21:14 UTC+1, euromark wrote:
>
> According to the docs this is all easily possible:
>
> http://book.cakephp.org/3.0/en/core-libraries/helpers/form.html#datetime-options
>
>
> Am Mittwoch, 17. September 2014 15:48:31 UTC+2 schrieb Jipson Thomas:
>>
>> Hi ,
>> Is there any option with the date input to change the display order. For 
>> example now following code is generating two select box first one with the 
>> year and second one with the month name. Actually for my project we require 
>> to show the month select option first and then the year select box. Also in 
>> the month select box we want to show the month number from 01 to 12 instead 
>> of month name. Is there any parameter will do it ?
>>
>> Thanks and Regards,
>> Jipson
>>
>> On Tuesday, 12 August 2014 09:23:42 UTC+1, Jipson Thomas wrote:
>>>
>>> Thank you Mark. It is working.
>>> Regards,
>>> Jipson
>>>
>>> On Monday, 11 August 2014 13:14:37 UTC+1, mark_story wrote:
>>>>
>>>> You should be able to set day => false in the options to turn off the 
>>>> day input.
>>>
>>>

-- 
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: Credit card Expiry Date format in CakePHP 3

2014-09-17 Thread Jipson Thomas
Hi ,
Is there any option with the date input to change the display order. For 
example now following code is generating two select box first one with the 
year and second one with the month name. Actually for my project we require 
to show the month select option first and then the year select box. Also in 
the month select box we want to show the month number from 01 to 12 instead 
of month name. Is there any parameter will do it ?

Thanks and Regards,
Jipson

On Tuesday, 12 August 2014 09:23:42 UTC+1, Jipson Thomas wrote:
>
> Thank you Mark. It is working.
> Regards,
> Jipson
>
> On Monday, 11 August 2014 13:14:37 UTC+1, mark_story wrote:
>>
>> You should be able to set day => false in the options to turn off the day 
>> input.
>
>

-- 
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: Authentication by logging out from all other devices in CakePHP 3

2014-09-16 Thread Jipson Thomas
Hi Mark,
Thank you very much. I hope this solution should work out for me.
Regards,
Jipson

On Tuesday, 16 September 2014 12:31:40 UTC+1, Jipson Thomas wrote:
>
> Hi All,
> Do we have any option in cakephp 3 authentication to make the user logged 
> out from all other devices when he/she try to login using the same 
> credentials from one new machine?
>
> For example
> I logged into mycake.com using jip...@mycake.com username and 123 
> password from my iPhone browser.
> Now I am trying to login to the mycake.com using jip...@mycake.com 
> username and 123 password from my windows. Now the system should let me to 
> log in on windows but it should log out me from iPhone automatically. Is 
> there any predefined method in our component for achieving this?
>
> Regards
> Jipson
>

-- 
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 by logging out from all other devices in CakePHP 3

2014-09-16 Thread Jipson Thomas
Hi All,
Do we have any option in cakephp 3 authentication to make the user logged 
out from all other devices when he/she try to login using the same 
credentials from one new machine?

For example
I logged into mycake.com using jip...@mycake.com username and 123 password 
from my iPhone browser.
Now I am trying to login to the mycake.com using jip...@mycake.com username 
and 123 password from my windows. Now the system should let me to log in on 
windows but it should log out me from iPhone automatically. Is there any 
predefined method in our component for achieving this?

Regards
Jipson

-- 
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.


How to set startd date today on form date input in Cakephp3

2014-09-08 Thread Jipson Thomas
Hi,
Would you please let me know how I can set the expiry date field using form 
date input in cakephp 3 with a validation that it should be a future date. 
My code written on template s as follows.
echo $this->Form->input('expiry_date', [
'label' => 'Expiry Date',
'minYear' => date('Y'),
'maxYear' => date('Y')+10,
    'type'=> 'date',
'class' => 'form-control'
]);

Thanks,
Jipson

-- 
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: Get controller name on layout file - CakePHP3

2014-08-28 Thread Jipson Thomas
Thank you very much. I got it working using the following command
$this->request->params['controller']

Regards,
Jipson

On Thursday, 28 August 2014 13:42:54 UTC+1, Thomas von Hassel wrote:
>
> you have to look in `$this->request` instead
>
>
> On 28 Aug 2014, at 14:35, Jipson Thomas  > wrote:
>
> Hi,
> In my Cakephp 3 project on the layout file, I want to set menu classes 
> based on the current controller name. After a search I tried to get it 
> through the following command on my layout.ctp file
> params['controller']; ?>
>
> But it throughs me an error as following
> *Error: * *paramsHelper* could not be found. 
> *Error: * Create the class *paramsHelper* below in file: 
> src/View/Helper/paramsHelper.php
>
> Does anyone know any fix for this?
>
> Regards,
> Jipson
>
>
> -- 
> 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+u...@googlegroups.com .
> To post to this group, send email to cake...@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: How to get controller name from an element view?

2014-08-28 Thread Jipson Thomas
Thank you. I got it working by the following command.
$this->request->params['controller']
Thanks,
Jipson

On Friday, 8 February 2008 19:30:35 UTC, Guill3rmo wrote:
>
> Hi im newbie and my English still sucks, but i want to know get the 
> controller name since an element view. 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.


Get controller name on layout file - CakePHP3

2014-08-28 Thread Jipson Thomas
Hi,
In my Cakephp 3 project on the layout file, I want to set menu classes 
based on the current controller name. After a search I tried to get it 
through the following command on my layout.ctp file
params['controller']; ?>

But it throughs me an error as following
*Error: * *paramsHelper* could not be found. 
*Error: * Create the class *paramsHelper* below in file: 
src/View/Helper/paramsHelper.php

Does anyone know any fix for this?

Regards,
Jipson

-- 
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: How to get controller name from an element view?

2014-08-28 Thread Jipson Thomas
Hi ,
I tried this solution to get controller name on my layout file, but I am 
getting an error on CakePHP3 as follows,
*Error: * *paramsHelper* could not be found. 
IS there anyone know a proper solution for this?

Regards,
Jipson

On Friday, 8 February 2008 19:30:35 UTC, Guill3rmo wrote:
>
> Hi im newbie and my English still sucks, but i want to know get the 
> controller name since an element view. 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: Error: JsHelper could not be found. CakePHP3

2014-08-27 Thread Jipson Thomas
HI Jose,
Thank you.
Regards,
Jipson

On Wednesday, 27 August 2014 14:59:29 UTC+1, Jipson Thomas wrote:
>
> Hi,
> Is there any alternative for JS helper in cakephp 3? I tried to integrate 
> tinymceditor to my cakephp 3 website based on the tutorial on 
> http://bakery.cakephp.org/articles/galitul/2012/04/11/helper_tinymce_for_cakephp_2
> .
> When I am accessing the form , I get the following error.
> *Error: * *JsHelper* could not be found.
> *Error: * Create the class *JsHelper* below in file: 
> src/View/Helper/JsHelper.php
>
> Would you please help me to fix this?
> Regards,
> Jipson
>

-- 
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: Select Null option on helper on CakePHP3

2014-08-27 Thread Jipson Thomas
Thank you all.
Regards,
Jipson

On Wednesday, 27 August 2014 15:56:00 UTC+1, Stephen S wrote:
>
> You may also do something like 'empty' => 'Select Company' and pass a 
> string if you want to customise that particular option.
>
>
> On 27 August 2014 14:15, Jipson Thomas  > wrote:
>
>> Hi Stephen,
>> Thank you very much. It is working for me now. The amendment I made on 
>> view file is as follows
>>
>>  echo $this->Form->input('company_id',['options' => $company_list,'empty' 
>> =>true]);
>>
>> Regards,
>> Jipson
>>
>>
>> On Wednesday, 27 August 2014 14:03:56 UTC+1, Stephen S wrote:
>>
>>> As per the CakePHP 3 API you can still pass empty to $this->Form->select 
>>> (similar to 2.x)
>>> http://api.cakephp.org/3.0/class-Cake.View.Helper.
>>> FormHelper.html#_select
>>>
>>> This isn't mentioned in the CakePHP 3 FormHelper book though it seems.
>>>
>>>
>>> On 27 August 2014 13:54, Jipson Thomas  
>>> wrote:
>>>
>>>> Hi,
>>>> Would you please let me know how I can add a Null option to Cake php3 
>>>> form helper.
>>>>
>>>> In my drop down I am listing all the company names from database, but I 
>>>> don't know how I can add a null option to this. Because of this, I am 
>>>> compelled to select any company and it is not letting me to choose no 
>>>> company.
>>>>
>>>> The Code I use is as following.
>>>>
>>>> Controller
>>>> ==
>>>> $this->set('company_list',$company_list);
>>>>
>>>> View
>>>> =
>>>>  echo $this->Form->select('company_id',['Company' => $company_list]);
>>>>
>>>> Thanks,
>>>> Jipson
>>>>
>>>> -- 
>>>> 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+u...@googlegroups.com.
>>>> To post to this group, send email to cake...@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+u...@googlegroups.com .
>> To post to this group, send email to cake...@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.


Error: JsHelper could not be found. CakePHP3

2014-08-27 Thread Jipson Thomas
Hi,
Is there any alternative for JS helper in cakephp 3? I tried to integrate 
tinymceditor to my cakephp 3 website based on the tutorial on 
http://bakery.cakephp.org/articles/galitul/2012/04/11/helper_tinymce_for_cakephp_2.
When I am accessing the form , I get the following error.
*Error: * *JsHelper* could not be found.
*Error: * Create the class *JsHelper* below in file: 
src/View/Helper/JsHelper.php

Would you please help me to fix this?
Regards,
Jipson

-- 
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: Select Null option / WYSIWYG Editors on helper on CakePHP3

2014-08-27 Thread Jipson Thomas
Hi,
Excuse me on asking one more question. Is there any documentation or 
tutorial to show how I can use Wysiwygeditors like tinyMCEditor in cakephp 
3?

Regards,
Jipson

On Wednesday, 27 August 2014 13:54:43 UTC+1, Jipson Thomas wrote:
>
> Hi,
> Would you please let me know how I can add a Null option to Cake php3 form 
> helper.
>
> In my drop down I am listing all the company names from database, but I 
> don't know how I can add a null option to this. Because of this, I am 
> compelled to select any company and it is not letting me to choose no 
> company.
>
> The Code I use is as following.
>
> Controller
> ==
> $this->set('company_list',$company_list);
>
> View
> =
>  echo $this->Form->select('company_id',['Company' => $company_list]);
>
> Thanks,
> Jipson
>

-- 
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: Select Null option on helper on CakePHP3

2014-08-27 Thread Jipson Thomas
Hi Stephen,
Thank you very much. It is working for me now. The amendment I made on view 
file is as follows

 echo $this->Form->input('company_id',['options' => $company_list,'empty' 
=>true]);

Regards,
Jipson

On Wednesday, 27 August 2014 14:03:56 UTC+1, Stephen S wrote:
>
> As per the CakePHP 3 API you can still pass empty to $this->Form->select 
> (similar to 2.x)
> http://api.cakephp.org/3.0/class-Cake.View.Helper.FormHelper.html#_select
>
> This isn't mentioned in the CakePHP 3 FormHelper book though it seems.
>
>
> On 27 August 2014 13:54, Jipson Thomas  > wrote:
>
>> Hi,
>> Would you please let me know how I can add a Null option to Cake php3 
>> form helper.
>>
>> In my drop down I am listing all the company names from database, but I 
>> don't know how I can add a null option to this. Because of this, I am 
>> compelled to select any company and it is not letting me to choose no 
>> company.
>>
>> The Code I use is as following.
>>
>> Controller
>> ======
>> $this->set('company_list',$company_list);
>>
>> View
>> =
>>  echo $this->Form->select('company_id',['Company' => $company_list]);
>>
>> Thanks,
>> Jipson
>>
>> -- 
>> 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+u...@googlegroups.com .
>> To post to this group, send email to cake...@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.


Select Null option on helper on CakePHP3

2014-08-27 Thread Jipson Thomas
Hi,
Would you please let me know how I can add a Null option to Cake php3 form 
helper.

In my drop down I am listing all the company names from database, but I 
don't know how I can add a null option to this. Because of this, I am 
compelled to select any company and it is not letting me to choose no 
company.

The Code I use is as following.

Controller
==
$this->set('company_list',$company_list);

View
=
 echo $this->Form->select('company_id',['Company' => $company_list]);

Thanks,
Jipson

-- 
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: How to access vendor classes in CakePHP 3

2014-08-18 Thread Jipson Thomas
Hi Thomas,
Thank you. I did that and I changed my  controller as follows.
AuthorizeNetSubscription;
$subscription->name= "PHP Monthly Magazine";
$subscription->intervalLength  = "1";
$subscription->intervalUnit= "months";
$subscription->startDate   = "2014-08-14";
$subscription->totalOccurrences= "12";
$subscription->amount  = "12.99";
$subscription->creditCardCardNumber= "60110012";
$subscription->creditCardExpirationDate= "2018-10";
$subscription->creditCardCardCode  = "123";
$subscription->billToFirstName = "Rasmus";
$subscription->billToLastName  = "Doe";
//print_r($subscription);exit;
// Create the subscription.
$request = $this->AuthorizeNetARB;
$response= $request->createSubscription($subscription);
$subscription_id = $response->getSubscriptionId();
echo $subscription_id;exit;
}

}

When I checked the code of Authorize.net, I found it as
autoload.php
==
 filename for SPL autoloading.
 *
 * @package AuthorizeNet
 */

$libDir= __DIR__ . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR;
$sharedDir = $libDir . 'shared' . DIRECTORY_SEPARATOR;

return array(
'AuthorizeNetAIM'=> $libDir. 'AuthorizeNetAIM.php',
'AuthorizeNetAIM_Response'   => $libDir. 'AuthorizeNetAIM.php',
'AuthorizeNetARB'=> $libDir. 'AuthorizeNetARB.php',
'AuthorizeNetARB_Response'   => $libDir. 'AuthorizeNetARB.php',
'AuthorizeNetAddress'=> $sharedDir . 'AuthorizeNetTypes.php',
'AuthorizeNetBankAccount'=> $sharedDir . 'AuthorizeNetTypes.php',
'AuthorizeNetCIM'=> $libDir. 'AuthorizeNetCIM.php',
'AuthorizeNetCIM_Response'   => $libDir. 'AuthorizeNetCIM.php',
'AuthorizeNetCP' => $libDir. 'AuthorizeNetCP.php',
'AuthorizeNetCP_Response'=> $libDir. 'AuthorizeNetCP.php',
'AuthorizeNetCreditCard' => $sharedDir . 'AuthorizeNetTypes.php',
'AuthorizeNetCustomer'   => $sharedDir . 'AuthorizeNetTypes.php',
'AuthorizeNetDPM'=> $libDir. 'AuthorizeNetDPM.php',
'AuthorizeNetException'  => $sharedDir . 
'AuthorizeNetException.php',
'AuthorizeNetLineItem'   => $sharedDir . 'AuthorizeNetTypes.php',
'AuthorizeNetPayment'=> $sharedDir . 'AuthorizeNetTypes.php',
'AuthorizeNetPaymentProfile' => $sharedDir . 'AuthorizeNetTypes.php',
'AuthorizeNetRequest'=> $sharedDir . 'AuthorizeNetRequest.php',
'AuthorizeNetResponse'   => $sharedDir . 'AuthorizeNetResponse.php',
'AuthorizeNetSIM'=> $libDir. 'AuthorizeNetSIM.php',
'AuthorizeNetSIM_Form'   => $libDir. 'AuthorizeNetSIM.php',
'AuthorizeNetSOAP'   => $libDir. 'AuthorizeNetSOAP.php',
'AuthorizeNetTD' => $libDir. 'AuthorizeNetTD.php',
'AuthorizeNetTD_Response'=> $libDir. 'AuthorizeNetTD.php',
'AuthorizeNetTransaction'=> $sharedDir . 'AuthorizeNetTypes.php',
'AuthorizeNetXMLResponse'=> $sharedDir . 
'AuthorizeNetXMLResponse.php',
'AuthorizeNet_Subscription'  => $sharedDir . 'AuthorizeNetTypes.php',
);


When I tried to execute it I got the following error,
Error: Call to a member function createSubscription() on a non-object

Regards,
Jipson

On Monday, 18 August 2014 12:47:17 UTC+1, Thomas von Hassel wrote:
>
> ./composer.path dump-autoload
>
> and check that the namespace is correct
>
>
> On 18 Aug 2014, at 13:40, Jipson Thomas  > wrote:
>
> Hi Thomas,
> Thank you for your update. MY code is as follows.
>
> The Controller function I used is
>
> namespace App\Controller;
> use App\Controller\AppController;
> use Authorizenet\AuthorizeNetARB;
> use Cake\ORM\TableRegistry;
> use Cake\Event\Event;
> use Cake\Network\Email\Email;
>
> public function authtest(){
> define("AUTHORIZENET_API_LOGIN_ID", "LOGIN");
> define("AUTHORIZENET_TRANSACTION_KE

Re: How to access vendor classes in CakePHP 3

2014-08-18 Thread Jipson Thomas
Hi Thomas,
Thank you for your update. MY code is as follows.

The Controller function I used is

namespace App\Controller;
use App\Controller\AppController;
use Authorizenet\AuthorizeNetARB;
use Cake\ORM\TableRegistry;
use Cake\Event\Event;
use Cake\Network\Email\Email;

public function authtest(){
define("AUTHORIZENET_API_LOGIN_ID", "LOGIN");
define("AUTHORIZENET_TRANSACTION_KEY", "KEY");
$subscription  = new AuthorizeNet_Subscription;
$subscription->name= "PHP Monthly Magazine";
$subscription->intervalLength  = "1";
$subscription->intervalUnit= "months";
$subscription->startDate   = "2014-08-14";
$subscription->totalOccurrences= "12";
$subscription->amount  = "12.99";
$subscription->creditCardCardNumber= "60110012";
$subscription->creditCardExpirationDate= "2018-10";
$subscription->creditCardCardCode  = "123";
$subscription->billToFirstName = "Rasmus";
$subscription->billToLastName  = "Doe";

// Create the subscription.
$request = new AuthorizeNetARB;
    $response= $request->createSubscription($subscription);
$subscription_id = $response->getSubscriptionId();
echo $subscription_id;exit;
}


Regards,
Jipson

On Monday, 18 August 2014 10:42:08 UTC+1, Jipson Thomas wrote:
>
> Hi,
> Would you please tell me how we can access some 3rdpart vendor classes 
> (Not developed in a CakePHP platform) in our controller functions. For 
> example, in my cakePHP 3 website I need to integrate mandrill API and 
> Authorize.net API, I installed both through the compose of cakephp and both 
> are downloaded to my vendors folder.When I am trying to create their 
> objects in our controller action, I am getting fatal error as Class 
> 'App\Controller\AuthorizeNet_
> Subscription' not found. I couldn't find any thing related to this on 
> cakephp documentation also. Would you please help me to solve this issue? I 
> had another post with this details, but that is not replied.
>
> Thanks and Regards,
> Jipson
>
>
>
> https://groups.google.com/forum/#!searchin/cake-php/authorize.net/cake-php/p5XbQfJGrWg/ZTBd5b1LCUcJ
>

-- 
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.


How to access vendor classes in CakePHP 3

2014-08-18 Thread Jipson Thomas
Hi,
Would you please tell me how we can access some 3rdpart vendor classes (Not 
developed in a CakePHP platform) in our controller functions. For example, 
in my cakePHP 3 website I need to integrate mandrill API and Authorize.net 
API, I installed both through the compose of cakephp and both are 
downloaded to my vendors folder.When I am trying to create their objects in 
our controller action, I am getting fatal error as Class 
'App\Controller\AuthorizeNet_
Subscription' not found. I couldn't find any thing related to this on 
cakephp documentation also. Would you please help me to solve this issue? I 
had another post with this details, but that is not replied.

Thanks and Regards,
Jipson


https://groups.google.com/forum/#!searchin/cake-php/authorize.net/cake-php/p5XbQfJGrWg/ZTBd5b1LCUcJ

-- 
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.


Authorize.net Integration with CakePHP 3

2014-08-14 Thread Jipson Thomas
Hi,
I am trying to integrate authorizenet payment recurrring billing with my 
cakePHP 3 project. Adding 

"require": {
"authorizenet/authorizenet": "~1.8"}to the composer I installed the library 
file in vendor. I couldn't find any namespace declarations on the library 
files. I created a function on my vendor controller as below
public function authtest(){
define("AUTHORIZENET_API_LOGIN_ID", "LOGIN");
define("AUTHORIZENET_TRANSACTION_KEY", "KEY");
$subscription  = new AuthorizeNet_Subscription;
$subscription->name= "PHP Monthly Magazine";
$subscription->intervalLength  = "1";
$subscription->intervalUnit= "months";
$subscription->startDate   = "2014-08-14";
$subscription->totalOccurrences= "12";
$subscription->amount  = "12.99";
$subscription->creditCardCardNumber= "60110012";
$subscription->creditCardExpirationDate= "2018-10";
$subscription->creditCardCardCode  = "123";
$subscription->billToFirstName = "Rasmus";
$subscription->billToLastName  = "Doe";

// Create the subscription.
$request = new AuthorizeNetARB;
$response= $request->createSubscription($subscription);
$subscription_id = $response->getSubscriptionId();
echo $subscription_id;exit;
}
When I am accessing the function ad dsite.com/vendors/authtest I get the 
following error.

Fatal Error



*Error: *Class 'App\Controller\AuthorizeNet_Subscription' not found 

Would you please help me to fix this?
Regards,
Jipson


 

-- 
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: Block access of suspended users in default authorization component in cakePHP 3

2014-08-13 Thread Jipson Thomas
Hi Jose,
Thank you very much. This should work perfectly.
Regards,
Jipson

On Wednesday, 13 August 2014 12:33:24 UTC+1, José Lorenzo wrote:
>
> Use the authorization adapters. For example if you use the Controller 
> authorization adapter you would have this in your AppController:
>
> public funciton isAuthorized($user) {
>   if ($user is disabled and this is not the help page) {
> redirect to help page;
>   }
>   return true;
> }
>
> On Wednesday, August 13, 2014 1:29:19 PM UTC+2, Jipson Thomas wrote:
>>
>> Hi,
>> Does anyone know any option to block the access of a suspended user in 
>> the cakephp 3 website using default authorization component. Instead of not 
>> letting them to log in , I want them to log in and show a message to 
>> contact administrator as they are suspended. Please let me know if anyone 
>> know a solution for this.
>> Regards,
>> Jipson
>>
>

-- 
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.


Block access of suspended users in default authorization component in cakePHP 3

2014-08-13 Thread Jipson Thomas
Hi,
Does anyone know any option to block the access of a suspended user in the 
cakephp 3 website using default authorization component. Instead of not 
letting them to log in , I want them to log in and show a message to 
contact administrator as they are suspended. Please let me know if anyone 
know a solution for this.
Regards,
Jipson

-- 
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: Credit card Expiry Date format in CakePHP 3

2014-08-12 Thread Jipson Thomas
Thank you Mark. It is working.
Regards,
Jipson

On Monday, 11 August 2014 13:14:37 UTC+1, mark_story wrote:
>
> You should be able to set day => false in the options to turn off the day 
> input.

-- 
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.


Credit card Expiry Date format in CakePHP 3

2014-08-07 Thread Jipson Thomas
Hi,
Is there any option to use the form input type date for the credit card 
expiry date. I mean we just need the year and month inputs only not the 
day. I used the following but  still I am getting the full date as 
2014-August-7
  echo $this->Form->date('expirationDate', [
'label' => 'Expiry Date',
'minYear' => date('Y'),
'maxYear' => date('Y')+5,
    'dateFormat' => 'Y-m'
]);

Thanks 
Jipson

-- 
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: Saving data to Has Many relationship table from single form in CakePHP 3

2014-08-05 Thread Jipson Thomas
Thank you Jose. Now I am doing in that way. I will update you the result.
Regards,
Jipson

On Tuesday, 5 August 2014 12:33:48 UTC+1, José Lorenzo wrote:
>
> Do as I told you in my previous message: input('related_propery.field')
>
> On Tuesday, August 5, 2014 11:19:29 AM UTC+2, Jipson Thomas wrote:
>>
>> Hi Jose,
>> Sorry. What I said in my last thread that I re created my models ,views 
>> and controllers through bake (The code I pasted in an older thread was not 
>> from bake command.). The form created through bake doesn't include the user 
>> table inputs. I will paste the code of form generated through bake below.
>> ===
>>
>> 
>> Form->create($vendor); ?>
>> 
>> 
>> > echo $this->Form->input('company_name');
>> echo $this->Form->input('logo_url');
>> echo $this->Form->input('email_domain');
>> echo $this->Form->input('phone');
>> echo $this->Form->input('fax');
>> echo $this->Form->input('website');
>> echo $this->Form->input('address');
>> echo $this->Form->input('country');
>> echo $this->Form->input('city');
>> echo $this->Form->input('state');
>> echo $this->Form->input('postalcode');
>> echo $this->Form->input('subscription_package');
>> echo $this->Form->input('status');
>> echo $this->Form->input('no_emails');
>> echo $this->Form->input('no_partners');
>> echo $this->Form->input('coupon_id');
>> echo $this->Form->input('language');
>> ?>
>> 
>> Form->button(__('Submit')); ?>
>> Form->end(); ?>
>> 
>> 
>> 
>> 
>> Html->link(__('List Vendors'), ['action' => 
>> 'index']); ?>
>> Html->link(__('List Coupons'), ['controller' => 
>> 'Coupons', 'action' => 'index']); ?> 
>> Html->link(__('New Coupon'), ['controller' => 
>> 'Coupons', 'action' => 'add']); ?> 
>> Html->link(__('List Partners'), ['controller' => 
>> 'Partners', 'action' => 'index']); ?> 
>> Html->link(__('New Partner'), ['controller' => 
>> 'Partners', 'action' => 'add']); ?> 
>> Html->link(__('List VendorManagers'), 
>> ['controller' => 'VendorManagers', 'action' => 'index']); ?> 
>> Html->link(__('New Vendor Manager'), ['controller' 
>> => 'VendorManagers', 'action' => 'add']); ?> 
>> 
>> 
>>
>> ==
>>
>> The above code is to create separate forms for each table. My requirement 
>> is to make a single signup form for all the 3 tables.
>>
>> Apologize to be a continuing burdan...
>>
>> Regards,
>> Jipson
>>
>>
>> On Tuesday, 5 August 2014 10:11:36 UTC+1, José Lorenzo wrote:
>>>
>>> I find hard to believe that the form you showed above was generated by 
>>> bake, but I can definitely look if there is any errors in the bake tool. 
>>> The reason I say that is that we are not using the 'UppercaseThing.field' 
>>> notation anymore, we use lowercase properties.
>>> For example if Articles belongsTo Authors the form would look like:
>>>
>>>  Form->input('title') ?>
>>>  Form->input('author.name') ?>
>>>  Form->input('author.email') ?>
>>>
>>> On Tuesday, August 5, 2014 10:48:56 AM UTC+2, Jipson Thomas wrote:
>>>>
>>>> Hi Jose,
>>>> Yes , I did the controller, model and view creation through the bake 
>>>> console. But it is not helping me to save data from single form to 
>>>> multiple 
>>>> tables. In my case the vendor signup form is having the input  fields to 
>>>> vendor table, vendor manager table and a user table. Would you please help 
>>>> me to find a solution on this?
>>>>
>>>> Regards,
>&g

Re: Saving data to Has Many relationship table from single form in CakePHP 3

2014-08-05 Thread Jipson Thomas
Hi Jose,
Sorry. What I said in my last thread that I re created my models ,views and 
controllers through bake (The code I pasted in an older thread was not from 
bake command.). The form created through bake doesn't include the user 
table inputs. I will paste the code of form generated through bake below.
===


Form->create($vendor); ?>


Form->input('company_name');
echo $this->Form->input('logo_url');
echo $this->Form->input('email_domain');
echo $this->Form->input('phone');
echo $this->Form->input('fax');
echo $this->Form->input('website');
echo $this->Form->input('address');
echo $this->Form->input('country');
echo $this->Form->input('city');
echo $this->Form->input('state');
echo $this->Form->input('postalcode');
echo $this->Form->input('subscription_package');
echo $this->Form->input('status');
echo $this->Form->input('no_emails');
echo $this->Form->input('no_partners');
echo $this->Form->input('coupon_id');
echo $this->Form->input('language');
?>

Form->button(__('Submit')); ?>
Form->end(); ?>




Html->link(__('List Vendors'), ['action' => 
'index']); ?>
Html->link(__('List Coupons'), ['controller' => 
'Coupons', 'action' => 'index']); ?> 
Html->link(__('New Coupon'), ['controller' => 
'Coupons', 'action' => 'add']); ?> 
Html->link(__('List Partners'), ['controller' => 
'Partners', 'action' => 'index']); ?> 
Html->link(__('New Partner'), ['controller' => 
'Partners', 'action' => 'add']); ?> 
Html->link(__('List VendorManagers'), ['controller' 
=> 'VendorManagers', 'action' => 'index']); ?> 
Html->link(__('New Vendor Manager'), ['controller' 
=> 'VendorManagers', 'action' => 'add']); ?> 



==

The above code is to create separate forms for each table. My requirement 
is to make a single signup form for all the 3 tables.

Apologize to be a continuing burdan...

Regards,
Jipson


On Tuesday, 5 August 2014 10:11:36 UTC+1, José Lorenzo wrote:
>
> I find hard to believe that the form you showed above was generated by 
> bake, but I can definitely look if there is any errors in the bake tool. 
> The reason I say that is that we are not using the 'UppercaseThing.field' 
> notation anymore, we use lowercase properties.
> For example if Articles belongsTo Authors the form would look like:
>
>  Form->input('title') ?>
>  Form->input('author.name') ?>
>  Form->input('author.email') ?>
>
> On Tuesday, August 5, 2014 10:48:56 AM UTC+2, Jipson Thomas wrote:
>>
>> Hi Jose,
>> Yes , I did the controller, model and view creation through the bake 
>> console. But it is not helping me to save data from single form to multiple 
>> tables. In my case the vendor signup form is having the input  fields to 
>> vendor table, vendor manager table and a user table. Would you please help 
>> me to find a solution on this?
>>
>> Regards,
>> Jipson
>>
>> On Monday, 4 August 2014 18:26:48 UTC+1, José Lorenzo wrote:
>>>
>>> I would recommend that you use the bake console tool to create the 
>>> initial controller code and forms, that way I'm sure you will learn and 
>>> understand how forms should be structured.
>>>
>>> On Monday, August 4, 2014 5:46:29 PM UTC+2, Jipson Thomas wrote:
>>>>
>>>> Hi,
>>>> When I change the controller code as follows, It saves in vendor table 
>>>> only and return a true value.
>>>>
>>>> $vendors = TableRegistry::get('Vendors');
>>>> 
>>>> if ($this->request->is('post')) {
>>>> $vendor = new Vendor($this->request->data['Vendor']);
>>>> $vendor->VendorManagers = [
>>>> new 
>>>> VendorManager($this->request->data['VendorManager']),
>>>> ];
>>>>

Re: Saving data to Has Many relationship table from single form in CakePHP 3

2014-08-05 Thread Jipson Thomas
Hi Jose,
Yes , I did the controller, model and view creation through the bake 
console. But it is not helping me to save data from single form to multiple 
tables. In my case the vendor signup form is having the input  fields to 
vendor table, vendor manager table and a user table. Would you please help 
me to find a solution on this?

Regards,
Jipson

On Monday, 4 August 2014 18:26:48 UTC+1, José Lorenzo wrote:
>
> I would recommend that you use the bake console tool to create the initial 
> controller code and forms, that way I'm sure you will learn and understand 
> how forms should be structured.
>
> On Monday, August 4, 2014 5:46:29 PM UTC+2, Jipson Thomas wrote:
>>
>> Hi,
>> When I change the controller code as follows, It saves in vendor table 
>> only and return a true value.
>>
>> $vendors = TableRegistry::get('Vendors');
>> 
>> if ($this->request->is('post')) {
>> $vendor = new Vendor($this->request->data['Vendor']);
>> $vendor->VendorManagers = [
>> new VendorManager($this->request->data['VendorManager']),
>> ];
>> $vendor->Users = [
>> new User($this->request->data['User']),
>> ];
>> //print_r($vendor);
>> if ($vendors->save($vendor)) {
>> $this->Flash->success(__('The vendor has been saved'));
>> return $this->redirect(['action' => 'index']);
>> }
>>     $this->Flash->error(__('Unable to add the vendor'));
>> }
>> $this->set('vendor', $vendor);
>> $this->set('subscription_package', $id);
>> $this->set('subscription_type', $payoption);
>>
>> On Monday, 4 August 2014 16:17:10 UTC+1, Jipson Thomas wrote:
>>>
>>> The save method is returning a false only not any error messages.
>>>
>>> On Monday, 4 August 2014 14:43:20 UTC+1, Jipson Thomas wrote:
>>>>
>>>> Hi All,
>>>> Would you please give me some details or samples of saving data from a 
>>>> single form to the tables main and has many relationships. I tries with 
>>>> the 
>>>> normal way by adding a modelname.fieldname on form and the sual newentity 
>>>> of main table but it through false on save(); Please help me to fix this
>>>>
>>>> Regards,
>>>> Jipson
>>>>
>>>

-- 
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: How to get last insert id in cakePHP 3

2014-08-05 Thread Jipson Thomas
Thank you Mark

On Monday, 4 August 2014 18:17:18 UTC+1, euromark wrote:
>
> Are you sure?
>
> https://github.com/cakephp/cakephp/blob/3.0/tests/TestCase/ORM/TableTest.php#L1177
>
> so $result->id should work fine:
>
> $result = $this->save(...);
> $id = $result->id;
>
> mark
>
>
>
> Am Montag, 4. August 2014 19:01:49 UTC+2 schrieb Jipson Thomas:
>>
>> Hi,
>> Would you please let me know how I can get the last insert id in cake php 
>> 3. 
>> The save() is returning Boolean value only.Is there any option to get the 
>> last insert id value?
>>
>> Regards,
>> Jipson
>>
>

-- 
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.


How to get last insert id in cakePHP 3

2014-08-04 Thread Jipson Thomas
Hi,
Would you please let me know how I can get the last insert id in cake php 
3. 
The save() is returning Boolean value only.Is there any option to get the 
last insert id value?

Regards,
Jipson

-- 
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: Saving data to Has Many relationship table from single form in CakePHP 3

2014-08-04 Thread Jipson Thomas
Hi,
When I change the controller code as follows, It saves in vendor table only 
and return a true value.

$vendors = TableRegistry::get('Vendors');

if ($this->request->is('post')) {
$vendor = new Vendor($this->request->data['Vendor']);
$vendor->VendorManagers = [
new VendorManager($this->request->data['VendorManager']),
];
$vendor->Users = [
new User($this->request->data['User']),
];
//print_r($vendor);
if ($vendors->save($vendor)) {
$this->Flash->success(__('The vendor has been saved'));
return $this->redirect(['action' => 'index']);
}
$this->Flash->error(__('Unable to add the vendor'));
}
$this->set('vendor', $vendor);
$this->set('subscription_package', $id);
$this->set('subscription_type', $payoption);

On Monday, 4 August 2014 16:17:10 UTC+1, Jipson Thomas wrote:
>
> The save method is returning a false only not any error messages.
>
> On Monday, 4 August 2014 14:43:20 UTC+1, Jipson Thomas wrote:
>>
>> Hi All,
>> Would you please give me some details or samples of saving data from a 
>> single form to the tables main and has many relationships. I tries with the 
>> normal way by adding a modelname.fieldname on form and the sual newentity 
>> of main table but it through false on save(); Please help me to fix this
>>
>> Regards,
>> Jipson
>>
>

-- 
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: Saving data to Has Many relationship table from single form in CakePHP 3

2014-08-04 Thread Jipson Thomas
The save method is returning a false only not any error messages.

On Monday, 4 August 2014 14:43:20 UTC+1, Jipson Thomas wrote:
>
> Hi All,
> Would you please give me some details or samples of saving data from a 
> single form to the tables main and has many relationships. I tries with the 
> normal way by adding a modelname.fieldname on form and the sual newentity 
> of main table but it through false on save(); Please help me to fix this
>
> Regards,
> Jipson
>

-- 
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: Saving data to Has Many relationship table from single form in CakePHP 3

2014-08-04 Thread Jipson Thomas
*Form - buypackage.ctp*
===


Flash->render('auth') ?>
Form->create($vendor) ?>


Form->input('Vendor.name',['label'=>'Vendor 
Name']) ?>
    Form->input('Vendor.logo', ['type' => 'file']);?>
Form->input('Vendor.fax') ?>
Form->input('Vendor.phone') ?>
Form->input('Vendor.website') ?>
Form->input('Vendor.address') ?>
Form->input('Vendor.country') ?>
Form->input('Vendor.city') ?>
Form->input('Vendor.state') ?>
Form->input('Vendor.postalcode',['label'=>'Zip / 
Post Code']) ?>
Form->hidden('Vendor.subscription_package',['value' => 
$subscription_package]); ?>

 

Form->input('User.email') ?>
Form->input('User.password') ?>
Form->input('User.conf_password',['label'=>'Confirm Password', 
'type' => 'password']) ?>
Form->input('User.title') ?>
Form->input('User.first_name',['label'=>'First 
Name(s)']) ?>
Form->input('User.laste_name') ?>
Form->input('User.job_title') ?>
Form->input('User.phone') ?>
Form->hidden('User.status',['value' => 'P']); ?>
Form->hidden('User.role',['value' => 'vendor']); 
?>


Form->button(__('Checkout')); ?>
Form->end() ?>



Would you please help me to find the mistake I did here.

Thank,
Jipson
On Monday, 4 August 2014 15:10:39 UTC+1, José Lorenzo wrote:
>
> Have you tried following the instructions in the book? What is failing?
>
> On Monday, August 4, 2014 3:43:20 PM UTC+2, Jipson Thomas wrote:
>>
>> Hi All,
>> Would you please give me some details or samples of saving data from a 
>> single form to the tables main and has many relationships. I tries with the 
>> normal way by adding a modelname.fieldname on form and the sual newentity 
>> of main table but it through false on save(); Please help me to fix this
>>
>> Regards,
>> Jipson
>>
>

-- 
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.


Saving data to Has Many relationship table from single form in CakePHP 3

2014-08-04 Thread Jipson Thomas
Hi All,
Would you please give me some details or samples of saving data from a 
single form to the tables main and has many relationships. I tries with the 
normal way by adding a modelname.fieldname on form and the sual newentity 
of main table but it through false on save(); Please help me to fix this

Regards,
Jipson

-- 
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: CakePHP3 - How to get the data od second level relation ship table.

2014-08-04 Thread Jipson Thomas
Hi Mark,
Sorry for the delay due to the weekend off. The sql printed is as following
=
SELECT Companies.id AS `Companies__id`, Companies.company_name AS 
`Companies__company_name`, Companies.logo_url AS `Companies__logo_url`, 
Companies.email_domain AS `Companies__email_domain`, Companies.phone AS 
`Companies__phone`, Companies.fax AS `Companies__fax`, Companies.website AS 
`Companies__website`, Companies.address AS `Companies__address`, 
Companies.country AS `Companies__country`, Companies.city AS 
`Companies__city`, Companies.state AS `Companies__state`, 
Companies.postalcode AS `Companies__postalcode`, 
Companies.subscription_package AS `Companies__subscription_package`, 
Companies.status AS `Companies__status`, Companies.no_emails AS 
`Companies__no_emails`, Companies.no_partners AS `Companies__no_partners`, 
Companies.coupon_id AS `Companies__coupon_id`, Companies.language AS 
`Companies__language` FROM Companies AS Companies
==

I couldn't find any joins happens in the query but it is trying to fetch 
the fields of joined tables as its own.

Regards,
Jipson


On Saturday, 2 August 2014 13:13:18 UTC+1, mark_story wrote:
>
> What does the query that is being generated look like? You can use sql() 
> on a query to get the sql that would be generated.
>
> -mark
>

-- 
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: CakePHP 3.0 fatal error

2014-08-04 Thread Jipson Thomas
Thank you Jose Lorenzo. I moved all my code to a fresh installation and it 
is working now.

Regards,
Jipson

On Monday, 4 August 2014 11:54:54 UTC+1, José Lorenzo wrote:
>
> The config folder was moved out of src, it should be placed on the root 
> folder with the name config:
>
> https://github.com/cakephp/app/tree/master/config
>
> On Monday, August 4, 2014 12:24:06 PM UTC+2, Jipson Thomas wrote:
>>
>> Hi Team,
>> After a composer update command on my cakephp 3.0 I am getting a fatal 
>> error as following.
>>
>> *Warning*: require(/Applications/XAMPP/xamppfiles/htdocs/
>> prms.panovus.com/public_html/vendor/cakephp/cakephp/src/bootstrap.php): 
>> failed to open stream: No such file or directory in 
>> */Applications/XAMPP/xamppfiles/htdocs/prms.panovus.com/public_html/src/Config/bootstrap.php
>>  
>> <http://prms.panovus.com/public_html/src/Config/bootstrap.php>* on line 
>> *35*
>>
>> *Fatal error*: require(): Failed opening required 
>> '/Applications/XAMPP/xamppfiles/htdocs/
>> prms.panovus.com/public_html/vendor/cakephp/cakephp/src/bootstrap.php' 
>> (include_path='/Applications/XAMPP/xamppfiles/htdocs/
>> prms.panovus.com/public_html/vendor/phpunit/php-text-template:/Applications/XAMPP/xamppfiles/htdocs/prms.panovus.com/public_html/vendor/phpunit/phpunit-mock-objects:/Applications/XAMPP/xamppfiles/htdocs/prms.panovus.com/public_html/vendor/phpunit/php-timer:/Applications/XAMPP/xamppfiles/htdocs/prms.panovus.com/public_html/vendor/phpunit/php-token-stream:/Applications/XAMPP/xamppfiles/htdocs/prms.panovus.com/public_html/vendor/phpunit/php-file-iterator:/Applications/XAMPP/xamppfiles/htdocs/prms.panovus.com/public_html/vendor/phpunit/php-code-coverage:/Applications/XAMPP/xamppfiles/htdocs/prms.panovus.com/public_html/vendor/phpunit/phpunit:/Applications/XAMPP/xamppfiles/htdocs/prms.panovus.com/public_html/vendor/symfony/yaml:.:/Applications/XAMPP/xamppfiles/lib/php')
>>  
>> in 
>> */Applications/XAMPP/xamppfiles/htdocs/prms.panovus.com/public_html/src/Config/bootstrap.php
>>  
>> <http://prms.panovus.com/public_html/src/Config/bootstrap.php>* on line 
>>
>>
>>
>>
>>
>> *35Would you please help me to fix this?Regards,Jipson*
>
>

-- 
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.


CakePHP 3.0 fatal error

2014-08-04 Thread Jipson Thomas
Hi Team,
After a composer update command on my cakephp 3.0 I am getting a fatal 
error as following.

*Warning*: 
require(/Applications/XAMPP/xamppfiles/htdocs/prms.panovus.com/public_html/vendor/cakephp/cakephp/src/bootstrap.php):
 
failed to open stream: No such file or directory in 
*/Applications/XAMPP/xamppfiles/htdocs/prms.panovus.com/public_html/src/Config/bootstrap.php*
 
on line *35*

*Fatal error*: require(): Failed opening required 
'/Applications/XAMPP/xamppfiles/htdocs/prms.panovus.com/public_html/vendor/cakephp/cakephp/src/bootstrap.php'
 
(include_path='/Applications/XAMPP/xamppfiles/htdocs/prms.panovus.com/public_html/vendor/phpunit/php-text-template:/Applications/XAMPP/xamppfiles/htdocs/prms.panovus.com/public_html/vendor/phpunit/phpunit-mock-objects:/Applications/XAMPP/xamppfiles/htdocs/prms.panovus.com/public_html/vendor/phpunit/php-timer:/Applications/XAMPP/xamppfiles/htdocs/prms.panovus.com/public_html/vendor/phpunit/php-token-stream:/Applications/XAMPP/xamppfiles/htdocs/prms.panovus.com/public_html/vendor/phpunit/php-file-iterator:/Applications/XAMPP/xamppfiles/htdocs/prms.panovus.com/public_html/vendor/phpunit/php-code-coverage:/Applications/XAMPP/xamppfiles/htdocs/prms.panovus.com/public_html/vendor/phpunit/phpunit:/Applications/XAMPP/xamppfiles/htdocs/prms.panovus.com/public_html/vendor/symfony/yaml:.:/Applications/XAMPP/xamppfiles/lib/php')
 
in 
*/Applications/XAMPP/xamppfiles/htdocs/prms.panovus.com/public_html/src/Config/bootstrap.php*
 
on line 





*35Would you please help me to fix this?Regards,Jipson*

-- 
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.


CakePHP3 - How to get the data od second level relation ship table.

2014-08-01 Thread Jipson Thomas
Hi,
I have a Company table, User table and employees table.
The company details are there in company table.
In employee table there is one company_id and user_id fields. The 
relationship is as follows.
One company can have multiple employees, and each employee should have a 
record in users table.

Actually When I am finding data of company , I need it to contain all the 
employees with their user data on it.
To access the company data.

I tried the following methods but getting error. 
Database Error 

*Error: * SQLSTATE[42S22]: Column not found: 1054 Unknown column 
'Users.company_id' in 'where clause'


Company Model

public function initialize(array $config) {

 $this->hasMany('Employees');
 $this->hasMany('Users', [ 'through' => 'Employees']);

}
Employees Model
===
public function initialize(array $config) {

$this->belongsTo('Companies');
$this->belongsTo('Users');


}

Users Model
===
$this->hasMany('Employees');

Would you please help me to find a solution?
Regards,
Jipson

-- 
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: Index View with search filter option on Cake PHP 3

2014-08-01 Thread Jipson Thomas
Hi Dakota,
Thank you very much. I installed the plugin using composer . But when I am 
trying to access it through the action I am getting an error 
Unknown method "parseCriteria"*Error: * An Internal Error Has Occurred.

Is there any tutorial that I can refer to make it working on cakephp 3?

Thank you very much for your time and the help.

Regards,
Jipson 

On Friday, 1 August 2014 05:28:27 UTC+1, Dakota wrote:
>
> Hi Jipson.
>
> I'm the one who migrated the search plugin to cake3. It has not been 
> updated to the New structure yet, so you need to use ./plugins/Search in 
> composer.json
>

-- 
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 components not working on cakephp 3

2014-07-31 Thread Jipson Thomas
Thank you Jose Lorenzo.

Regards,
Jipson

On Thursday, 31 July 2014 14:45:08 UTC+1, José Lorenzo wrote:
>
> You're missing the namespace declaration:
>
> namespace App\Controller\Component;
>
> On Thursday, July 31, 2014 3:36:34 PM UTC+2, Jipson Thomas wrote:
>>
>> Hi ,
>> I have created a component using the following code on 
>> src/Controller/Component/JtfilterComponent.php file
>>
>> > use Cake\Controller\Component;
>> class JtfilterComponent extends Component {
>> public function doComplexOperation($amount1, $amount2) {
>> return $amount1 + $amount2;
>> }
>> }
>>
>>
>> And on my controller file I added the following code
>>
>> public $components = ['Paginator','Jtfilter'];
>>
>> When I am trying to access the controller I am getting the following 
>> error.
>>
>>
>> Missing Component 
>>
>> *Error: * *JtfilterComponent* could not be found.
>>
>> *Error: * Create the class *JtfilterComponent* below in file: 
>> src/Controller/Component/JtfilterComponent.php
>>
>> > class JtfilterComponent extends Component {
>>
>> }
>>
>>  *Notice: * If you want to customize this error message, create 
>> src/Template/Error/missing_component.ctp
>> Stack Trace
>> Would you please help me to fix this?
>>
>> Regards,
>> Jipson
>>
>

-- 
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 components not working on cakephp 3

2014-07-31 Thread Jipson Thomas
Hi ,
I have created a component using the following code on 
src/Controller/Component/JtfilterComponent.php file

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: Index View with search filter option on Cake PHP 3

2014-07-31 Thread Jipson Thomas
Thank you Jose Lorenzo.

On Thursday, 31 July 2014 13:03:57 UTC+1, José Lorenzo wrote:
>
> Not sure then, try contacting the plugin creator
>
> On Thursday, July 31, 2014 1:38:26 PM UTC+2, Jipson Thomas wrote:
>>
>> Hi Jose Lorenzo,
>> Thank you for you post. Actually I stored the plugin files in the 
>> public_html/plugin folder manually. Then I modified the composer .json file 
>> and executed the dumpautoload command through terminal. Still I/ am getting 
>> the error.
>>
>> Regards,
>> Jipson
>>
>> On Thursday, 31 July 2014 12:27:07 UTC+1, José Lorenzo wrote:
>>>
>>> I you did not install the plugin with composer, you will need to call 
>>> this command:
>>>
>>> composer dumpautoload
>>>
>>> On Thursday, July 31, 2014 11:48:43 AM UTC+2, Jipson Thomas wrote:
>>>>
>>>> Hi Euromark & Stephen
>>>>
>>>> Thank you very much. But on loading the plugin I am getting an error as 
>>>> following.
>>>> *Error: * *Search.PrgComponent* could not be found.
>>>> *Error: * Create the class *PrgComponent* below in file: 
>>>> /Applications/XAMPP/xamppfiles/htdocs/
>>>> prms.panovus.com/public_html/plugins/Search//Controller/Component/PrgComponent.php
>>>>
>>>> Actually I have the plugin files on place and I added the following 
>>>> line on bootstrap.php file to load plugin.
>>>> Plugin::load('Search');
>>>> Also I updated the composer.jason file by adding the following
>>>> "autoload": {
>>>> "psr-4": {
>>>> "App\\": "src",
>>>> "App\\Test\\": "tests",
>>>> "Search\\": "./plugins/Search/src",
>>>> "Search\\Test\\": "./plugins/Search/tests"
>>>> }
>>>> },
>>>> and updated composer through commandline.  by executing php 
>>>> composer.phar update and  php composer.phar dumpautoload
>>>>
>>>> Would you please help me to find what is wrong in it?
>>>>
>>>> Regards,
>>>> Jipson
>>>>
>>>> On Wednesday, 30 July 2014 18:12:47 UTC+1, euromark wrote:
>>>>>
>>>>> Look into the cake3 branch of 
>>>>> https://github.com/CakeDC/search/tree/3.0
>>>>>
>>>>>
>>>>> Am Mittwoch, 30. Juli 2014 17:34:01 UTC+2 schrieb Jipson Thomas:
>>>>>>
>>>>>> Hi,
>>>>>> Would you please let me know whether  cakephp3 have an option for 
>>>>>> search filters on index view.
>>>>>> Regards,
>>>>>> Jipson
>>>>>>
>>>>>

-- 
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: Index View with search filter option on Cake PHP 3

2014-07-31 Thread Jipson Thomas
Hi Jose Lorenzo,
Thank you for you post. Actually I stored the plugin files in the 
public_html/plugin folder manually. Then I modified the composer .json file 
and executed the dumpautoload command through terminal. Still I/ am getting 
the error.

Regards,
Jipson

On Thursday, 31 July 2014 12:27:07 UTC+1, José Lorenzo wrote:
>
> I you did not install the plugin with composer, you will need to call this 
> command:
>
> composer dumpautoload
>
> On Thursday, July 31, 2014 11:48:43 AM UTC+2, Jipson Thomas wrote:
>>
>> Hi Euromark & Stephen
>>
>> Thank you very much. But on loading the plugin I am getting an error as 
>> following.
>> *Error: * *Search.PrgComponent* could not be found.
>> *Error: * Create the class *PrgComponent* below in file: 
>> /Applications/XAMPP/xamppfiles/htdocs/
>> prms.panovus.com/public_html/plugins/Search//Controller/Component/PrgComponent.php
>>
>> Actually I have the plugin files on place and I added the following line 
>> on bootstrap.php file to load plugin.
>> Plugin::load('Search');
>> Also I updated the composer.jason file by adding the following
>> "autoload": {
>> "psr-4": {
>> "App\\": "src",
>> "App\\Test\\": "tests",
>> "Search\\": "./plugins/Search/src",
>> "Search\\Test\\": "./plugins/Search/tests"
>> }
>> },
>> and updated composer through commandline.  by executing php composer.phar 
>> update and  php composer.phar dumpautoload
>>
>> Would you please help me to find what is wrong in it?
>>
>> Regards,
>> Jipson
>>
>> On Wednesday, 30 July 2014 18:12:47 UTC+1, euromark wrote:
>>>
>>> Look into the cake3 branch of https://github.com/CakeDC/search/tree/3.0
>>>
>>>
>>> Am Mittwoch, 30. Juli 2014 17:34:01 UTC+2 schrieb Jipson Thomas:
>>>>
>>>> Hi,
>>>> Would you please let me know whether  cakephp3 have an option for 
>>>> search filters on index view.
>>>> Regards,
>>>> Jipson
>>>>
>>>

-- 
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: Index View with search filter option on Cake PHP 3

2014-07-31 Thread Jipson Thomas
Hi Euromark & Stephen

Thank you very much. But on loading the plugin I am getting an error as 
following.
*Error: * *Search.PrgComponent* could not be found.
*Error: * Create the class *PrgComponent* below in file: 
/Applications/XAMPP/xamppfiles/htdocs/prms.panovus.com/public_html/plugins/Search//Controller/Component/PrgComponent.php

Actually I have the plugin files on place and I added the following line on 
bootstrap.php file to load plugin.
Plugin::load('Search');
Also I updated the composer.jason file by adding the following
"autoload": {
"psr-4": {
"App\\": "src",
"App\\Test\\": "tests",
"Search\\": "./plugins/Search/src",
"Search\\Test\\": "./plugins/Search/tests"
}
},
and updated composer through commandline.  by executing php composer.phar 
update and  php composer.phar dumpautoload

Would you please help me to find what is wrong in it?

Regards,
Jipson

On Wednesday, 30 July 2014 18:12:47 UTC+1, euromark wrote:
>
> Look into the cake3 branch of https://github.com/CakeDC/search/tree/3.0
>
>
> Am Mittwoch, 30. Juli 2014 17:34:01 UTC+2 schrieb Jipson Thomas:
>>
>> Hi,
>> Would you please let me know whether  cakephp3 have an option for search 
>> filters on index view.
>> Regards,
>> Jipson
>>
>

-- 
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.


Index View with search filter option on Cake PHP 3

2014-07-30 Thread Jipson Thomas
Hi,
Would you please let me know whether  cakephp3 have an option for search 
filters on index view.
Regards,
Jipson

-- 
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: Display Form Validation Errors CakePHP 3

2014-07-30 Thread Jipson Thomas
Hi Jose Lorenzo,
Thank you very much. Now it is working perfectly.
Regards,
Jipson

On Wednesday, 30 July 2014 14:31:30 UTC+1, José Lorenzo wrote:
>
> Ok, you problem is that you are calling create() without the entity, You 
> should get that fixed by doing:
>
> Form->create($package) ?>
>
> On Wednesday, July 30, 2014 3:29:33 PM UTC+2, Jipson Thomas wrote:
>>
>> Hi Jose Lorenzo,
>> Thank you for the reply. Please find the below code 
>>
>> *CTP*
>> ==
>> 
>> Flash->render('auth') ?>
>> Form->create() ?>
>> 
>> > ?>
>>Form->input('name', ['label' => 'Package 
>> Name']); ?>
>>Form->input('annual_price', ['label' => 'Price / 
>> Year','type' => 'decimal']); ?>
>>Form->input('monthly_price', ['label' => 'Price 
>> / Month','type' => 'decimal']); ?>
>>Form->input('duration', ['label' => 'Minimum 
>> Months of Contract','type' => 'integer']);?>
>>Form->input('no_partners', ['label' => 'Maximum 
>> No of Partners','type' => 'integer']);?>
>>Form->input('no_emails', ['label' => 'Maximum No 
>> of Emails/Month','type' => 'integer']);?>
>>Form->input('storage', ['label' => 'Maximum 
>> Allowed Storage Space (GB)','type' => 'integer']);?>
>>Form->input('resource_library', ['label' => 
>> 'Resource Library','type' => 'checkbox','value' => 'Y','hiddenField' => 
>> 'N']);?> 
>>Form->input('portal_cms', ['label' => 'Portal 
>> CMS','type' => 'checkbox','value'=>'Y','hiddenField' => 'N']);?>
>>Form->input('MDF', ['type' => 'checkbox','value' 
>> => 'Y','hiddenField' => 'N']);?>
>>Form->input('deal_registration', ['type' => 
>> 'checkbox','value' => 'Y','hiddenField' => 'N']);?> 
>>Form->input('partner_recruit', ['type' => 
>> 'checkbox','value' => 'Y','hiddenField' => 'N']);?> 
>>Form->input('training', ['type' => 
>> 'checkbox','value' => 'Y','hiddenField' => 'N']);?>
>>Form->input('Socialmedia', ['type' => 
>> 'checkbox','value' => 'Y','hiddenField' => 'N']);?> 
>>Form->input('multilingual', ['type' => 
>> 'checkbox','value' => 'Y','hiddenField' => 'N']);?>
>>Form->input('partner_incentive', ['type' => 
>> 'checkbox','value' => 'Y','hiddenField' => 'N']);?>
>>Form->input('partner_app', ['type' => 
>> 'checkbox','value' => 'Y','hiddenField' => 'N']);?>
>>
>> 
>> Form->button(__('Save')); ?>
>> Form->end() ?>
>> 
>>
>> *Controller Action*
>> ==
>> public function add(){
>> $package = $this->Package->newEntity($this->request->data);
>>     if ($this->request->is('post')) {
>> if ($this->Package->save($package)) {
>> $this->Flash->success(__('The package has been saved.'));
>> return $this->redirect(['action' => 'index']);
>> }
>> else{
>>   //  $errors = $this->Package->errors();
>> 
>> $error_string=  implode('\n',$package->errors());
>> //print_r($package);
>> }
>> $this->Flash->error(__('Unable to add the packa

Re: Display Form Validation Errors CakePHP 3

2014-07-30 Thread Jipson Thomas
Hi Jose Lorenzo,
Thank you for the reply. Please find the below code 

*CTP*
==

Flash->render('auth') ?>
Form->create() ?>


   Form->input('name', ['label' => 'Package Name']); 
?>
   Form->input('annual_price', ['label' => 'Price / 
Year','type' => 'decimal']); ?>
   Form->input('monthly_price', ['label' => 'Price / 
Month','type' => 'decimal']); ?>
   Form->input('duration', ['label' => 'Minimum 
Months of Contract','type' => 'integer']);?>
   Form->input('no_partners', ['label' => 'Maximum No 
of Partners','type' => 'integer']);?>
   Form->input('no_emails', ['label' => 'Maximum No 
of Emails/Month','type' => 'integer']);?>
   Form->input('storage', ['label' => 'Maximum 
Allowed Storage Space (GB)','type' => 'integer']);?>
   Form->input('resource_library', ['label' => 
'Resource Library','type' => 'checkbox','value' => 'Y','hiddenField' => 
'N']);?> 
   Form->input('portal_cms', ['label' => 'Portal 
CMS','type' => 'checkbox','value'=>'Y','hiddenField' => 'N']);?>
   Form->input('MDF', ['type' => 'checkbox','value' 
=> 'Y','hiddenField' => 'N']);?>
   Form->input('deal_registration', ['type' => 
'checkbox','value' => 'Y','hiddenField' => 'N']);?> 
   Form->input('partner_recruit', ['type' => 
'checkbox','value' => 'Y','hiddenField' => 'N']);?> 
   Form->input('training', ['type' => 
'checkbox','value' => 'Y','hiddenField' => 'N']);?>
   Form->input('Socialmedia', ['type' => 
'checkbox','value' => 'Y','hiddenField' => 'N']);?> 
   Form->input('multilingual', ['type' => 
'checkbox','value' => 'Y','hiddenField' => 'N']);?>
   Form->input('partner_incentive', ['type' => 
'checkbox','value' => 'Y','hiddenField' => 'N']);?>
   Form->input('partner_app', ['type' => 
'checkbox','value' => 'Y','hiddenField' => 'N']);?>
   

Form->button(__('Save')); ?>
Form->end() ?>


*Controller Action*
==
public function add(){
$package = $this->Package->newEntity($this->request->data);
if ($this->request->is('post')) {
if ($this->Package->save($package)) {
$this->Flash->success(__('The package has been saved.'));
return $this->redirect(['action' => 'index']);
}
else{
  //  $errors = $this->Package->errors();

$error_string=  implode('\n',$package->errors());
//print_r($package);
}
$this->Flash->error(__('Unable to add the package.'));
}
$this->set('package', $package);
}

*Model - Table Class*
=
class PackagesTable extends Table {
public function initialize(array $config) {
$this->addBehavior('Timestamp', [
'events' => [
'Model.beforeSave' => [
'created_on' => 'new',
'modified_on' => 'always',
]

]
]);
}
public function validationDefault(Validator $validator) {
$validator
->notEmpty('name','A valid package name is required')
->notEmpty('annual_price','A valid annual price is required')
->notEmpty('monthly_price','A valid monthly price is required')
->notEmpty('duration','Minimum duration of contract is 
requi

Display Form Validation Errors CakePHP 3

2014-07-30 Thread Jipson Thomas
Hi ,
On my package creation form I am using cakephp validation. The validation 
is working perfectly. Unfortunately the validation error messages are not 
displaying on my form. Would you please help me on this?

The code I am using is as follows. Please advise me what I am missing here.

*My Table Class*
==
public function validationDefault(Validator $validator) {
$validator
->notEmpty('name','A valid package name is required')
->notEmpty('annual_price','A valid annual price is required')
->notEmpty('monthly_price','A valid monthly price is required')
->notEmpty('duration','Minimum duration of contract is 
required')
->notEmpty('no_partners','Maximum no of partners is required')
->notEmpty('no_emails','Maximum no of emails per month is 
required');

return $validator;
}

*On my controller*

I am using the following codes to get the validation result.
$package = $this->Package->newEntity($this->request->data);
if ($this->SubscriptionPackage->save($package)) {
$this->Flash->success(__('The package has been saved.'));
return $this->redirect(['action' => 'index']);
}
else{
//print_r($package->errors()); It will display an array with field names 
and message.
}

*On my ctp file I am using the following code.*

 Form->input('name', ['label' => 'Package Name']); ?>
   Form->input('annual_price', ['label' => 'Price / 
Year','type' => 'decimal']); ?>
   Form->input('monthly_price', ['label' => 'Price / 
Month','type' => 'decimal']); ?>
   Form->input('duration', ['label' => 'Minimum 
Months of Contract','type' => 'integer']);?>
   Form->input('no_partners', ['label' => 'Maximum No 
of Partners','type' => 'integer']);?>
   Form->input('no_emails', ['label' => 'Maximum No 
of Emails/Month','type' => 'integer']);?>
   Form->input('storage', ['label' => 'Maximum 
Allowed Storage Space (GB)','type' =>?>

-- 
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.


Support for multilanguage in Cakephp3

2014-07-24 Thread Jipson Thomas
Hello,
Would you please help me find some tutorial on multilingual option for my 
new website on cakephp 3.
Thanks in advance
Jipson

-- 
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: CakePHP 3.0.0-alpha1 released!

2014-07-21 Thread Jipson Thomas
Hi Jose Lorenzo,
Thank you very much for the tip. I will try it. Hope this can ease my life. 
:)

Regards,
Jipson Thomas


On Monday, 21 July 2014 11:35:17 UTC+1, José Lorenzo wrote:
>
> Require the library using composer:
>
> composer require "mandrill/mandrill"
>
> And then use the library as shown in their docs :)
>
> On Monday, July 21, 2014 10:41:42 AM UTC+2, Jipson Thomas wrote:
>>
>> Hi Jose Lorenzo,
>> We are starting to develop our new website project on cakephp 3 platform. 
>> I have a requirement to use mandrill API to handle email campaigns in the 
>> website. https://mandrillapp.com/api/docs/index.php.html
>> Mandrill is providing its core libraries as normal php 5.3 classes only. 
>> Could you please advise me how I can use those from our cakephp application 
>> and where I have to put the files in our folder structure etc.
>> Thanks
>> Jipson Thomas
>>
>> On Wednesday, 25 June 2014 22:00:17 UTC+1, José Lorenzo wrote:
>>>
>>> The CakePHP core team proudly announces the first alpha release of
>>> CakePHP 3.0.0. In the months between 3.0.0-dev3 and this release, we've
>>> been working really hard at getting more of the remaining parts 
>>> implemented,
>>> and incorporating all the great feedback we've gotten from the community 
>>> so far.
>>>
>>> There are still a few larger features to be completed before we go to a 
>>> beta release,
>>> most importantly:
>>>
>>>- Updated i18n and L10n features.
>>>- A replacement for CacheHelper based on Edge Side Includes.
>>>- A new routing API for simpler and faster route declaration.
>>>
>>> The alpha releases will focus on getting these key features completed. 
>>> After
>>> which, we'll start beta releases focusing on polishing up any rough or
>>> confusing features, improving error messages/help and porting over 
>>> plugins
>>> produced by the core team.
>>>
>>> We've been truly humbled by the fantastic feedback and support we've 
>>> received
>>> from the community in the last month. We've had numerous bug reports, 
>>> pull
>>> requests and documentation edits that have helped improve 3.0 overall.
>>>
>>> This release also comes with complete documentation for the new features 
>>> and
>>> changes, make sure you check out the new CakePHP 3.0 book to read about 
>>> them in
>>> detail.
>>>
>>> Below is the list of new features and changes that made it into 
>>> 3.0.0-alpha1:
>>> Reworked Dispatcher Filters
>>>
>>> Dispatcher filters have been reworked and expanded to include some of the
>>> previously 'magic' features of CakePHP. Filters are now registered as 
>>> instances
>>> instead of through configuration data making it simple to do dependency 
>>> injection.
>>>
>>> Dispatcher filters also include a way to restrict when they are applied 
>>> to any
>>> given request.
>>> New Session Object
>>>
>>> Session management has always been a static class in CakePHP which has 
>>> proven
>>> to be problematic in a number of ways. For CakePHP 3.0, you can access 
>>> the
>>> session from the request object $this->request->session() .
>>>
>>> This change also makes the session easier to test, and allows CakePHP 
>>> to use PHPUnit 4.x
>>> FlashHelper and FlashComponent
>>>
>>> Flash messages play an important part in modern web applications. While 
>>> CakePHP
>>> has always had rudimentary flash messaging support, CakePHP 3.0 gives
>>> developers even more tools to create and render multiple kinds of 
>>> messages in
>>> a simple way. To make this happen a separate component and helper were 
>>> created.
>>> We'd like to thank jadb and bcrowe for making this code happen.
>>> CookieComponent
>>>
>>> CookieComponent has only been able to manage one cookie namespace at a 
>>> time in
>>> the past. While it offered powerful tools for creating encrypted 
>>> cookies, those
>>> tools were hard to use consistently and correctly. The redesigned
>>> CookieComponent makes it much easier to separate the configuration of 
>>> cookie
>>> namespaces and the handling of cookie data.
>>> Passwords Default to Bcrypt
>>>
>>> Using bcrypt for passwords is a current best-practice. T

Re: CakePHP 3.0.0-alpha1 released!

2014-07-21 Thread Jipson Thomas
Hi Jose Lorenzo,
We are starting to develop our new website project on cakephp 3 platform. I 
have a requirement to use mandrill API to handle email campaigns in the 
website. https://mandrillapp.com/api/docs/index.php.html
Mandrill is providing its core libraries as normal php 5.3 classes only. 
Could you please advise me how I can use those from our cakephp application 
and where I have to put the files in our folder structure etc.
Thanks
Jipson Thomas

On Wednesday, 25 June 2014 22:00:17 UTC+1, José Lorenzo wrote:
>
> The CakePHP core team proudly announces the first alpha release of
> CakePHP 3.0.0. In the months between 3.0.0-dev3 and this release, we've
> been working really hard at getting more of the remaining parts 
> implemented,
> and incorporating all the great feedback we've gotten from the community 
> so far.
>
> There are still a few larger features to be completed before we go to a 
> beta release,
> most importantly:
>
>- Updated i18n and L10n features.
>- A replacement for CacheHelper based on Edge Side Includes.
>- A new routing API for simpler and faster route declaration.
>
> The alpha releases will focus on getting these key features completed. 
> After
> which, we'll start beta releases focusing on polishing up any rough or
> confusing features, improving error messages/help and porting over plugins
> produced by the core team.
>
> We've been truly humbled by the fantastic feedback and support we've 
> received
> from the community in the last month. We've had numerous bug reports, pull
> requests and documentation edits that have helped improve 3.0 overall.
>
> This release also comes with complete documentation for the new features 
> and
> changes, make sure you check out the new CakePHP 3.0 book to read about 
> them in
> detail.
>
> Below is the list of new features and changes that made it into 
> 3.0.0-alpha1:
> Reworked Dispatcher Filters
>
> Dispatcher filters have been reworked and expanded to include some of the
> previously 'magic' features of CakePHP. Filters are now registered as 
> instances
> instead of through configuration data making it simple to do dependency 
> injection.
>
> Dispatcher filters also include a way to restrict when they are applied to 
> any
> given request.
> New Session Object
>
> Session management has always been a static class in CakePHP which has 
> proven
> to be problematic in a number of ways. For CakePHP 3.0, you can access the
> session from the request object $this->request->session() .
>
> This change also makes the session easier to test, and allows CakePHP 
> to use PHPUnit 4.x
> FlashHelper and FlashComponent
>
> Flash messages play an important part in modern web applications. While 
> CakePHP
> has always had rudimentary flash messaging support, CakePHP 3.0 gives
> developers even more tools to create and render multiple kinds of messages 
> in
> a simple way. To make this happen a separate component and helper were 
> created.
> We'd like to thank jadb and bcrowe for making this code happen.
> CookieComponent
>
> CookieComponent has only been able to manage one cookie namespace at a 
> time in
> the past. While it offered powerful tools for creating encrypted cookies, 
> those
> tools were hard to use consistently and correctly. The redesigned
> CookieComponent makes it much easier to separate the configuration of 
> cookie
> namespaces and the handling of cookie data.
> Passwords Default to Bcrypt
>
> Using bcrypt for passwords is a current best-practice. To help steer 
> developers
> in the right direction, we've made bcrypt the default password hashing 
> system
> in CakePHP, and provided an easy to use FallbackHasher that will allow you 
> to
> incrementally update your password hashes from older hashing algorithms.
> Themes and Plugins Merged
>
> For CakePHP 3.0.0, we wanted to make themes more powerful and more robust. 
> As
> we looked at ways of improving themes, we realized that what we really 
> wanted were
> plugins. To that end, you can now use any plugin as a theme. This makes
> packaging and re-distributing themes easy as they are simply plugins do and
> can include helpers and cells.
> App and Plugins share a standard suggested directory layout
>
> To make your experience developing as consistent as possible, we've updated
> both the application skeleton and plugin skeletons to use the same 
> directory
> structure. This will help make working with plugins feel just like you're
> working in a small modular application.
> ORM Improvements
>
> Several API changes made their way into the new ORM. Now it is simpler to 
> specify
>

Re: CakePHP 3.0.0-alpha1 released!

2014-07-07 Thread Jipson Thomas
Hi Jose Lorenzo,
Thank you very much for your valuable advise. So we ares waiting for the 
promising beta version with the crossed fingers.

Thanks,
Jipson
Jipson ThomasApplications DeveloperStrategic Internet Consulting Ltd  T: +44 
(0)1403 599888 (Sussex) T: +44 (0)203 3013888 (London) W: 
http://www.strategic-ic.co.uk/?utm_source=email_signature&utm_medium=email&utm_campaign=Email%2BSignature
 Registered Address: Albany House, 14 Bishopric, Horsham, RH12 1QN
Company No:6852900 | VAT Registration No: 844577004
This message is intended only for cake-php@googlegroups.com. If you are not the 
intended recipient you are notified that disclosing, copying, distributing or 
taking any action in reliance on the contents of this information is strictly 
prohibited.



On 7 Jul 2014, at 12:07, José Lorenzo  wrote:

> We will hopefully have a beta version for that time. That means you can rely 
> on the foundation but still expect bugs to be found. If you are willing to 
> accept that and to eventually adapt to some changes, then go for 3.0
> 
> On Monday, July 7, 2014 12:24:20 PM UTC+2, Jipson Thomas wrote:
> Hi José Lorenzo,
> Thank you for the update. We are planning for our new project (scheduled to 
> start the development in August 2014 - September 2014). Would you please 
> advise me that the version I can choose for this? I am so much interested to 
> use Cake 3 for our prestigious work.
> 
> Thanks,
> Jipson 
> 
> On Wednesday, 25 June 2014 22:00:17 UTC+1, José Lorenzo wrote:
> The CakePHP core team proudly announces the first alpha release of
> CakePHP 3.0.0. In the months between 3.0.0-dev3 and this release, we've
> been working really hard at getting more of the remaining parts implemented,
> and incorporating all the great feedback we've gotten from the community so 
> far.
> 
> There are still a few larger features to be completed before we go to a beta 
> release,
> most importantly:
> 
> Updated i18n and L10n features.
> A replacement for CacheHelper based on Edge Side Includes.
> A new routing API for simpler and faster route declaration.
> The alpha releases will focus on getting these key features completed. After
> which, we'll start beta releases focusing on polishing up any rough or
> confusing features, improving error messages/help and porting over plugins
> produced by the core team.
> 
> We've been truly humbled by the fantastic feedback and support we've received
> from the community in the last month. We've had numerous bug reports, pull
> requests and documentation edits that have helped improve 3.0 overall.
> 
> This release also comes with complete documentation for the new features and
> changes, make sure you check out the new CakePHP 3.0 book to read about them 
> in
> detail.
> 
> Below is the list of new features and changes that made it into 3.0.0-alpha1:
> 
> Reworked Dispatcher Filters
> Dispatcher filters have been reworked and expanded to include some of the
> previously 'magic' features of CakePHP. Filters are now registered as 
> instances
> instead of through configuration data making it simple to do dependency 
> injection.
> 
> Dispatcher filters also include a way to restrict when they are applied to any
> given request.
> 
> New Session Object
> Session management has always been a static class in CakePHP which has proven
> to be problematic in a number of ways. For CakePHP 3.0, you can access the
> session from the request object $this->request->session() .
> 
> This change also makes the session easier to test, and allows CakePHP 
> to use PHPUnit 4.x
> 
> FlashHelper and FlashComponent
> Flash messages play an important part in modern web applications. While 
> CakePHP
> has always had rudimentary flash messaging support, CakePHP 3.0 gives
> developers even more tools to create and render multiple kinds of messages in
> a simple way. To make this happen a separate component and helper were 
> created.
> We'd like to thank jadb and bcrowe for making this code happen.
> 
> CookieComponent
> CookieComponent has only been able to manage one cookie namespace at a time in
> the past. While it offered powerful tools for creating encrypted cookies, 
> those
> tools were hard to use consistently and correctly. The redesigned
> CookieComponent makes it much easier to separate the configuration of cookie
> namespaces and the handling of cookie data.
> 
> Passwords Default to Bcrypt
> Using bcrypt for passwords is a current best-practice. To help steer 
> developers
> in the right direction, we've made bcrypt the default password hashing system
> in CakePHP, and provided an easy to use FallbackHasher that will allow you to
> incrementally update your password has

Re: CakePHP 3.0.0-alpha1 released!

2014-07-07 Thread Jipson Thomas
Hi José Lorenzo,
Thank you for the update. We are planning for our new project (scheduled to 
start the development in August 2014 - September 2014). Would you please 
advise me that the version I can choose for this? I am so much interested 
to use Cake 3 for our prestigious work.

Thanks,
Jipson 

On Wednesday, 25 June 2014 22:00:17 UTC+1, José Lorenzo wrote:
>
> The CakePHP core team proudly announces the first alpha release of
> CakePHP 3.0.0. In the months between 3.0.0-dev3 and this release, we've
> been working really hard at getting more of the remaining parts 
> implemented,
> and incorporating all the great feedback we've gotten from the community 
> so far.
>
> There are still a few larger features to be completed before we go to a 
> beta release,
> most importantly:
>
>- Updated i18n and L10n features.
>- A replacement for CacheHelper based on Edge Side Includes.
>- A new routing API for simpler and faster route declaration.
>
> The alpha releases will focus on getting these key features completed. 
> After
> which, we'll start beta releases focusing on polishing up any rough or
> confusing features, improving error messages/help and porting over plugins
> produced by the core team.
>
> We've been truly humbled by the fantastic feedback and support we've 
> received
> from the community in the last month. We've had numerous bug reports, pull
> requests and documentation edits that have helped improve 3.0 overall.
>
> This release also comes with complete documentation for the new features 
> and
> changes, make sure you check out the new CakePHP 3.0 book to read about 
> them in
> detail.
>
> Below is the list of new features and changes that made it into 
> 3.0.0-alpha1:
> Reworked Dispatcher Filters
>
> Dispatcher filters have been reworked and expanded to include some of the
> previously 'magic' features of CakePHP. Filters are now registered as 
> instances
> instead of through configuration data making it simple to do dependency 
> injection.
>
> Dispatcher filters also include a way to restrict when they are applied to 
> any
> given request.
> New Session Object
>
> Session management has always been a static class in CakePHP which has 
> proven
> to be problematic in a number of ways. For CakePHP 3.0, you can access the
> session from the request object $this->request->session() .
>
> This change also makes the session easier to test, and allows CakePHP 
> to use PHPUnit 4.x
> FlashHelper and FlashComponent
>
> Flash messages play an important part in modern web applications. While 
> CakePHP
> has always had rudimentary flash messaging support, CakePHP 3.0 gives
> developers even more tools to create and render multiple kinds of messages 
> in
> a simple way. To make this happen a separate component and helper were 
> created.
> We'd like to thank jadb and bcrowe for making this code happen.
> CookieComponent
>
> CookieComponent has only been able to manage one cookie namespace at a 
> time in
> the past. While it offered powerful tools for creating encrypted cookies, 
> those
> tools were hard to use consistently and correctly. The redesigned
> CookieComponent makes it much easier to separate the configuration of 
> cookie
> namespaces and the handling of cookie data.
> Passwords Default to Bcrypt
>
> Using bcrypt for passwords is a current best-practice. To help steer 
> developers
> in the right direction, we've made bcrypt the default password hashing 
> system
> in CakePHP, and provided an easy to use FallbackHasher that will allow you 
> to
> incrementally update your password hashes from older hashing algorithms.
> Themes and Plugins Merged
>
> For CakePHP 3.0.0, we wanted to make themes more powerful and more robust. 
> As
> we looked at ways of improving themes, we realized that what we really 
> wanted were
> plugins. To that end, you can now use any plugin as a theme. This makes
> packaging and re-distributing themes easy as they are simply plugins do and
> can include helpers and cells.
> App and Plugins share a standard suggested directory layout
>
> To make your experience developing as consistent as possible, we've updated
> both the application skeleton and plugin skeletons to use the same 
> directory
> structure. This will help make working with plugins feel just like you're
> working in a small modular application.
> ORM Improvements
>
> Several API changes made their way into the new ORM. Now it is simpler to 
> specify
> deep associations for saving operations and we have changed a couple 
> conventions
> to reduce the learning curve and confusion among new adopters

Custom functions on Models are not working

2012-10-30 Thread Jipson
Hi All,
I am trying to create a project using cakephp 2.2. On my local xaamp it is 
working fine, but on my server it shows like models are not included. For 
exampla, the searchprojects function defined on model user and if I am 
calling the function from users controller like 
$this->User->searchprojects();, it is returning an error like error in 
mysql version or syntax near by SQL Query searchprojects. The users model 
is a has many relationship to user address table also, but using paginate, 
it is returning the data of master table(user table) only not the child 
tables(user_address). Can you please help me to fix this issue.

Thanks and Regards,
Jipson Thomas

-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Rewrite url in cakephp

2010-05-13 Thread Jipson
Hello friends,
   In my site created using cake php, I can access my sites admin
control panel login by http://mysite.com/admins/login.
admins_controller is the controller and login is the function name.
How I can acces the same by http://mysite.com/admin/login? Can you
please help me?

Thanks,
Jipson

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


Rewrite url in cakephp

2010-05-13 Thread Jipson

Hello friends,
   In my site created using cake php, I can access my sites admin control
panel login by http://mysite.com/admins/login. admins_controller is the
controller and login is the function name. How I can acces the same by
http://mysite.com/admin/login? Can you please help me?

Thanks,
Jipson
-- 
View this message in context: 
http://old.nabble.com/Rewrite-url-in-cakephp-tp28546818p28546818.html
Sent from the CakePHP mailing list archive at Nabble.com.

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


Re: Adding https in $html->url

2008-12-04 Thread Jipson

Hi I am using $html->url instead of $html->link because, I have to
link to an image...

On Dec 4, 6:30 pm, Lance Willett <[EMAIL PROTECTED]> wrote:
> > i want to get ishttps://mycart/carts/authorize/, what i have to do for it
>
> Hi Jipson,
> Most likely you'll need to include the full path to the secure URL,
> like this:
>     url('https://mycart/carts/authorize/);?>
> in order to force the HTTPS protocol.
>
> Out of curiosity, why are you using $html->url instead of $html->link?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Adding https in $html->url

2008-12-03 Thread Jipson

Hi Friends,
   In my project i am giving the links to payment page view as
follows.
url('/carts/authorize/); ?>

now i am getting the output url as http://mycart/carts/authorize/ what
i want to get is
https://mycart/carts/authorize/ , what i have to do for it,
 anybody please help me.

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



In Some Controllers app_controller is not extending

2008-11-04 Thread Jipson

Hi All,
  In my cakephp project Page title, meta name and description are
stored in a table in database.
in my Cart\cake\libs\controller folder app_controller.php file is
there. In that file I wrote code for changing page name.In some
controllers I am not getting the page title. can anyone please help
me?

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



Re: Getting global variables from Database in cakePHP

2008-10-07 Thread Jipson

Thank you all.Thanks a lot. Dr. Hannibal Lecter's suggestion
helped me. Now my problem is solved. Once again thank you all.

On Oct 7, 1:06 pm, "dr. Hannibal Lecter" <[EMAIL PROTECTED]> wrote:
> Maybe something like this would help you:
>
> http://dsi.vozibrale.com/articles/view/simple-db-based-configuration-...
>
> There is also a working (and slightly improved) example in my CMS
> project (same site).
>
> Hope that helps!
>
> On Oct 7, 6:58 am, Jipson <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> >      Thank you Jitka and mark.
> >  I tried with jitka's solution but,as a new developer to cakephp I
> > couldn't obtain the solutions. I searched the tutorials also but I
> > didn't got it.Can you please explain it with some examples please
>
> > Thanks,
> > Jipson.
> > On Oct 6, 8:09 pm, "jitka (poLK)" <[EMAIL PROTECTED]> wrote:
>
> > > For example, you can
> > > - load necessary settings from db when you need them
> > > - load all settings once and use Configure::store() (also called from
> > > afterSave callback of this model), Configure::load() (called from
> > > bootstrap) and then Configure::read() where necessary
> > > - same approach as 2nd one, but with Cache::write()/read()
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



How we can impliment shipping method calculator and payment options in cakephp

2008-10-07 Thread Jipson

Hi All,
   I searched in Google and cake tutorial to find how we can integrate
ups shipping calculator and payment methods like pay pal,
authorize.net but I couldn't  find a solution. any one please help me.

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



Re: Getting global variables from Database in cakePHP

2008-10-06 Thread Jipson

Hi,
 Thank you Jitka and mark.
 I tried with jitka's solution but,as a new developer to cakephp I
couldn't obtain the solutions. I searched the tutorials also but I
didn't got it.Can you please explain it with some examples please

Thanks,
Jipson.
On Oct 6, 8:09 pm, "jitka (poLK)" <[EMAIL PROTECTED]> wrote:
> For example, you can
> - load necessary settings from db when you need them
> - load all settings once and use Configure::store() (also called from
> afterSave callback of this model), Configure::load() (called from
> bootstrap) and then Configure::read() where necessary
> - same approach as 2nd one, but with Cache::write()/read()
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Getting global variables from Database in cakePHP

2008-10-06 Thread Jipson

Hi Friends,
   Now I am facing a problem that, in my project I havesome datas
like (admin email, site name, payapal email etc) in my settings
table.I have to get these all values throughout in my project like
global variables in php.What are the steps I have to do for it? Please
help me.

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



Please Help to relate my tables.

2008-09-26 Thread Jipson

Hi Friends,
I am a fresher to Cake PHP. Now I am doing a shopping cart site
using cakephp.
I have an order table, an order details table and a product table. In
order details table I am storing the order.id and, product.id. When I
am listing the orders, I am getting the order table data and order
details table data, but not the product name from products table. Can
anyone advise me how i can retrieve order details and products tables
data along with order table data.

Thanks,
Jipson.

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