Re: Cakephp 2.x Receive emails into the application...

2016-03-13 Thread euromark
This might help you https://github.com/barbushin/php-imap Am Samstag, 12. März 2016 01:31:18 UTC+1 schrieb April DeRossett: > > Ahoy! I am looking for a way to receive reply emails into my cakephp > application and after a ton of research I haven't yet figured out how to > make that happen. P

Re: Cakephp 2.x ajax edit not working in Firefox and Opera

2013-12-19 Thread cake_beginner
im also having this kind of problem. does anyone know what's wrong with this one? On Friday, September 14, 2012 6:23:05 AM UTC+8, incognito wrote: > > Hi, > > I am basically trying to create an ajax edit form. > This is the edit link code > > Js->link('Edit', > array('controller' => 'e

Re: CakePHP 2.x running on Lighttpd

2013-11-29 Thread Κωνσταντίνος Θεοφίλης
Did you found any solution for that? Τη Δευτέρα, 11 Νοεμβρίου 2013 2:35:16 μ.μ. UTC+2, ο χρήστης Riccardo Trombini έγραψε: > > Hi > > Did someone successfully manage to run CakePHP 2.x on a lighttp server? I > am having troubles accessing javascript and css-files. I run into an error > 404. >

Re: CakePHP 2.x Date Field Helper set year?

2013-08-07 Thread euromark
the rule stays the same, you just apply a different start value to check against. < TODAY is the same as < $startValue for your custom validation method anyway Am Mittwoch, 7. August 2013 20:06:50 UTC+2 schrieb Eric Haskins: > > Hey everyone quick question. > > I have an app and Im having iss

RE: CakePHP 2.x Moving Find into Model

2013-05-23 Thread Advantage+
simply swap out as needed From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Jeremy Burns : Class Outfit Sent: Friday, May 24, 2013 2:01 AM To: cake-php@googlegroups.com Subject: Re: CakePHP 2.x Moving Find into Model Got it - thanks. So you're really just se

Re: CakePHP 2.x Moving Find into Model

2013-05-23 Thread Jeremy Burns : Class Outfit
r you. > Then do standard: > > $this->set('whatever', $this->paginate('Model')); > > All it is basically is the same as you normally would do in the controller > but rather than having all that crap I find it easier to say paginateThis(), > pagginate

RE: CakePHP 2.x Moving Find into Model

2013-05-23 Thread Advantage+
$this->set('whatever', $this->paginate('Model')); All it is basically is the same as you normally would do in the controller but rather than having all that crap I find it easier to say paginateThis(), pagginateThat() rather than all that in the controller and just pull

Re: CakePHP 2.x Moving Find into Model

2013-05-23 Thread Jeremy Burns : Class Outfit
Have you got an example of that? On 24 May 2013, at 01:09, lowpass wrote: > Apply the array to the $paginate class var, not the method. Basically, you > can declare the $paginate array as a class var, then add to or override any > part of it from within an action. > > > On Thu, May 23, 2013

Re: CakePHP 2.x Moving Find into Model

2013-05-23 Thread lowpass
Apply the array to the $paginate class var, not the method. Basically, you can declare the $paginate array as a class var, then add to or override any part of it from within an action. On Thu, May 23, 2013 at 7:12 PM, Larry Lutz wrote: > I'm trying to achieve the fat model/skinny controller man

Re: CakePhp 2.x - Internationalization/Localization/Translate Behavior/i18n - How to use in 2.x?

2013-04-14 Thread Livin Inchina
Hi Kicaj and thanks for your post, I stumbled upon it before to start the internationalization of project. It was helpful but my main problem is that I can't save data with validation, I have to turn them off on my save($data,false) and I can't figure why it won't work! -- Like Us on FaceBook

Re: CakePhp 2.x - Internationalization/Localization/Translate Behavior/i18n - How to use in 2.x?

2013-04-09 Thread kicaj
Read my article on bakery site: http://bakery.cakephp.org/articles/kicaj/2013/01/27/internationalization_with_static_and_dynamic_content_routing_and_switching W dniu wtorek, 2 kwietnia 2013 05:06:25 UTC+2 użytkownik Livin Inchina napisał: > > Hi everyone! > > I'm having a hard time making my web

Re: Cakephp 2.x - Changing the name of a table within the schema

2013-02-15 Thread Simon Males
Not sure if it is possible using the core CakePHP schema tool. If I was to attempt this, I would investigate what events are sent to the before() method. If you find something that works. Then run ClassRegistry::init('Model')->query('RENAME ...'). Take a look at how I pre-populated a user table a

Re: CakePHP 2.x and ajax

2012-11-04 Thread Jeremy Burns : Class Outfit
The ajax helper is deprecated in 2.0. Here's a quick and dirty ajax form submission: in app_controller->beforeFilter(): if ($this->RequestHandler->isAjax()) { Configure::write('debug', 0); $this->autoRender = false; $this->layout = 'ajax'; } In the section of default layout:

Re: CakePHP 2.x and ajax

2012-11-03 Thread kani
http://www.cakephp.4uk.pl On Thursday, November 1, 2012 4:18:57 PM UTC+8, franscelstain wrote: > > is there someone who can teach me to use ajax in cakephp 2.x, because I am > still very novice > > thanks > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitte

Re: CakePHP 2.x and ajax

2012-11-02 Thread Karey Powell
Checkout this video: http://www.youtube.com/watch?v=dQ71psonQx0&feature=plcp. Hope it helps. On Thursday, 1 November 2012 04:18:57 UTC-4, franscelstain wrote: > > is there someone who can teach me to use ajax in cakephp 2.x, because I am > still very novice > > thanks > -- Like Us on FaceBook

Re: CakePHP 2.x implement edit form in ajax in a popup

2012-10-30 Thread Babulal Saini
Hi, You are use facebox jquery this is very nice On Wednesday, October 3, 2012 10:00:22 AM UTC-4, Kiran wrote: > > I have read other posts and searched google before posting this here. > > I have a jquery popup in a view where I intend to show EDIT form and then > submit using ajax. > > Furt

Re: CakePHP 2.x how to manage multiple user-tables and access areas?

2012-10-23 Thread Braindead
Actually you only need one table with the following fields: username or email password group + additional fields that might be useful for your application After login (with AuthComponent) you can check to which group the user belongs. Depending on the group you can redirect the user to the corre

Re: CakePHP 2.x implement edit form in ajax in a popup

2012-10-03 Thread Kiran Ambati
Thank you very much Ivan, I got an Idea now. I tried similarly but couldnt get it worked and thought that was not the right way. It is clear now. I will try this and post my results here. Cheers, Kiran On Thu, Oct 4, 2012 at 11:46 AM, Ivan Rimac wrote: > You can find solution inside code down

Re: CakePHP 2.x implement edit form in ajax in a popup

2012-10-03 Thread Ivan Rimac
You can find solution inside code down here, just read it carefuly. I used fancybox, but easily you can use some other functions from jquery. I recommend you fancybox for this kind of action. Form->create('Feedback', array('id' => 'feedback-form', 'controller' => 'feedbacks', 'action' => 'add'

Re: CakePHP 2.x implement edit form in ajax in a popup

2012-10-03 Thread Kiran Ambati
Thanks for your reply Greg. If I had to close the pop up , your solution might work. But I should not close the pop up on submit. That is why I want to do that in Ajax. How can $load pick form which is not on the page. However I am able to display form. I need to know how to submit this form in

Re: CakePHP 2.x implement edit form in ajax in a popup

2012-10-03 Thread Greg Skerman
jquery, and $.load() will be your friend here. You can just "load" the html view of the edit form into a div and show it. not the only way to do it, but certainly the most straight forward. (then just trap the submit, serialize the form, fire off a post in jquery and close the popup, refresh the

Re: CakePHP 2.X Issues with rounting

2012-08-03 Thread lowpass
Set debug to 2. Cake sends a generic 404 when there's an error when debug is disabled. On Fri, Aug 3, 2012 at 3:23 PM, Almog Koren wrote: > Hi everyone, > I'm upgrading a baked application from 1.3 to 2.2.1 and I'm running > into some issue with the routes, in short its not working. > > I have >

Re: Cakephp 2.x best practice when adding/editing content?

2012-08-03 Thread bujanga
Validation redundancy. When save is called, the data passed to it in the first parameter is validated using CakePHP validation mechanism. Read more on Models -> Saving your data. Also, the validation errors are already available to the view so no need to set them. Try bake and see what it does to

Re: Cakephp 2.x best practice when adding/editing content?

2012-08-03 Thread MetZ
Hi Mark.. - Setting validation errors to view to display them in an element => You need to correct: Error message 1, Error message 2, Error message 3 => Need it ;) - __('some text', true) => For translation strings, not sure why I started to use the TRUE, but I think it is because of not beein

Re: Cakephp 2.x best practice when adding/editing content?

2012-08-03 Thread euromark
for starters, take out the validation redundancy why setting the errors to the view? also not necessary also, in 2.x your __() looks differently (arguments usually are not "true" but replacement strings) why dont you use baking? it would display a better output than you currently have Am Fre

Re: Cakephp 2.x best practice when adding/editing content?

2012-08-03 Thread MetZ
Yes, I understand what you are doing :) Have a couple of those myself.. But my question is (perhaps not clear enough), the best practice for a function like add and edit. I am thinking about: if ($this->request->is('post')) { $this->User->set($this->request->data); if ($this->User->validates()

Re: Cakephp 2.x best practice when adding/editing content?

2012-08-03 Thread SoulRaven
i use a single method, add/edit even if is user or admin, the difference between add/edit is that on edit you have the ID set, or in parameter or in $this->data admin_editpost($id = null){ if(is_null($id){ //something } } i guess you understand vineri, 3 august 2012, 1

Re: Cakephp 2.X with PEAR:DB drivers

2012-05-18 Thread abhijit kakade
Thanks for your help , i think writting a pear db datasource is a good option. On Fri, May 18, 2012 at 4:11 AM, AD7six wrote: > >> Ok, I wanted to be sure you weren't trying to use the PEAR lib with a db > that is already well supported. > > I know nothing about the status of any mssql dbo drive

Re: Cakephp 2.X with PEAR:DB drivers

2012-05-17 Thread AD7six
> > > Ok, I wanted to be sure you weren't trying to use the PEAR lib with a db that is already well supported. I know nothing about the status of any mssql dbo driver - but there are also numerous references pointing at: https://github.com/rchavik/datasources/blob/mssql-2.0/Model/Datasource/Dat

Re: Cakephp 2.X with PEAR:DB drivers

2012-05-16 Thread abhikakade
I am using PHP 5.2 + Mssql 2008 + Linux Server and Cake 2.1.2, latest version of cake only Sqlsrv drivers that does not work on Linux box. Because lack of php_mssql drivers in cake i have to use PEAR:DB drivers with cakephp, also i want strong support for store procedure calls that cake in built d

Re: Cakephp 2.X with PEAR:DB drivers

2012-05-16 Thread AD7six
On Wednesday, 16 May 2012 06:37:53 UTC+2, abhikakade wrote: > > Hi All > > I there any way to use cakephp 2.X with PEAR:DB drivers ? i have > checked old cake version supports pear connection but not the latest > one.. is there any native drivers available to connect with PEAR:DB > class ?

Re: CakePHP 2.x plugin configs

2012-03-05 Thread majna
You can use configuration files. Check this gist: https://gist.github.com/1978200 On Saturday, March 3, 2012 5:41:42 PM UTC+1, U-Zyn Chua wrote: > > Hello, > > I've been a long time user of CakePHP (since pre v1) but have only > recently checked out CakePHP 2.x. > > I'm writing a plugin for Cake

Re: CakePHP 2.x - Call to undefined method View::fetch()

2012-01-16 Thread Anna P
Thanks very much. I've checked Cookbook again - of course I didn't notice a key information which is: "New in version 2.1." :> On 16 Sty, 17:01, Tilen Majerle wrote: > of course, > > View::fetch() is available since 2.1, but you have 2.0.5 > > use $content_for_layout instead > -- > > > > > > >

Re: CakePHP 2.x - Call to undefined method View::fetch()

2012-01-16 Thread Tilen Majerle
of course, View::fetch() is available since 2.1, but you have 2.0.5 use $content_for_layout instead -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/1/16 Anna P > Hello. > > I'm starting to build an app on CakePHP 2.x - I have been using > version 1.2 since now. > > I downloaded the 2.0.

Re: CakePHP 2.X

2011-12-22 Thread Jeremy Burns
I guess studding would get in the way of programming. At least for me it does anyway. On 22 Dec 2011, at 12:58:17, Ucha19871 wrote: > > > On Dec 22, 5:38 am, "M Kaufman (Gmail)" wrote: >> What about one with a 42u rack in his random location without Internet, >> operating quite securely, and

Re: CakePHP 2.X

2011-12-22 Thread Ucha19871
On Dec 22, 5:38 am, "M Kaufman (Gmail)" wrote: > What about one with a 42u rack in his random location without Internet, > operating quite securely, and avoiding theft or notice? I'm exactly in that situation ... I don't what to be distracted while I studding... AD7six - Thanks for this link

Re: CakePHP 2.X

2011-12-22 Thread euromark
@ M Kaufman: "What about one with a 42u rack in his random location without Internet, operating quite securely, and avoiding theft or notice? " Nice example^^ Must be sth pretty important you are programming. you could simply use two computers then instead of making yourself the most isolated huma

Re: CakePHP 2.X

2011-12-22 Thread AD7six
On Dec 21, 11:56 pm, Ucha19871 wrote: > ooh thx.. I know this documentation,but .. do you have a PDF version > of this documentation .. or .CHM file.. > so i can use it locally, without Internet.. The source is here, it is quite trivial to build for local use: https://github.com/cakephp/docs A

Re: CakePHP 2.X

2011-12-21 Thread Justin Edwards
If a tree falls in a forest and no one is around to see it, do all of the other trees make fun of it? On Wed, Dec 21, 2011 at 7:38 PM, M Kaufman (Gmail) wrote: > What about one with a 42u rack in his random location without Internet, > operating quite securely, and avoiding theft or notice? > >

Re: CakePHP 2.X

2011-12-21 Thread M Kaufman (Gmail)
What about one with a 42u rack in his random location without Internet, operating quite securely, and avoiding theft or notice? Sent from my iPhone On Dec 21, 2011, at 4:50 PM, euromark wrote: > a (web)programmer that doesnt have internet? :) > > > On 21 Dez., 23:56, Ucha19871 wrote: >> ooh

Re: CakePHP 2.X

2011-12-21 Thread euromark
a (web)programmer that doesnt have internet? :) On 21 Dez., 23:56, Ucha19871 wrote: > ooh thx.. I know this documentation,but .. do you have a PDF version > of this documentation .. or .CHM file.. > so i can use it locally, without Internet.. -- Our newest site for the community: CakePHP Video

Re: CakePHP 2.X

2011-12-21 Thread Ucha19871
ooh thx.. I know this documentation,but .. do you have a PDF version of this documentation .. or .CHM file.. so i can use it locally, without Internet.. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakeph

Re: CakePHP 2.X

2011-12-21 Thread Tilen Majerle
http://book.cakephp.org/2.0/en/ here we are :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/12/21 Ucha19871 > Hello, I am new in CakePHP and what to know, when will be CakePHP 2.x > book available ? > Can you give me links for the new (2.0) book pleas ? > > -- > Our newest site for th

Re: CakePHP 2.X

2011-12-21 Thread Timothy O'Reilly
I'm a newbie too :) http://book.cakephp.org/2.0/en/ Regards, Tim On Wed, Dec 21, 2011 at 2:49 PM, Ucha19871 wrote: > Hello, I am new in CakePHP and what to know, when will be CakePHP 2.x > book available ? > Can you give me links for the new (2.0) book pleas ? > > -- > Our newest site for the c