Re: Cannot access empty property in View.php on line 854

2013-06-13 Thread Vitor Pacheco
$this->$form should be $this->Form



2013/6/13 Gaurav Matta 

> Try if(!(empty()))
> On 13-Jun-2013 8:49 AM, "alfredo davila" 
> wrote:
>
>> ok, this is my View call add.ctp
>>
>> Create an Account
>> > echo $this->$form->create('User', array('action' => 'add'));
>>   echo $this->$form->input('username');
>>   echo $this->$form->input('password', array('type' => 'password'));
>>   echo $this->$form->input('password_confirm', array('type' =>
>> 'password'));
>>   echo $this->$form->submit();
>>   echo $this->$form->end();
>> ?>
>>
>> my Model
>> > class User extends AppModel{
>>  var $name = 'User';
>> }
>> ?>
>>
>>  and my Controller
>>
>> > class UsersController extends AppController{
>>
>> var $name = 'Users';
>>  # needed for 'register'
>> var $helpers = array('Html', 'Form');
>>
>> public function index(){
>>  }
>>  function add() {
>> if (!empty($this->data)) {
>> if ($this->data['User']['password'] ==
>> $this->Auth->password($this->data['User']['password_confirm'])){
>> $this->User->create();
>> if($this->User->save($this->data)){
>>   $this->Auth->login($this->data);
>>   $this->redirect(array('action' => 'index'));
>> }
>>  }
>> }
>> }
>> }
>> ?>
>>
>> El lunes, 10 de junio de 2013 18:20:21 UTC-5, alfredo davila escribió:
>>>
>>> I can´t stop dealing with this problem in my cakephp :S I think it´s
>>> problem of the Model or the View.
>>> Can anyone help me? :S
>>>
>>  --
>> 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 stop receiving emails from it, send an
>> email to cake-php+unsubscr...@googlegroups.com.
>> To post to this group, send email to cake-php@googlegroups.com.
>> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>  --
> 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 stop receiving emails from it, send an
> email to cake-php+unsubscr...@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
*Vitor Pacheco*
*Skype: vitor.pacheco.costa
Msn: vitor-...@hotmail.com*
*GTalk: vitorpc...@gmail.com**
**Cel.: 71 8626-7909
Tel.: 71 3378-5778 /** 71 3287-3475*

-- 
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 stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Mensagem antes da autenticação

2013-04-21 Thread Vitor Pacheco
A condição a mais está verificando o tipo de requisição que está sendo
feita a action login... E não tem relação alguma com posts de um blog.

Quando você abre a página de login, é enviada uma requisição GET para o
servidor. E quando o formulário é enviado, o browser envia uma requisição
POST para a mesma action.

Do jeito que seu código está, toda vez que a action login for acessada o
$this->Auth->login() é testado, porém só é necessário se for um POST, por
isso adicionei essa condição.

https://en.wikipedia.org/wiki/HTTP#Request_methods



Em 21 de abril de 2013 20:20, Anderson Moraes escreveu:

> Vitor Pacheco, obrigado pela resposta.
>
> Então, sua função tem uma condição a mais ( if
> ($this->request->is('post')) {), o que essa linha faz??? Pois no meu caso
> não se trata de um blog, e eu não tenho um "post".
>
>
> Em sexta-feira, 19 de abril de 2013 17h25min19s UTC-3, Anderson Moraes
> escreveu:
>
>> Boa tarde pessoal.
>>
>> Eu estou começando agora no CakePHP e estou fazendo uma área restrita, o
>> que tá acontecendo é o seguinte, quando eu entro em uma página onde é
>> necessário estar logado, eu sou direcionado para tela de login e é exibido
>> a seguinte mensagem "Área Restrita", mas o problema é que junto está
>> aparecendo a mensagem "Usuário ou senha inválidos", sendo que essa mensagem
>> deveria aparecer somente após a autenticação.
>> Se eu entrar direto na tela de login ele me exibe somente a mensagem
>> "Usuário ou senha inválidos", neste caso não deveria aparecer senha nenhuma.
>>
>> Alguém aqui já passou por isso e pode me ajudar???
>>
>> Seguem meu códigos:
>>
>>
>> *AppController.php*
>>
>> >
>> App::uses('Controller', 'Controller');
>>
>> class AppController extends Controller {
>>
>> public $components = array(
>> //KitDebug
>> 'DebugKit.Toolbar',
>> 'Auth',
>> 'Email',
>> 'Session',
>> );
>>
>>public $helpers = array('Html', 'Form', 'Session');
>>
>>public function beforeFilter()
>>{
>>$this->Auth->allow('display');
>>$this->Auth->authError = 'Área restrita, efetue o login de
>> acesso.';
>>$this->Auth->loginError = 'Usuário ou senha inválidos.';
>>}
>>
>> }
>>
>>
>>
>> *User.php*
>>
>> >
>> App::uses('AuthComponent', 'Controller/Component');
>>
>> class User extends AppModel {
>>
>> public $name = 'User';
>>
>> public function beforeSave($options = array()) {
>> if (!empty($this->data['User']['**password'])) {
>> $this->data['User']['password'**] =
>> AuthComponent::password($this-**>data['User']['password']);
>> }
>> return true;
>> }
>> }
>>
>> ?>
>>
>>
>> *UsersController.php*
>>
>> >
>> class UsersController extends AppController {
>>
>> public $name = 'Users';
>>
>> public function beforeFilter() {
>> parent::beforeFilter();
>> }
>>
>> public function login(){
>> if($this->Auth->login()){
>> $this->redirect($this->Auth->**redirect());
>> }else{
>> $this->Session->setFlash(__('**Usuário ou senha
>> inválidos.'));
>> }
>> }
>>
>> public function logout(){
>> $this->redirect($this->Auth->**logout());
>> }
>>
>> public function index(){
>>
>> }
>>
>> public function getUsers(){
>> $users = $this->User->find('list', array('fields' =>
>> array('id')));
>> $this->set(compact('$users'));
>> }
>> }
>>
>> ?>
>>
>>
>>
>> *login.ctp*
>>
>> 
>> Session->flash('auth'); ?>
>> Form->create('User');?>
>> 
>> > echo $this->Form->input('username')**;
>> echo $this->Form->input('password')**;
>> ?>
>> 
>> Form->end('Entrar');?>
>>
>> *
>> Desde já mui

Re: Mensagem antes da autenticação

2013-04-19 Thread Vitor Pacheco
faça o método de login assim:

public function login() {
if ($this->request->is('post')) {
if ($this->Auth->login()) {
$this->redirect($this->Auth->redirect());
} else {
$this->Session->setFlash(__('Usuário ou senha inválidos.'));
}
}
}


Em 19 de abril de 2013 17:25, Anderson Moraes escreveu:

> Boa tarde pessoal.
>
> Eu estou começando agora no CakePHP e estou fazendo uma área restrita, o
> que tá acontecendo é o seguinte, quando eu entro em uma página onde é
> necessário estar logado, eu sou direcionado para tela de login e é exibido
> a seguinte mensagem "Área Restrita", mas o problema é que junto está
> aparecendo a mensagem "Usuário ou senha inválidos", sendo que essa mensagem
> deveria aparecer somente após a autenticação.
> Se eu entrar direto na tela de login ele me exibe somente a mensagem
> "Usuário ou senha inválidos", neste caso não deveria aparecer senha nenhuma.
>
> Alguém aqui já passou por isso e pode me ajudar???
>
> Seguem meu códigos:
>
>
> *AppController.php*
>
> 
> App::uses('Controller', 'Controller');
>
> class AppController extends Controller {
>
> public $components = array(
> //KitDebug
> 'DebugKit.Toolbar',
> 'Auth',
> 'Email',
> 'Session',
> );
>
>public $helpers = array('Html', 'Form', 'Session');
>
>public function beforeFilter()
>{
>$this->Auth->allow('display');
>$this->Auth->authError = 'Área restrita, efetue o login de acesso.';
>$this->Auth->loginError = 'Usuário ou senha inválidos.';
>}
>
> }
>
>
>
> *User.php*
>
> 
> App::uses('AuthComponent', 'Controller/Component');
>
> class User extends AppModel {
>
> public $name = 'User';
>
> public function beforeSave($options = array()) {
> if (!empty($this->data['User']['password'])) {
> $this->data['User']['password'] =
> AuthComponent::password($this->data['User']['password']);
> }
> return true;
> }
> }
>
> ?>
>
>
> *UsersController.php*
>
> 
> class UsersController extends AppController {
>
> public $name = 'Users';
>
> public function beforeFilter() {
> parent::beforeFilter();
> }
>
> public function login(){
> if($this->Auth->login()){
> $this->redirect($this->Auth->redirect());
> }else{
> $this->Session->setFlash(__('Usuário ou senha inválidos.'));
> }
> }
>
> public function logout(){
> $this->redirect($this->Auth->logout());
> }
>
> public function index(){
>
> }
>
> public function getUsers(){
> $users = $this->User->find('list', array('fields' => array('id')));
> $this->set(compact('$users'));
> }
> }
>
> ?>
>
>
>
> *login.ctp*
>
> 
> Session->flash('auth'); ?>
> Form->create('User');?>
> 
>  echo $this->Form->input('username');
> echo $this->Form->input('password');
> ?>
> 
> Form->end('Entrar');?>
>
> *
> Desde já muito obrigado!!!*
>
> --
> 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 stop receiving emails from it, send an
> email to cake-php+unsubscr...@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
*Vitor Pacheco*
*Skype: vitor.pacheco.costa
Msn: vitor-...@hotmail.com*
*GTalk: vitorpc...@gmail.com**
**Cel.: 71 8626-7909
Tel.: 71 3378-5778 /** 71 3287-3475*

-- 
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 stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Cakephp tela branca

2012-06-13 Thread Vitor Pacheco

O debug está ativo?

Pode ser o mod_rewrite do apache e/ou os arquivos .htaccess.

Dá uma olhada no "AllowOverride" do VirtualHost, deve estar definido como 
"All"...


Em 13/06/2012 14:16, Eduiagami escreveu:

Pessoal,
quem puder me ajudar,
estou com um problema de tela branca,
pelo visto o problema é quando o Cakephp redireciona.

no error.log eu vi que tem dois erros  missing controller 
ImgController, JsController.


espero que me ajudem.
abraços
--
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this 
group at http://groups.google.com/group/cake-php


--
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: who can tell me what the Make is.

2012-05-03 Thread Vitor Pacheco
Make is used to build the documentation...

https://github.com/cakephp/docs#building-the-documentation

2012/5/4 香柱元 

> now I want to translate cakephp doc hosted in github(
> https://github.com/cakephp/docs).
> but and they say in the 
> README.mdown<https://github.com/cakephp/docs/blob/master/README.mdown>file, I 
> at first should install some tools for build the document.
>
>- Make
>- Python
>- Sphinx
>- PhpDomain for sphinx
>
>
> but one of them *Make* I can't understand and never used before, any one
> can help me ? thanks!
>
> --
> 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
*Vitor Pacheco*
*Skype: vitor.pacheco.costa
Msn: vitor-...@hotmail.com*
*GTalk: vitorpc...@gmail.com**
**Cel.: 71 8626-7909
Tel.: 71 3378-5778 /** 71 3287-3475*

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Using html template in cakephp

2012-04-12 Thread Vitor Pacheco
try something like this
http://wordpress.org/extend/plugins/wordpress-web-service/

I never used it...

2012/4/12 jeremyharris 

> A lot of the principles between CodeIgniter and CakePHP are similar, so
> there shouldn't be too much of a learning curve.
>
> Good luck!
>
>
> On Thursday, April 12, 2012 9:34:37 AM UTC-7, Mangesh Sathe wrote:
>>
>>  Thanks for the Jeremy ,
>>  i'll go through it.
>>  for 3 years i am working on codeigniter. so its little difficult to work
>> on cakeph though its on MVC.
>>
>>
>> On Thursday, 12 April 2012 21:58:31 UTC+5:30, jeremyharris wrote:
>>>
>>> You can read more about the structure here:
>>> http://book.cakephp.org/2.0/**en/getting-started.html<http://book.cakephp.org/2.0/en/getting-started.html>
>>>
>>>
>>> Cake doesn't work like WordPress (which uses header, content and footer
>>> templates). It uses proper MVC, that is a layout (kind of like the header
>>> and footer templates combined) and view (kind of like the content template)
>>> within that layout. You'll probably want to brush up on MVC basics. The
>>> book has a lot of information.
>>>
>>> On Thursday, April 12, 2012 7:34:28 AM UTC-7, Mangesh Sathe wrote:
>>>>
>>>> Hello , i am new to cakephp. I have html template ready with me.
>>>> I want to embed it into cakephp. I am very much  confused about
>>>> cakephp directory structure.
>>>>
>>>> I have divided template into header, content & footer.
>>>>  can anyone tell me how can i place html(ctp) developed files into
>>>> cakephp's view?
>>>>
>>>> Thanks in advance.
>>>
>>>  --
> 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
*Vitor Pacheco*
*Skype: vitor.pacheco.costa
Msn: vitor-...@hotmail.com*
*GTalk: vitorpc...@gmail.com**
**Cel.: 71 8626-7909
Tel.: 71 3378-5778 /** 71 3287-3475*

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Where to start?

2012-04-11 Thread Vitor Pacheco
t;>>>>>>>>> http://ask.cakephp.org and
>>>>>>>>>>> >>>>>> help others with their CakePHP related questions.
>>>>>>>>>>> >>>>>>
>>>>>>>>>>> >>>>>>
>>>>>>>>>>> >>>>>> To unsubscribe from this group, send email to
>>>>>>>>>>> >>>>>> cake-php+unsubscribe@**googlegroups.com<
>>>>>>>>>>> cake-php%2bunsubscr...@googlegroups.com>For
>>>>>>>>>>> >>>>>> more options, visit this group at
>>>>>>>>>>> >>>>>> http://groups.google.com/**group/cake-php<
>>>>>>>>>>> http://groups.google.com/group/cake-php>
>>>>>>>>>>> >>>>>>
>>>>>>>>>>> >>>>>
>>>>>>>>>>> >>>>>
>>>>>>>>>>> >>>>>
>>>>>>>>>>> >>>>> --
>>>>>>>>>>> >>>>> *Thanks
>>>>>>>>>>> >>>>> Imtiyaz Nabi Masoodi
>>>>>>>>>>> >>>>> Fast track Executive Affiliate
>>>>>>>>>>> >>>>> Booster Club Member*
>>>>>>>>>>> >>>>> * ** http://www.earnonlineparttimejobs.com/?id=232501 *
>>>>>>>>>>> >>>>>
>>>>>>>>>>> >>>>>  --
>>>>>>>>>>> >>>> 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 unsubscribe from this group, send email to
>>>>>>>>>>> >>>> cake-php+unsubscr...@googlegroups.com For more options,
>>>>>>>>>>> visit this
>>>>>>>>>>> >>>> group at http://groups.google.com/group/cake-php
>>>>>>>>>>> >>>>
>>>>>>>>>>> >>>
>>>>>>>>>>> >>>
>>>>>>>>>>> >>>
>>>>>>>>>>> >>> --
>>>>>>>>>>> >>> *Thanks
>>>>>>>>>>> >>> Imtiyaz Nabi Masoodi
>>>>>>>>>>> >>> Fast track Executive Affiliate
>>>>>>>>>>> >>> Booster Club Member*
>>>>>>>>>>> >>> * ** http://www.earnonlineparttimejobs.com/?id=232501 *
>>>>>>>>>>> >>>
>>>>>>>>>>> >>>
>>>>>>>>>>> >
>>>>>>>>>>> > --
>>>>>>>>>>> > 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 unsubscribe from this group, send email to
>>>>>>>>>>> > cake-php+unsubscr...@googlegroups.com For more options, visit
>>>>>>>>>>> this group at
>>>>>>>>>>> > http://groups.google.com/group/cake-php
>>>>>>>>>>> >
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> *Thanks
>>>>>>>>>>> Imtiyaz Nabi Masoodi
>>>>>>>>>>> Fast track Executive Affiliate
>>>>>>>>>>> Booster Club Member*
>>>>>>>>>>> * ** http://www.earnonlineparttimejobs.com/?id=232501 *
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Our newest site for the community: CakePHP Video Tutorials
>>>>>>>>>>> http://tv.cakephp.org
>>>>>>>>>>> Check out the new CakePHP Questions site http://ask.cakephp.organd 
>>>>>>>>>>> help others with their CakePHP related questions.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> To unsubscribe from this group, send email to
>>>>>>>>>>> cake-php+unsubscr...@googlegroups.com For more options, visit
>>>>>>>>>>> this group at http://groups.google.com/group/cake-php
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>  --
>>>>>>>>>> Our newest site for the community: CakePHP Video Tutorials
>>>>>>>>>> http://tv.cakephp.org
>>>>>>>>>> Check out the new CakePHP Questions site http://ask.cakephp.organd 
>>>>>>>>>> help others with their CakePHP related questions.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> To unsubscribe from this group, send email to
>>>>>>>>>> cake-php+unsubscr...@googlegroups.com For more options, visit
>>>>>>>>>> this group at http://groups.google.com/group/cake-php
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> *Thanks
>>>>>>>>> Imtiyaz Nabi Masoodi
>>>>>>>>> Fast track Executive Affiliate
>>>>>>>>> Booster Club Member*
>>>>>>>>> * ** http://www.earnonlineparttimejobs.com/?id=232501 *
>>>>>>>>>
>>>>>>>>>  --
>>>>>>>>> Our newest site for the community: CakePHP Video Tutorials
>>>>>>>>> http://tv.cakephp.org
>>>>>>>>> Check out the new CakePHP Questions site http://ask.cakephp.organd 
>>>>>>>>> help others with their CakePHP related questions.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> To unsubscribe from this group, send email to
>>>>>>>>> cake-php+unsubscr...@googlegroups.com For more options, visit
>>>>>>>>> this group at http://groups.google.com/group/cake-php
>>>>>>>>>
>>>>>>>>
>>>>>>>>  --
>>>>>>>> Our newest site for the community: CakePHP Video Tutorials
>>>>>>>> http://tv.cakephp.org
>>>>>>>> Check out the new CakePHP Questions site http://ask.cakephp.organd 
>>>>>>>> help others with their CakePHP related questions.
>>>>>>>>
>>>>>>>>
>>>>>>>> To unsubscribe from this group, send email to
>>>>>>>> cake-php+unsubscr...@googlegroups.com For more options, visit this
>>>>>>>> group at http://groups.google.com/group/cake-php
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> *Thanks
>>>>>>> Imtiyaz Nabi Masoodi
>>>>>>> Fast track Executive Affiliate
>>>>>>> Booster Club Member*
>>>>>>> * ** http://www.earnonlineparttimejobs.com/?id=232501 *
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> *Thanks
>>>>>> Imtiyaz Nabi Masoodi
>>>>>> Fast track Executive Affiliate
>>>>>> Booster Club Member*
>>>>>> * ** http://www.earnonlineparttimejobs.com/?id=232501 *
>>>>>>
>>>>>>  --
>>>>>> 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 unsubscribe from this group, send email to
>>>>>> cake-php+unsubscr...@googlegroups.com For more options, visit this
>>>>>> group at http://groups.google.com/group/cake-php
>>>>>>
>>>>>
>>>>>  --
>>>>> 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 unsubscribe from this group, send email to
>>>>> cake-php+unsubscr...@googlegroups.com For more options, visit this
>>>>> group at http://groups.google.com/group/cake-php
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Thanks
>>>> Imtiyaz Nabi Masoodi
>>>> Fast track Executive Affiliate
>>>> Booster Club Member*
>>>> * ** http://www.earnonlineparttimejobs.com/?id=232501 *
>>>>
>>>>  --
>>>> 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 unsubscribe from this group, send email to
>>>> cake-php+unsubscr...@googlegroups.com For more options, visit this
>>>> group at http://groups.google.com/group/cake-php
>>>>
>>>
>>>  --
>>> 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 unsubscribe from this group, send email to
>>> cake-php+unsubscr...@googlegroups.com For more options, visit this
>>> group at http://groups.google.com/group/cake-php
>>>
>>
>>
>>
>> --
>> *Thanks
>> Imtiyaz Nabi Masoodi
>> Fast track Executive Affiliate
>> Booster Club Member*
>> * ** http://www.earnonlineparttimejobs.com/?id=232501 *
>>
>>
>
>
> --
> *Thanks
> Imtiyaz Nabi Masoodi
> Fast track Executive Affiliate
> Booster Club Member*
> * ** http://www.earnonlineparttimejobs.com/?id=232501 *
>
>  --
> 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
*Vitor Pacheco*
*Skype: vitor.pacheco.costa
Msn: vitor-...@hotmail.com*
*GTalk: vitorpc...@gmail.com**
**Cel.: 71 8626-7909
Tel.: 71 3378-5778 /** 71 3287-3475*

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Auth->userScope is getting ignored

2012-04-08 Thread Vitor Pacheco
try this:
$this->Auth->authenticate = array(
AuthComponent::ALL => array(
 'userModel' => 'User',
'fields' => array(
 'username' => 'test',
'password' => 'test',
 ),
'scope' => array(
'User.usr_active' => 1,
 )
),
'Form'
 );

http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html


2012/4/8 heohni 

> Update:
>
> even if add this for testing
>
>   $this->Auth->fields = array('username' => 'test', 'password' => 'test' );
>
> This is also ignored...
>
> --
> 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
*Vitor Pacheco*
*Skype: vitor.pacheco.costa
Msn: vitor-...@hotmail.com*
*GTalk: vitorpc...@gmail.com**
**Cel.: 71 8626-7909
Tel.: 71 3378-5778 /** 71 3287-3475*

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Moduling

2012-04-04 Thread Vitor Pacheco
Use plugins to do this...

http://book.cakephp.org/2.0/en/plugins.html#creating-your-own-plugins

2012/4/4 tomas rei 

> Hello,
>
> I would like to create a cakePHP application having different modules
> like - Events, Poll, etc.
> Each module will have more than one database tables.
> Each module may have more than one controller.
>
> So i want to have a separate folder for each module within models
> folder, like - /app/models/events and similarly for /controllers and /
> views.
>
> let me know if it is possible.
>
> --
> 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
*Vitor Pacheco*
*Skype: vitor.pacheco.costa
Msn: vitor-...@hotmail.com*
*GTalk: vitorpc...@gmail.com**
**Cel.: 71 8626-7909
Tel.: 71 3378-5778 /** 71 3287-3475*

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Meio Image Upload in CakePhp 2.0 fail plz help

2011-10-27 Thread Vitor Pacheco

try this App::uses('Folder', 'Utility');

Em Qui 27 Out 2011 04:48:36 BRT, K3 escreveu:

Try changing from:
App::import('Core', array('File', 'Folder'));
To:
App::import('Utility', array('File', 'Folder'));



--
*Vitor Pacheco*
Skype: vitor.pacheco.costa
Msn: vitor-...@hotmail.com
Cel.: 71 8626-7909
Tel.: 71 3378-5778 / 71 3287-3475

--
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: 2.0 upgrade shell

2011-10-20 Thread Vitor Pacheco
I solved the problem by removing the constructor method that I had in 
my AppController and did not need to add the App:: uses.


Em Qui 20 Out 2011 10:55:27 BRT, Jeremy Burns | Class Outfit escreveu:
I didn't have the line App::uses('Controller', 'Controller'); but I do 
now.



Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 20 Oct 2011, at 14:49, majna wrote:


Do you have Controller/AppController.php:

App::uses('Controller', 'Controller');
class AppController extends Controller {
...


2011/10/20 Vitor Pacheco <mailto:vitorpc...@gmail.com>>


Hello, I'm trying to upgrade an application for cake2, and I am
getting the exception "MissingControllerException" with the
message "Controller class Controller could not be found."

I added the folder "lib" to the include path.

here is my include path:
".:/usr/share/php:/usr/share/pear:/home/vitor/Repos/cakephp2/lib"

Em 19-10-2011 10:56, euromark escreveu:

i just wrote down a list of bugs and enhancements I found the last
couple of hours trying to port a medium to large sized app

http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/2117-improvements-for-20-upgrade-shell



On 19 Okt., 13:32, majna  <mailto:majna...@gmail.com>  
wrote:

When upgrading plugins for each plugin add plugin option like:

        cake upgrade all -p Blog

You have to upgrade App::import() manually.


-- 


*Vitor Pacheco*
Skype: vitor.pacheco.costa
Msn:vitor-...@hotmail.com  <mailto:vitor-...@hotmail.com>
Cel.:71 8626-7909  
Tel.: 71 3378-5778 / 71 3287-3475


-- 
Our newest site for the community: CakePHP Video Tutorials

http://tv.cakephp.org <http://tv.cakephp.org/>
Check out the new CakePHP Questions site http://ask.cakephp.org
<http://ask.cakephp.org/> and help others with their CakePHP
related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com
<mailto:cake-php%2bunsubscr...@googlegroups.com> For more
options, visit this group at http://groups.google.com/group/cake-php



--
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org <http://tv.cakephp.org/>
Check out the new CakePHP Questions site http://ask.cakephp.org 
<http://ask.cakephp.org/> and help others with their CakePHP related 
questions.



To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com 
<mailto:cake-php+unsubscr...@googlegroups.com> For more options, 
visit this group at http://groups.google.com/group/cake-php


--
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this 
group at http://groups.google.com/group/cake-php


--
*Vitor Pacheco*
Skype: vitor.pacheco.costa
Msn: vitor-...@hotmail.com
Cel.: 71 8626-7909
Tel.: 71 3378-5778 / 71 3287-3475

--
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: 2.0 upgrade shell

2011-10-19 Thread Vitor Pacheco
Hello, I'm trying to upgrade an application for cake2, and I am getting 
the exception "MissingControllerException" with the message "Controller 
class Controller could not be found."


I added the folder "lib" to the include path.

here is my include path: 
".:/usr/share/php:/usr/share/pear:/home/vitor/Repos/cakephp2/lib"


Em 19-10-2011 10:56, euromark escreveu:

i just wrote down a list of bugs and enhancements I found the last
couple of hours trying to port a medium to large sized app
http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/2117-improvements-for-20-upgrade-shell



On 19 Okt., 13:32, majna  wrote:

When upgrading plugins for each plugin add plugin option like:

 cake upgrade all -p Blog

You have to upgrade App::import() manually.


--

*Vitor Pacheco*
Skype: vitor.pacheco.costa
Msn: vitor-...@hotmail.com
Cel.: 71 8626-7909
Tel.: 71 3378-5778 / 71 3287-3475

--
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Replacing tabs with spaces, finding the user view

2011-10-04 Thread Vitor Pacheco
you can use some IDE like Netbeans or Eclipse to convert tabs to 
spaces... setting up the project correctly, you should get it too easy 
...


Em terça-feira, 4 de outubro de 2011 11:21:17, Yves S. Garret escreveu:
Sure it is.  I originally had my code with spaces.  After I ran cake 
bake all, they're now tabs.


On Mon, Oct 3, 2011 at 4:46 PM, Ryan Schmidt 
mailto:google-2...@ryandesign.com>> wrote:



On Oct 3, 2011, at 10:25, Yves S. Garret wrote:

> Well, to be specific, I couldn't find anything on modifying the
tabs vs. spaces info online after googling.

That's really not a CakePHP question, but my text editor has a
function for doing that; see if your text editor does. Or, if you
like the UNIX command line, the "expand" command is useful. For
example to convert tabs to spaces at 4 spaces per indent:

expand -t 4 somefile > x

Examine x, make sure it looks like you want it, then:

mv x somefile


--
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com
 For more options,
visit this group at http://groups.google.com/group/cake-php


--
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this 
group at http://groups.google.com/group/cake-php


--
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakeFest 2011 videos

2011-10-03 Thread Vitor Pacheco

thank you for the great work!

Em 03-10-2011 16:49, Brett Wilton escreveu:

Thanks Larry for your efforts.

On 3/10/2011, at 6:28 PM, Larry E. Masters wrote:

I have started uploading videos from CakeFest 2011. Over the next few 
days I will release more as I complete audio enhancements and editing 
of raw video. Hope you enjoy, hope to see everyone at the next 
CakeFest you missed a great time this year.


http://tv.cakephp.org/

http://tv.cakephp.org/playlists/view/CakeFoundation/cakefest_2011_talks_-_uk

--
Larry E. Masters


--
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org <http://tv.cakephp.org/>
Check out the new CakePHP Questions site http://ask.cakephp.org 
<http://ask.cakephp.org/> and help others with their CakePHP related 
questions.



To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com 
<mailto:cake-php+unsubscr...@googlegroups.com> For more options, 
visit this group at http://groups.google.com/group/cake-php


--
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this 
group at http://groups.google.com/group/cake-php


--

*Vitor Pacheco*
Skype: vitor.pacheco.costa
Msn: vitor-...@hotmail.com
Cel.: 71 8626-7909
Tel.: 71 3378-5778 / 71 3287-3475

--
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP 2.0.0-RC1 Hot and fresh

2011-09-05 Thread Vitor Pacheco

Thanks so much!!

Em Seg 05 Set 2011 11:11:07 BRT, Salines escreveu:

Thanks!

--
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this 
group at http://groups.google.com/group/cake-php


--
*Vitor Pacheco*
Skype: vitor.pacheco.costa
Msn: vitor-...@hotmail.com
Cel.: 71 8626-7909
Tel.: 71 3378-5778 / 71 3287-3475

--
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP 1.3.11 and 2.0.0-beta released / any documentation

2011-07-28 Thread Vitor Pacheco
the documentation is here https://github.com/cakephp/docs

2011/7/28 Serkan Sipahi 

> hi there,
> any documentation about cakephp 2.0 ?
>
> sipatshi
>
> --
> **
> Generally after a beta any existing functionality should stay the
> same.  New features will probably work their way in.  But what is
> already there shouldn't change too much unless there are serious
> problems.
>
> -Mark
>
> On Jul 27, 5:22 am, Jens Dittrich  wrote:
> > Great Job!
> >
> > I would like to know if this beta release of 2.0 is also feature freeze
> or
> > are there still things to come?
> >
> > regards,
> > Jens
>
> --
> 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>
>
>  --
> 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
*Vitor Pacheco*
*Skype: vitor.pacheco.costa
Msn: vitor-...@hotmail.com*
*Cel.: 71 8626-7909
Tel.: 71 3378-5778
**Tel.: 71 3287-3475*

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP 1.3.11 and 2.0.0-beta released

2011-07-26 Thread Vitor Pacheco
great job! thank you for this!

2011/7/26 O.J. Tibi 

> Thanks for the great news, José! I'll be upgrading my 1.3 core as soon as
> possible. :)
>
>  --
> 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
*Vitor Pacheco*
*Skype: vitor.pacheco.costa
Msn: vitor-...@hotmail.com*
*Cel.: 71 8626-7909
Tel.: 71 3378-5778
**Tel.: 71 3287-3475*

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: database backup

2011-07-23 Thread Vitor Pacheco
try this https://github.com/cakedc/migrations

2011/7/23 Miqdad Ali 

>
> hi,
>  I need to take backup of my database using cakephp . how can i
> create this ?? please help ?
>
>
>
>
>
> -
>
>
> Miqdad Ali K
> +919995258790
> http://www.miqdadalik.com
>
>
>  --
> 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
*Vitor Pacheco*
*Skype: vitor.pacheco.costa
Msn: vitor-...@hotmail.com*
*Cel.: 71 8626-7909
Tel.: 71 3378-5778
**Tel.: 71 3287-3475*

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: I have a problem about the paginator helper

2011-05-23 Thread Vitor Pacheco
should not be $this->Paginator->options()?

2011/5/23 taq 

> I follow in example in book.cakephp and I try to search solution for
> it but not found this it problem
>
>
> arning (512): Method PaginatorHelper::option does not exist[CORE
> \cake\libs\view\helper.php, line 154]
> Code | Context
> Helper::call__() - CORE\cake\libs\view\helper.php, line 154
> Overloadable::__call() - CORE\cake\libs\overloadable_php5.php, line 50
> PaginatorHelper::option() - APP\views\layouts\default.ctp, line 41
> include - APP\views\layouts\default.ctp, line 41
> View::_render() - CORE\cake\libs\view\view.php, line 731
> View::renderLayout() - CORE\cake\libs\view\view.php, line 489
> View::render() - CORE\cake\libs\view\view.php, line 435
> Controller::render() - CORE\cake\libs\controller\controller.php, line
> 909
> Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 207
> Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 171
> [main] - APP\webroot\index.php, line 83
>
> minimize code User Controller and view
> http://bin.cakephp.org/view/272464420
>
> thank for answer
>
> --
> 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
*Vitor Pacheco*
*Skype: vitor.pacheco.costa
Msn: vitor-...@hotmail.com*
*Cel.: 71 8626-7909
Tel.: 71 3378-5778
**Tel.: 71 3287-3475*

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cake PHP as Multisite / Multidomain

2011-04-16 Thread Vitor Pacheco
you can configure additional folders for your classes in bootstrap.php
http://book.cakephp.org/view/916/Additional-Class-Paths

2011/4/16 cricket 

> On Sat, Apr 16, 2011 at 2:40 PM, cricket  wrote:
> > On Sat, Apr 16, 2011 at 2:37 PM, Carlos Eduardo Sotelo Pinto
> >  wrote:
> >> Thanks Cricket
> >>
> >> Well that is not the point or target that I am looking for, I am
> >> looking for share the complete app, and having diferents webroot, I
> >> mean shareing the app and having one approot foreach domain with its
> >> own database. I am think on a server with a cakelib and app installed,
> >> and the users can use the entire app just with the webroot. I think it
> >> could be possible on the index.php file where the cakelibs and app
> >> coudl be set, also the webroot, but the problem will be having a
> >> diferent databases for each webroot user.
> >
> > Precisely. I don't think this is possible (nor a good idea).
> >
>
> Well, I suppose one could do this for each virtual host:
>
> /var/www/vhosts/some_host/
>app/
>config/
>controllers/<- symlink
>libs/
>locale/
>models/ <- symlink
>etc.
>
> And have all controllers & models stored somewhere else.
>
> I'm not sure that's really workable though.
>
> --
> 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
*Vitor Pacheco*
*71 8626-7909
71 3378-5778
**71 3287-3475***

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: How to echo Image that was uploaded through MeioUpload

2011-04-13 Thread Vitor Pacheco
the default path for the upload is "uploads{DS}{ModelName}{DS}{fieldName}"
if you do not set another path in the model, or is not being saved in the
database try using this path echo $this->Html->image('..' . DS . 'uploads'.
DS. 'model'. DS. 'field' . DS 'file.png');

2011/4/13 Mr.Jayesh 

> Hi Mates,
>
> As while working on my project, I am using meioupload behaviour for
> handling image upload. I have set it as per the documentation provided
> in their site. I have four fields: picture, dir, mimetype, filesize.
> There is no error in uploading. But the problem is, the picture field
> only stores the file name. I have set a folder under img to store the
> files. The files get stored correctly into the directory.
>
> The issue is, how will I be able to echo the image on the view. The
> echo only states the img/filename.extn . but this will not show
> the image. How can I configure the meio to store the dir name in the
> picture column so I can get proper file root.
>
> Is it something I am doing wrong.
>
> Regards,
> Jayesh
>
> --
> 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
*Vitor Pacheco*
*71 8626-7909
71 3378-5778
**71 3287-3475***

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Problemas ao acessar o domínio cakephp.org

2011-04-08 Thread Vitor Pacheco
já tive problemas com o chrome e o novo sistema de cache... tenta limpar o
cache, cookies (faz uma limpeza geral no navegador) e tenta lá...

Em 8 de abril de 2011 09:53, LipeDjow  escreveu:

> Tudo normal por aqui tb. (GVT e Velox)
>
> Abs.
> LipeDjow
>
> --
> 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
*Vitor Pacheco*
*71 8626-7909
71 3378-5778
**71 3287-3475***

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Problemas ao acessar o domínio cakephp.org

2011-04-07 Thread Vitor Pacheco
aqui eu consigo acessar normalmente, algumas pessoas dizem que a velox tá
com problemas no dns e não consegue chegar no servidor deles...
mas eu uso velox em casa, gvt no trabalho e embratel na faculdade e consigo
acessar de todos os lugares...

Em 7 de abril de 2011 22:43, Vital  escreveu:

> Alguém aí está com problemas para acessar o domínio cakephp.org?
> Com o meu laptop eu consigo acessar no trabalho e na faculdade, mas em
> casa não.
> Tem alguém com o mesmo problema??
>
> --
> 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
*Vitor Pacheco*
*71 8626-7909
71 3378-5778
**71 3287-3475***

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Relaunched CakePHP Live Site

2011-04-07 Thread Vitor Pacheco
I think the best subject that could be approached is the current state
of development
of version 2.0 of cakephp... what can we expect?
experiments that mark the story is making using Sphinx to generate
documentation in various formats, what is your intention

2011/4/8 Larry E. Masters 

> All the people on this list and not one person has suggestions what they
> would like to see the core development discuss live?
>
> --
> Larry E. Masters
>
>
> On Thu, Apr 7, 2011 at 1:35 AM, Larry E. Masters  wrote:
>
>> Some of you may not be aware that we relaunched the CakePHP Live site
>> recently. We had 1 live broadcast just before leaving on our tour and plan
>> to do these more often. There will be a list on http://live.cakephp.orgsoon 
>> with upcoming dates and topics. I would also like everyone to respond
>> to this thread with topics they would like to see us discuss on these live
>> video streams.
>>
>> --
>> Larry E. Masters
>>
>>
>  --
> 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
*Vitor Pacheco*
*71 8626-7909
71 3378-5778
**71 3287-3475***

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP Write URL path from initial search() action pagination array

2011-03-31 Thread Vitor Pacheco
Try changing the method of sending data in forms to GET...
$this->Form->create('Model', array('type'=>'get'))

2011/3/31, OldWest :
>
>
> I've hit a roadblock and cannot for the life of me get over.
>
> I have a search() action which is working as expected.
>
> From that function, I pass my pagination value to the results page and I get
> an array like so:
>
> Array
> (
> [controller] => plans
> [action] => search
> [0] => 35
> [1] => 0
> [2] => 0
> [3] => 1
> [4] => 97389
> )
>
> ALL search results display correct (and array data is correct). BUT my url
> ONLY displays the Model and Action value when the initial results are
> displayed like so:
>
> ...plans/search
>
> And if I do a *paginator()* **sort()** (in my header fields) or Next >> my
> pagination array prints to the url like so:
>
>  ...plans/search/45/0/0/0/97389/page:1/sort:monthly_cost/direction:desc
>
> Everything is working as expected BUT I need my initial search to display
> the url path as it does when*paginator()* or *sort()* is used.
>
> I've tried imploding the array and tacking it onto the url (no dice). I've
> tried to rewrite the url with the array (but this conflicts with the
> pagination).. I've tried a bucket load of get and post ideas.. (no dice)..
>
> Am I overlooking something VERY simple here? Someone please send any ideas
> you might have. This is kicking my butt!
>
> --
> 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at
> http://groups.google.com/group/cake-php
>

-- 
Enviado do meu celular

*Vitor Pacheco*
*71 8626-7909
71 3378-5778
**71 3287-3475***

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php