Re: New CakePHP ORM to CakePHP 2.x

2015-10-22 Thread Elisio Leonardo
Also interested in this question. Partial Migration would be great. I'm looking for a way to migrate some models to new ORM and gradually migrate the others.. On Tuesday, September 22, 2015 at 9:23:50 AM UTC+2, Sulian Lanteri wrote: > > Hello > > Before migrate a big application in CakePHP3,

Re: Use Bake with another PHP version

2015-10-22 Thread Elisio Leonardo
Find the PHP.INI for your desirde PHP Version, and view the executable path marked with "PHP_BINDIR" variable. Then do /path/to/php cake bake hope it works... i have not tested :( On Wednesday, October 14, 2015 at 10:45:06 PM UTC+2, Sebastian S wrote: > > Hi all > I have trouble using bin/bake

Re: Pesquisa de Frameworks PHP

2015-10-22 Thread Elisio Leonardo
Respondindo On Wednesday, October 14, 2015 at 10:45:06 PM UTC+2, cassiane silva wrote: > > Oi gente, sou Cassiane estou fazendo meu TCC sobre frameworks PHP em visão > de fazer o meu próprio para Trabalho de Conclusão em Analise e > Desenvolvimento de Sistema > Demora apenas 5 minutos e preciso

Re: 3.0: a peek into CakePHP's future

2013-07-24 Thread Leonardo Jorge Dias Carmo
I'm starting to use angular.js, it's realy cool, and now i developing api first, with this i can distribute to smartphone, tablets, html5 applications more easy and fast. And the workflow looks better Em quarta-feira, 17 de julho de 2013 23h46min56s UTC-3, Benjamin Allison escreveu: > > I

Access Control for Large and multi level CakePHP System

2013-06-02 Thread Elisio Leonardo
I'm building a CakePHP Student Management System to be used by large Universities(50.000+ users), and i'm wondering what is the best way for implementing the Access Control Stuff. The University has many faculties, the faculties as many departments and the departments as many sections and so on

Cache Rest

2013-04-12 Thread Leonardo Jorge Dias Carmo
Sup guys, I'm developing a rest api for an app with cakephp to be consumed by smarthphones, and i need to make a cache of data. I already make cache of queries with apc, but i still have traffic with this... i'll probably use http cache expire, but when expire, the data can be the same and wi

Re: Cakephp Login via mobile app

2013-03-28 Thread Leonardo Jorge Dias Carmo
I did, something using http authentication, but didn't finish (tests). http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#using-digest-and-basic-authentication-for-logging-in Em domingo, 24 de março de 2013 05h16min22s UTC-3, Sam escreveu: > > Has anyone tried doing a l

Re: loading models in beforeFilter

2013-01-13 Thread Leonardo
>> >> I'm using the datasources plugin, but it is not used in this particular controller nor in any class that is loaded there. > > I was referring to the location of your User model I'm using no plug-in then > > You're describing another authorization handler > http://book.cakephp.org/2.0/en/

Re: queries on HABTM relationships

2013-01-02 Thread Leonardo
Excuse me Ivan, but there is no reference to userScope attribute anywhere in the source code of cakePHP, I assume you mean $this->Auth->scope. But it still doesn't help me, is was under the impression that that attribute is used to impose conditions for logging users in, this is not my case,

Re: Cakephp + TCPDF

2012-07-29 Thread Elisio Leonardo
You should really try to use Cakepdf Plugin. https://github.com/ceeram/CakePdf On Thursday, July 26, 2012 12:04:32 AM UTC+2, gloop wrote: > > Hello, > > i would like to create a pdf. Now i found this: > > > http://bakery.cakephp.org/articles/kalileo/2010/06/08/creating-pdf-files-with-cakephp-and-

Re: CakePDF Change page orientation

2012-07-20 Thread Elisio Leonardo
Mike, i changed the orientation by adding 'oritentation'=>''landscape' on the $pdfConfig array On Friday, July 20, 2012 10:26:41 AM UTC+2, Mike Griffin wrote: > > On Fri, Jul 20, 2012 at 8:37 AM, Elisio Leonardo > wrote: > > Thanks for your response

Re: CakePDF Change page orientation

2012-07-20 Thread Elisio Leonardo
> landscape* > 'paper' => 'A4' // accept all paper types of tcpdf library > ).. > > So, *P *for Portrait, *L *for Landscape. > > > On Friday, 20 July 2012 00:59:07 UTC+3, Elisio Leonardo wrote: >> >> Hi guys, >&

CakePDF Change page orientation

2012-07-19 Thread Elisio Leonardo
Hi guys, How can I change page orientation from portrait to landscape with CakePDF plugin? I have looked at the source code and in CakePDF class i can see the $_orientation variable, so the main question is, where should i use the CakePDF class? In my controller or in views? -- Our newest si

Re: How does $this->request->is('post') works?

2012-02-06 Thread Elisio Leonardo
Just use "PUT", since you are not creating new record, but editing existent one if ($this->request->is('post') || $this->request->is('put')){ ... } -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakep

Re: Need cakePHP project

2012-01-16 Thread Elisio Leonardo
Why not publish the link here for everyone to see, instead of send only by email? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsu

Re: Cakephp 2.0.4 is losing Session data

2012-01-06 Thread elisio . leonardo
So what should I do for cakephp to not consider the referer.check?? For now what I did is including the line: Ini_set('referer_check','') at the top of core.php and things seems to be working fine now. Is this the best way to solve this problem Enviado através do BlackBerry® Smartphone da mcel.

Cakephp 2.0.4 is losing Session data

2012-01-06 Thread Elisio Leonardo
Hello, I'm using CakePHP 2.0.4 to build an app and i've integrated the Paypal_IPN plugin to make payments via Paypal. The problem is that everytime i go to paypal, when i return to my site after making payment, the session data is losed. My Security.level is set to "low", so this thing should

Re: need help in updateAll

2011-09-08 Thread Elisio Leonardo
You don't need to use updateAll. save will do all the job to create or update a record in db. You also need to put the line: $this->$table->create(); before save a new record to db $this->loadModel($table); $row = $this->$table->find('count',array('conditions'=>array('user_id'=

Re: I want to add Auth authentication in all views.

2011-02-14 Thread Leonardo Hidalgo Piña
this group, send email to > cake-php+unsubscr...@googlegroups.com For more options, visit this group > at http://groups.google.com/group/cake-php > -- Leonardo Hidalgo Piña Desarrollador Web http://braindeveloper.me MSN: leohida...@gmail.com Celular: (+56) (99) 632 5603 Skype: r0cket82 Twitter: r

Problem to select right value on $form->input (select) with text index

2009-10-14 Thread Leonardo "Hackin" Freire
s saved and the input field too. But, in my update action, the $form->input, that renders in a form of select, don't select the right value. =/ Ex.: I'm saved a client_id value "J51", and in my update view this not select; Ex.: I'm saved a client_id value &qu

Re: Gziping JS and CSS files using .htaccess

2009-01-26 Thread Leonardo K
This work for me: Add this on .htaccess file AddOutputFilterByType DEFLATE application/x-javascript text/css text/javascript text/html On Sun, Jan 25, 2009 at 18:16, Sam Sherlock wrote: > try > http://marcgrabanski.com/pages/code/asset-mapper > > 2009/1/25 Sridhar Kuppalli > > This is n

Re: AppController being ignored

2008-10-10 Thread Fabricio Leonardo Sodano Pascazi
extends AppController { > > > -- > /** > * @author Larry E. Masters > * @var string $userName > * @param string $realName > * @returns string aka PhpNut > * @access public > */ > > On Fri, Oct 10, 2008 at 10:09 AM, Fabricio Leonardo Sodano Pascazi < > [EMAI

Re: AppController being ignored

2008-10-10 Thread Fabricio Leonardo Sodano Pascazi
Thanks for the reply, here's my events controller Event->findAll(); $this->set('data',$data); } function admin_list(){ $data = $this->Event->find('list', array( 'fields' => array('name'), 'order' => 'name ASC', 'recursive'=>'0' )

Re: Validation Issue - Multiple rows / multiple models, One form

2008-09-05 Thread Leonardo
I have the same problem. Any idea? sorry my english. On Aug 17, 5:22 pm, Donius <[EMAIL PROTECTED]> wrote: > Thank you, but sadly not quite what i'm looking for.  I can get the > validation to accept and reject successfully without issue.  My > problem is that theformelements on the front end a

Re: What editor do you use for CakePHP?

2007-02-16 Thread Leonardo Varuzza
Emacs, the one true editor ;-) On Feb 13, 2:08 pm, Jason Huebel <[EMAIL PROTECTED]> wrote: > For those poor souls who can't use TextMate because you're on Windows, > you might want to take a look at InType (http://intype.info/). It's > still in alpha (and will eventually be commercial software),