Re: campo id

2012-01-05 Thread Laerte M. Rodrigues
se a tabela possui chave primaria no modelo declare var $primary = "nomeCampo"; assim, será a chave primária, caso seja composta, utilize array var $primary = array("Campo1","Campo2"); Em 5 de janeiro de 2012 16:14, Filippi Rizzi escreveu: > Olá! Trabalho com o cake a alguns anos, e sempre u

Re: Having PHP generate a PDF

2012-01-03 Thread Laerte M. Rodrigues
use jaspter reports with PHP to generate document files 2012/1/3 euromark > @roundrightfarm > I dont think such a helper is part of the core, though :) > > > On 3 Jan., 17:25, "Yves S. Garret" wrote: > > That sounds interesting, but will it work with my requirement of having > the > > header an

Re: How access to $this->webroot controller's variable from a model?

2012-01-02 Thread Laerte M. Rodrigues
if they have the absolute path, use const WEBROOT_DIR 2012/1/2 Tilen Majerle > he is probably need absolute path for webroot, not browser :) > -- > Lep pozdrav, Tilen Majerle > http://majerle.eu > > > > 2012/1/2 Laerte M. Rodrigues > >> I use Cakephp 2.0

Re: How access to $this->webroot controller's variable from a model?

2012-01-02 Thread Laerte M. Rodrigues
I use Cakephp 2.0 and the static method Helper::url('/') return the URL from WebRoot 2012/1/2 清水紘己 > >Laerte M. Rodrigues > You meant Router::url(), right? > > It will return proper value through web, but not in cli at edge cases. > Recommended way is manually t

Re: How access to $this->webroot controller's variable from a model?

2012-01-02 Thread Laerte M. Rodrigues
use Helper::url('/') 2012/1/2 byqsri > Hi > I would ask how can I access to "$this->webroot" controller's variable > from a model? > Many Thanks > Marco > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://a

Re: CAKE PHP Installation Problem

2012-01-01 Thread Laerte M. Rodrigues
verify if the rewrite_module is enabled in your apache server 2012/1/1 Wanted > Believe me I have done Everything according to the tutorialsin > my case its http://localhost/cakephp1.3/ > > and Everything is green in the end > > but when I goto http://localhost/cakephp1.3/posts it