Access session values on a custom component on Cakephp 3

2014-11-20 Thread Jipson Thomas
*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

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

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

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

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

Re: Credit card Expiry Date format in CakePHP 3

2014-09-18 Thread Jipson Thomas
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

Re: Credit card Expiry Date format in CakePHP 3

2014-09-17 Thread Jipson Thomas
. 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

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.

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

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' =

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

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 ?php echo $this-params['controller']; ? But it throughs me an error as following *Error: *

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

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 jip...@strategic

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

Re: Select Null option on helper on CakePHP3

2014-08-27 Thread Jipson Thomas
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 jip...@strategic-ic.co.uk javascript: wrote

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

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: *

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 jip...@strategic-ic.co.uk

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

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

Re: How to access vendor classes in CakePHP 3

2014-08-18 Thread Jipson Thomas
; $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

Re: How to access vendor classes in CakePHP 3

2014-08-18 Thread Jipson Thomas
von Hassel wrote: ./composer.path dump-autoload and check that the namespace is correct On 18 Aug 2014, at 13:40, Jipson Thomas jip...@strategic-ic.co.uk javascript: wrote: Hi Thomas, Thank you for your update. MY code is as follows. The Controller function I used is namespace App

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

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

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

2014-08-13 Thread Jipson Thomas
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

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

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', [

Re: How to get last insert id in cakePHP 3

2014-08-05 Thread Jipson Thomas
: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

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

2014-08-05 Thread Jipson Thomas
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

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

2014-08-05 Thread Jipson Thomas
('title') ? ?php echo $this-Form-input('author.name') ? ?php echo $this-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

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

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

Re: CakePHP 3.0 fatal error

2014-08-04 Thread Jipson Thomas
/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

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`,

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

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

2014-08-04 Thread Jipson Thomas
')); ? ?php echo $this-Form-end() ? /div 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

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

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

2014-08-04 Thread Jipson Thomas
('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

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

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

Re: Index View with search filter option on Cake PHP 3

2014-07-31 Thread Jipson Thomas
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

Re: Index View with search filter option on Cake PHP 3

2014-07-31 Thread Jipson Thomas
: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

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

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 ?php use Cake\Controller\Component; class JtfilterComponent extends Component { public function doComplexOperation($amount1, $amount2) { return $amount1 + $amount2; } }

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

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

Re: Display Form Validation Errors CakePHP 3

2014-07-30 Thread Jipson Thomas
On Wednesday, 30 July 2014 14:20:54 UTC+1, Jipson Thomas wrote: 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

Re: Display Form Validation Errors CakePHP 3

2014-07-30 Thread Jipson Thomas
) ? 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* == div class=users form ?php echo $this-Flash-render('auth') ? ?php echo $this-Form-create() ? fieldset legend?php echo

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

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

Re: CakePHP 3.0.0-alpha1 released!

2014-07-21 Thread Jipson Thomas
. 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

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

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

Re: CakePHP 3.0.0-alpha1 released!

2014-07-07 Thread Jipson Thomas
. 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