Question about _setDefaults() in AuthComponent

2015-08-06 Thread Justin Thomas
/** * Attempts to introspect the correct values for object properties. * * @return boolean */ protected function _setDefaults() { $defaults = array( 'logoutRedirect' => $this->loginAction, 'authError' => __d('cake', 'You are not authorized to access that loc

cakephp 3.0 same controller name for admin and users

2015-05-29 Thread Thomas
I am using cakephp 3.0 and want to write some admin actions and some users actions in users controller. admin actions should be accessible from admin routing and user actions should be accessible without admin routing I know in cakephp 3.0 for admin, users controller should be in src/Controll

Re: Cakephp 3.x Validation Error issue

2015-05-15 Thread Thomas
What is a best way to get answers of my issues? I am not getting any solution from last 20 days On Wednesday, May 6, 2015 at 5:17:36 PM UTC+5:30, Thomas wrote: > > Hello Experts, > > any update? > > On Wednesday, April 22, 2015 at 4:00:20 AM UTC+5:30, Cake Developer wrote: &g

Re: Cakephp 3.x Validation Error issue

2015-05-06 Thread Thomas
Hello Experts, any update? On Wednesday, April 22, 2015 at 4:00:20 AM UTC+5:30, Cake Developer wrote: > > Hi, > > I am facing issue on form input validations errors. my input fields are > following > > $this->Form->input('FormElements.text.1.title', ['type'=>'text', > 'label'=>false, 'class'=>'

Access session values on a custom component on Cakephp 3

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

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 F

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

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 fina

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

Re: Credit card Expiry Date format in CakePHP 3

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

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 &

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 h

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

Re: Naming Conventions... Apply. Applys. Applies? Gobsmacked!

2014-09-09 Thread Thomas von Hassel
I would maybe call the model `Application` or `Registration` .. makes a bit more sense logically The error you are seeing is because CakePHP pluralises names corretly, its doesn’t just put and `s` at the end /thomas > On 09 Sep 2014, at 09:34, MarkB wrote: > > Hi, > >

Re: Why CakePHP ?

2014-09-09 Thread Thomas von Hassel
There are still instances where rolling your own is the only good solution … /thomas > On 09 Sep 2014, at 03:51, #2Will wrote: > > Don't roll your own cms. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You receive

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

Re: VirtualFields Cakephp 3

2014-09-05 Thread Thomas von Hassel
Yes, that's the beauty of the new ORM ... Separate the table from the entity .. /thomas Sent from my iPad > On 05 Sep 2014, at 19:15, Abdelmajid el Ibrahimi > wrote: > > so i need to make a entity class so i can join 2 fields? > > Op vrijdag 5 september 2014 18:2

Re: Error menu.ctp

2014-09-03 Thread Thomas von Hassel
Your IDE is even marking the error with a red line :) > On 03 Sep 2014, at 13:24, Bprd Codin wrote: > > Hello, > > Problem with my menu.ctp > > error message > > Parse error: syntax error, unexpected 'array' (T_ARRAY), expecting ')' in > /app/View/Elements/menu.ctp on line 1 > > > > my

Re: BelongsToMany model

2014-09-01 Thread Thomas von Hassel
https://gist.github.com On 01 Sep 2014, at 13:08, Abdelmajid el Ibrahimi wrote: > What is a gist? > > Met vriendelijke groet, > A. el Ibrahimi > > Op 1 sep. 2014 13:04 schreef "Thomas von Hassel" : > maybe you should post a gist with your code .. > > &

Re: BelongsToMany model

2014-09-01 Thread Thomas von Hassel
> is the singular form. Where can I find the core orm file in the system. > > Met vriendelijke groet, > A. el Ibrahimi > > Op 1 sep. 2014 12:56 schreef "Thomas von Hassel" : > Im not talking about what the users see, only what the models are called > inte

Re: BelongsToMany model

2014-09-01 Thread Thomas von Hassel
Im not talking about what the users see, only what the models are called internally /thomas On 01 Sep 2014, at 12:55, Abdelmajid el Ibrahimi wrote: > I have used it but it still didnt solve the problem. And to make everything > in english is double work for me because then i will n

Re: BelongsToMany model

2014-09-01 Thread Thomas von Hassel
If you use $this->primaryKey($myKey) in your Table model, thats not in the core file and a perfectly valid to do. But, i would mention that when designing your app, it's better to keep everything (model names etc) in english so the inflector knows how everything is named. /thomas O

Re: find all on complex model

2014-08-31 Thread Thomas von Hassel
There are plenty of complete examples here: http://book.cakephp.org/2.0/en/core-libraries/behaviors/containable.html#containing-deeper-associations On 31 Aug 2014, at 10:06, ajt wrote: > I tried this and as expected it doesnt work and it cant work because HABTM is > a different case. > THis

Re: find all on complex model

2014-08-30 Thread Thomas von Hassel
$this->Lesson->find('all', array( 'contain' => array( 'Student' , 'Tutor'))); given that your models are named as the conventions suggest You also need to attach the Containable Behaviour to your model /thomas On 30 A

Re: TranslateBehavior clarification

2014-08-28 Thread Thomas von Hassel
Hey Sorry to bump this, but is there a verdict from the powers that be ? ;) /thomas On 27 Aug 2014, at 16:53, José Lorenzo wrote: > What happens if you try to select a few fields? > > On Wednesday, August 27, 2014 3:05:28 PM UTC+2, Thomas von Hassel wrote: > Hey > > In

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

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

Re: Get controller name on layout file - CakePHP3

2014-08-28 Thread Thomas von Hassel
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 o

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 n

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 i

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/a

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

Re: TranslateBehavior clarification

2014-08-27 Thread Thomas von Hassel
ppens if you try to select a few fields? > > On Wednesday, August 27, 2014 3:05:28 PM UTC+2, Thomas von Hassel wrote: > Hey > > In 2.x when you used translate, the table should not contain the field(s) > that you were translating. > > In 3.x it's not clear if t

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

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 a

Re: Select Null option on helper on CakePHP3

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

TranslateBehavior clarification

2014-08-27 Thread Thomas von Hassel
using find('list')->select(['id', 'name']) fails, but setting the locale and doing a find('all') correctly output the translated fields. /thomas -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP

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

Re: CakePHP 3.0.0-beta1 released

2014-08-25 Thread Thomas von Hassel
same here .. i have been building stuff with the hope/expectation that we would hit beta right around now, so i'm probably 3 months ahead here ;) /thomas On 25 Aug 2014, at 11:25, Dr. Tarique Sani wrote: > I make a distinction between experimenting and building ;-) > > T >

Re: CakePHP 3.0.0-beta1 released

2014-08-24 Thread Thomas von Hassel
i have been building stuff for 3 months now ;) On 25 Aug 2014, at 05:17, Dr. Tarique Sani wrote: > we start building stuff now? -- 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 t

Re: 3.x - Custom Route Class, match()

2014-08-23 Thread Thomas von Hassel
, action) and feed them into the same RouteClass.. /thomas On 23 Aug 2014, at 20:44, José Lorenzo wrote: > What are you exactly trying to do? > > On Saturday, August 23, 2014 8:31:27 PM UTC+2, Thomas von Hassel wrote: > Hi > > I have a router defined like this: > >

3.x - Custom Route Class, match()

2014-08-23 Thread Thomas von Hassel
() method because the defaults are then set to [ 'action' => 'index', 'plugin' => null ] How do i construct a connect that will match something like Router::url(['controller' => 'somearbitratycontroller', 'action' => 'view&

Re: Baking into an admin sub folder or segmenting admin MVC from public website

2014-08-22 Thread Thomas von Hassel
Actually, in 3.x this is exactly what is going to happen. Admin controllers will live in an Controller\Admin namespace /thomas On 22 Aug 2014, at 10:39, Stephen S wrote: > Hey Paul > > I can understand your reasoning of wanting to bake controllers in an admin > subfolder but

Re: CakePHP 3 New ORM

2014-08-19 Thread Thomas von Hassel
In the last example each person entity will have a person_set property when you loop it Also ->toArray() on a query is a good way to see what the result set contains /Thomas Sent from my iPhone > On 19/08/2014, at 15.31, Dave Edwards wrote: > > Thanks for the replies, > &

Re: CakePHP 3 New ORM

2014-08-19 Thread Thomas von Hassel
Exactly, but if you have been using 2.x for a long time, you have to "unlearn" all the quirks. Once you do that things are much more intuitive in the new ORM /thomas On 19 Aug 2014, at 11:16, José Lorenzo wrote: > I don't think it is, on the contrary, I feel that th

Re: map/reduce with translated models

2014-08-19 Thread Thomas von Hassel
Running though a findPath result set to generate breadcrumbs /thomas On 19 Aug 2014, at 09:52, José Lorenzo wrote: > You are right... MapReduce will run before any formatters, so I would suggest > using a formatter instead. In general you can achieve the same with both. > > What

Re: map/reduce with translated models

2014-08-18 Thread Thomas von Hassel
/tests/TestCase/Model/Behavior/TranslateBehaviorTest.php#L132 > > What problems are you having? > > On Monday, August 18, 2014 10:15:16 PM UTC+2, Thomas von Hassel wrote: > When doing map/reduce on a model with translated fields, there is not good > way to get the translated conten

Re: CakePHP 3 New ORM

2014-08-18 Thread Thomas von Hassel
In the first example you could call $query->toArray() to get an array of article objects back. The beauty is when you can start chaining stuff together, for instance custom find methods /thomas On 18 Aug 2014, at 16:59, Dave Edwards wrote: > Hi, > > I'm having troubl

map/reduce with translated models

2014-08-18 Thread Thomas von Hassel
When doing map/reduce on a model with translated fields, there is not good way to get the translated content in the map/reduce fase except to look in the `_i18n` association ? /thomas -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP

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

Re: How to access vendor classes in CakePHP 3

2014-08-18 Thread Thomas von Hassel
./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

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

Re: How to access vendor classes in CakePHP 3

2014-08-18 Thread Thomas von Hassel
can you post the code where you instantiate the class ? On 18 Aug 2014, at 11:42, 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

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: 3.x - Entity virtual fields

2014-08-17 Thread Thomas von Hassel
nday, August 17, 2014 11:19:53 PM UTC+2, Thomas von Hassel wrote: > another related question. When outputting an entity to json, DATE and > DATETIME fields are formatted like > > "modified": "2014-08-17T19:45:57+", > > Is there a way to set a format

Re: 3.x - Entity virtual fields

2014-08-17 Thread Thomas von Hassel
wrote: > No problem :) > > On Monday, July 7, 2014 3:50:50 PM UTC+2, Thomas von Hassel wrote: > oh hell ... thanks :) > > On 07 Jul 2014, at 15:49, José Lorenzo wrote: > >> http://book.cakephp.org/3.0/en/orm/entities.html#exposing-virtual-properties >> >> On Mon

patchEntity with translations

2014-08-17 Thread Thomas von Hassel
] ] ]; into patchEntity() is there an easy way to have the translations patched autmaticly or do i have to loop though _translations from find('translated') and update them there ? /thomas -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitte

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 funct

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

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

Re: 3.x - en/disable

2014-08-13 Thread Thomas von Hassel
Hi I just mean that if i remove the behaviour, do some stuff, and then add it again, i would have to add it with the same options as i gave it in Table::initialize() /thomas On 13 Aug 2014, at 13:31, José Lorenzo wrote: > Not sure what you meant > > On Wednesday, August 13,

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 k

Re: 3.x - en/disable

2014-08-13 Thread Thomas von Hassel
ok, that's a bit more verbose if you have something like translate where you define translated fields :) On 13 Aug 2014, at 13:01, José Lorenzo wrote: > unload and load again > > On Wednesday, August 13, 2014 10:48:02 AM UTC+2, Thomas von Hassel wrote: > Hey > > In 2.

3.x - en/disable

2014-08-13 Thread Thomas von Hassel
Hey In 2.x you could temporarily disable a behaviour like this: `$this->Behaviors->disable('Translate');` Is that coming back to 3.x or should i just remove and add them when needed ? /thomas -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter ht

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

Re: 3.x - where and null

2014-08-09 Thread Thomas von Hassel
where ? On 09 Aug 2014, at 17:33, José Lorenzo wrote: > No, I think we forgot to include it in the book. Would you be kind to do that > as well? :) > > On Saturday, August 9, 2014 5:12:04 PM UTC+2, Thomas von Hassel wrote: > It's not really documented is it ? (or maybe i&

Re: 3.x - where and null

2014-08-09 Thread Thomas von Hassel
It's not really documented is it ? (or maybe i'm just blind ?) (The IS operator that is) /thomas On 09 Aug 2014, at 15:16, José Lorenzo wrote: > Nope, it was added after I created the TreeBehavior. Do you have time to > submit a PR for changing that? > > On Saturday,

Re: 3.x - where and null

2014-08-09 Thread Thomas von Hassel
> ->where(['parent_id IS' => $parent_id]) > > It will convert to NULL if needed or just use the provided value > > On Saturday, August 9, 2014 3:04:51 PM UTC+2, Thomas von Hassel wrote: > Hey > > in 2.x you could do something like this: > > '

3.x - where and null

2014-08-09 Thread Thomas von Hassel
x where a field in an INT but can be null ? /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

Re: GET or POST

2014-08-09 Thread Steve Thomas
fill out the form it simply adds another employee to their company roster. I'm still amazed there isn't something in cakephp that solves it with a post. Thanks for youe help. Steve Thomas On Friday, August 8, 2014 6:16:52 PM UTC-4, Andras Kende wrote: > > You could add

Re: GET or POST

2014-08-08 Thread Thomas von Hassel
You should check the ACL in the edit controller action before actually doing anything /thomas On 08 Aug 2014, at 22:33, Steve Thomas wrote: > All the manager would have to do is change the id in the address bar to > access another user. Possibly a user from a different company whic

Re: GET or POST

2014-08-08 Thread Steve Thomas
T if it does not alter the database (view, index, add/edit for display > of form) > POST to alter the database (add/edit upon save, delete) > > mark > > > Am Freitag, 8. August 2014 17:55:10 UTC+2 schrieb Steve Thomas: >> >> I'm wondering what everyone is doi

Testing controllers - 3.x

2014-08-08 Thread Thomas von Hassel
it work. Is this the intended behaviour ? /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 g

GET or POST

2014-08-08 Thread Steve Thomas
I'm wondering what everyone is doing about the default links. I'm setting up an application that has multiple companies with multiple employees. One company can't see another companies employees. However, if a manager can display a list of all their employees and edit them via GET, they can simp

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: Custom FormWidget Vs Custom FormHelper vs ... [Cake 3]

2014-08-06 Thread Thomas von Hassel
; > On Wednesday, August 6, 2014 1:52:02 PM UTC+2, Thomas von Hassel wrote: > It is cleaner ... and maybe i just need to fiddle with it some more. > > For instance being able to set a class to the container div without having to > make a template would be nice ? > > On 06 Aug

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

2014-08-06 Thread Thomas von Hassel
mes you can just > define templates and get away with it. > > I am loving it! > > T > > > On Wed, Aug 6, 2014 at 5:10 PM, Thomas von Hassel wrote: > Hey > > If i can chime in, the template system is very clever, but in comparison to > the way it was

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

2014-08-06 Thread Thomas von Hassel
Hey If i can chime in, the template system is very clever, but in comparison to the way it was done in 2.x there are quote a few more hoops to go though to achieve certain things. /thomas On 06 Aug 2014, at 13:30, Dr. Tarique Sani wrote: > Thanks, but if I look

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+

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

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

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

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

Re: How to get last insert id in cakePHP 3

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

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/CakePH

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

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

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 tr

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

2014-08-04 Thread Jipson Thomas
t('Vendor.phone') ?> Form->input('Vendor.website') ?> Form->input('Vendor.address') ?> Form->input('Vendor.country') ?> Form->input('Vendor.city') ?> Form->input('Vendor.state&

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

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_

Re: CakePHP 3.0 fatal error

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

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 */Applicatio

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.

Re: CakePHP 3.0 - Correct way to append / prepend HTML on FormHelper

2014-08-01 Thread Thomas von Hassel
use the `inputContainer` template to wrap the content like this: 'inputContainer' => '{{content}}', or create a custom widget, depending on how much customisation you want On 01 Aug 2014, at 12:24, Mikaël Capelle wrote: > Hi everyone, > > I am porting my CakePHP 2.0 helpers to CakePHP 3.0

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? Than

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

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 unsub

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

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 >> >&g

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

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

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 Group

Re: Display Form Validation Errors CakePHP 3

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

Re: Display Form Validation Errors CakePHP 3

2014-07-30 Thread Jipson Thomas
return $this->redirect(['action' => 'index']); } else{ // $errors = $this->Package->errors(); $error_string= implode('\n',$package->errors()); //print_r($package);

  1   2   3   4   >