Re: File Upload Err..

2014-02-17 Thread Nguyen Cuong
Analog other file formats

Vào 14:21:48 UTC+7 Thứ ba, ngày 18 tháng hai năm 2014, Nguyen Cuong đã viết:
>
> I usually upload the file using the following method :
> In the file controlller PostsController :
> public function add(){
> $this->layout = false;
> if($this->request->is('post')){
> $date = getdate();
> $name_img = 
> 'img-'.$date['hours'].$date['minutes'].$date['seconds'].'-'.$date['mday'].
> $date['mon'].$date['year'];
> $img_upload = $this->Uploader->upload('image', 
> array('overwrite' =>true,'name' =>$name_img));
> $this->request->data['Post']['image'] = 
> $img_upload['path'];
> $this->Post->create();
> $this->Post->save($this->request->data);
> //return $this->redirect(array('action'=>'index'));
> }
>
>
> }
> file view add.ctp:
>   echo $this->Form->create('Post',array('type' => 'file'));
>  echo 
> $this->Form->input('Post.image',array('type'=>'file','label'=>'Image'));
>  echo $this->Form->end(' Add ');
> ?>
>
> Database exist table posts : id, image(varchar(255))...
> This will be somewhat helpful for you. Also you need to Uploader Plugin 
> installed correctly.
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: File Upload Err..

2014-02-17 Thread Nguyen Cuong
I usually upload the file using the following method :
In the file controlller PostsController :
public function add(){
$this->layout = false;
if($this->request->is('post')){
$date = getdate();
$name_img = 
'img-'.$date['hours'].$date['minutes'].$date['seconds'].'-'.$date['mday'].
$date['mon'].$date['year'];
$img_upload = $this->Uploader->upload('image', 
array('overwrite' =>true,'name' =>$name_img));
$this->request->data['Post']['image'] = $img_upload['path'];
$this->Post->create();
$this->Post->save($this->request->data);
//return $this->redirect(array('action'=>'index'));
}


}
file view add.ctp:
Form->create('Post',array('type' => 'file'));
 echo 
$this->Form->input('Post.image',array('type'=>'file','label'=>'Image'));
 echo $this->Form->end(' Add ');
?>

Database exist table posts : id, image(varchar(255))...
This will be somewhat helpful for you. Also you need to Uploader Plugin 
installed correctly.

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


CakeFest 2014: Madrid, Spain

2014-02-17 Thread James Watts
This year we're celebrating 9 years of CakePHP, and we want to do it with 
all of you, our awesome community. There's also a very important milestone 
on the horizon, in the form of the lucky number "3". You really cannot miss 
this year's event, held in the beautiful European city of Madrid, Spain, 
from Thursday the 21st until Sunday the 24th of August.

See more details on the location at http://cakefest.org/location

We've also got an incredible offer for you this year, as we're providing 
some tickets which include a room plus breakfast in the 4* hotel that's 
hosting the conference! That's right, all you need is to get there and 
we'll take care of the rest. Who said we don't love you guys?!

Get your tickets now at http://cakefest.org/tickets

*Workshops*

The 2 day workshops at CakeFest are an ideal opportunity to learn the 
internals of CakePHP, and a great way to get up to speed with the latest 
version of the framework. We'll be focusing part of the workshops on the 
new 3.0 code base, helping people get to grips with the new features for 
this third major revision of CakePHP. Attendees will also receive a 
personal certificate of attendance from the Cake Software Foundation.

*Conference*

The conference covers 2 jam packed days of keynotes, presentations, 
discussions and talks on CakePHP and related technologies, plus an array of 
activities, such as lightning talks, core team Q&A, the Hour of 
Contribution and a raffle. It's a great time to engage and network with the 
community, learn from other experienced developers, and party with the core 
team. Plus, there will be cake!

*Call for Papers*

Would you like to be a speaker at a conference which draws an international 
crowd who love PHP and all things cake related? Never spoken before, or 
don't think you have anything interesting to share? The annual CakePHP 
conference draws an exceptionally friendly community of developers, tech 
lovers and geeks in general. If you're interested in giving a talk this 
year, then CakeFest is the ideal event. The submissions are open until 
April 30th! Just head over to http://cakefest.org and submit your talk 
proposals. We're open to anyone for submissions. All it takes is a 
interesting idea, and we'd love to hear yours!

*Sponsorship*

Are you working for a company or own a business that would benefit from the 
unique exposure that comes from sponsoring the annual CakePHP conference? 
Consult our sponsorship prospectus (http://cakefest.org/sponsorship) for 
more details as well as the sponsor packages currently available.

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


https + 2.4 + Iframe + Auth + Not Logging in

2014-02-17 Thread Rodrigo Ranieri
I Tried to find on docs, forum search and everything else.

I have an aplication that the user logs with a email and a access key. 

It works nice and clean. BUT, another version of my app was demanded to run 
inside a Iframe:

https inside a https.  Its was a sales demand, not my decison.

Now i have a problem. Some users, of some different networks, could not 
login.

They render the login screen, and after submit they return to the login 
page. Without error, without anything.

I already detected that the users of same companies (probably same browsers 
and same proxy) having this problem. 

My Session Confs:

Configure::write('Session', array(
'defaults' => 'php',
'autoRegenerate' => false,
'checkAgent' => true));




-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


I have a question about using the template in the process of sending mail using cakephp

2014-02-17 Thread Nguyen Cuong
I have a question about using the template in the process of sending mail 
using CakePHP(gmail). Details are as follows :
In the my file PostsController exist :
public function email(){
 $email = new CakeEmail("smtp");
 $email->template('template1','template2');
 ...
}
Email has been sent successfully.
There is differences between the two files : template1 vs  template2  when 
displayed in the inbox of gmail.
I I have the format CSS in the file template1 when sending mail does not 
display CSS .
Hope to receive help from members. Thank you all !


-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Set "title_for_layout" in controller or view?

2014-02-17 Thread AD7six


On Monday, 17 February 2014 09:25:59 UTC+1, perumal wrote:
>
> Hi, 
>
> The best practice well be setting title in controller. 
>

I disagree. You _can_ set the title from a controller, but why do you 
consider that best-practice place to set it?

The title is view-related content, the controller should know as little as 
possible about what happens in the render process and just be passing 
variables around.

This in a view file keeps view logic in the view:

$this->set('title', __('This is the title')); 

AD

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Is there any online bake?

2014-02-17 Thread MihaiTL
Let's name it WebBake ==> WeBake



luni, 17 februarie 2014, 13:21:42 UTC+2, MihaiTL a scris:
>
> Hi all,
>
> Something like a service application hosted on localhost or on your hosted 
> development server with several plugins for different versions of CakePHP.
>
> SuperBake is an inspiration. Also Gii Module Generator from yii.
>
> Without a shell file like bake.
>
> Regards!
>
> luni, 17 februarie 2014, 12:47:06 UTC+2, MihaiTL a scris:
>>
>> Hi,
>>
>> I updated php and the files from /usr/share/php aren't as they should be.
>>
>> I remember when exploring yii that there was an application / plugin 
>> (like bake) that permited creation of models, views, controllers and many 
>> more but using a web interface.
>>
>> Do you know something similar for cakePHP? It can be made? I am new so I 
>> cannot contribute to it.
>>
>>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: CakePhp Auth Allow specific actions of specific controllers

2014-02-17 Thread Stephen S
UsersController.php

function beforeFilter() {
parent::beforeFilter();
$this->Auth->allow('view', 'add', 'edit');
}

On 17 February 2014 12:38, Leandro Machado Pereira wrote:

> So Try,
>
> $this->Auth->allow(array('controller' => 'users' , 'action' => 'view'));
>  $this->Auth->allow(array('controller' => 'users' , 'action' => 'add'));
> $this->Auth->allow(array('controller' => 'users' , 'action' => 'edit'));
>
>
> 2014-02-15 22:35 GMT-02:00 euromark :
>
> Where did you get the idea that this would work?
>> allow() takes only basic method names.
>>
>> Either set it in each controller separately, or use some self written
>> component to set it via config file or alike
>>
>> But you are trying do there doesn't make much sense
>> Please read the documentation - or the doc blocks to it - or the code:
>>
>> https://github.com/cakephp/cakephp/blob/master/lib/Cake/Controller/Component/AuthComponent.php#L518
>> That should explain it.
>>
>>
>> Am Samstag, 15. Februar 2014 20:39:01 UTC+1 schrieb Fakhr Alam:
>>
>>> I have admin authentication with the following *beforeFilter()* method
>>> in *appController.php*.
>>> I am using cakePhp 2.4
>>>
>>> 
>>> ---
>>>
>>> *public function beforeFilter() {
>>>
>>> $this->Auth->allow(
>>> array(
>>> 'controller'=>
>>> 'Services','Projects','News','Jobs','Messages',
>>> 'action'=>
>>> 'index','view'
>>> )
>>> );
>>> }*
>>>
>>> ---
>>>
>>> I want to allow access to
>>> 1- index action of all controllers
>>> 2- view action of *only Jobs* controller
>>> currently I have allowed access to index and view actions of all
>>> controllers.
>>> how to fix it?
>>>
>>  --
>> 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.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> --
>
>
> http://leandrompereira.com.br
>
> ***Se você pretende redirecionar este e-mail, por favor, apague todos os
> endereços que aparecem nele. Outra dica de segurança é endereçá-lo no Cco.
> Desta forma você estará protegendo a mim, seus amigos e a você mesmo. Eu e
> a Campanha Contra o SPAM agradecemos.Não envie correntes.***
>
> --
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Kind Regards
 Stephen Speakman

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: CakePhp Auth Allow specific actions of specific controllers

2014-02-17 Thread Leandro Machado Pereira
So Try,

$this->Auth->allow(array('controller' => 'users' , 'action' => 'view'));
$this->Auth->allow(array('controller' => 'users' , 'action' => 'add'));
$this->Auth->allow(array('controller' => 'users' , 'action' => 'edit'));


2014-02-15 22:35 GMT-02:00 euromark :

> Where did you get the idea that this would work?
> allow() takes only basic method names.
>
> Either set it in each controller separately, or use some self written
> component to set it via config file or alike
>
> But you are trying do there doesn't make much sense
> Please read the documentation - or the doc blocks to it - or the code:
>
> https://github.com/cakephp/cakephp/blob/master/lib/Cake/Controller/Component/AuthComponent.php#L518
> That should explain it.
>
>
> Am Samstag, 15. Februar 2014 20:39:01 UTC+1 schrieb Fakhr Alam:
>
>> I have admin authentication with the following *beforeFilter()* method
>> in *appController.php*.
>> I am using cakePhp 2.4
>>
>> 
>> ---
>>
>> *public function beforeFilter() {
>>
>> $this->Auth->allow(
>> array(
>> 'controller'=>
>> 'Services','Projects','News','Jobs','Messages',
>> 'action'=>
>> 'index','view'
>> )
>> );
>> }*
>>
>> ---
>>
>> I want to allow access to
>> 1- index action of all controllers
>> 2- view action of *only Jobs* controller
>> currently I have allowed access to index and view actions of all
>> controllers.
>> how to fix it?
>>
>  --
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 


http://leandrompereira.com.br

***Se você pretende redirecionar este e-mail, por favor, apague todos os
endereços que aparecem nele. Outra dica de segurança é endereçá-lo no Cco.
Desta forma você estará protegendo a mim, seus amigos e a você mesmo. Eu e
a Campanha Contra o SPAM agradecemos.Não envie correntes.***

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Serving assets from nginx static server in cakephp 2.x

2014-02-17 Thread learning
Hi!

Thank you very much, finally i solved the problem.

In the NAS i created a static folder with the symlinks i needed like:

ls -l /mynas/static/

css -> /app/webroot/css/
myplugin -> /app/Plugin/MyPlugin/img/

and in nginx i changed my config DocumentRoot to /mynas/static

Cheers!

El viernes, 14 de febrero de 2014 21:36:51 UTC+1, AD7six escribió:
>
> Why not simply symlink you plugin webroot as indicated in the docs?
>
> AD
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Is there any online bake?

2014-02-17 Thread MihaiTL
Hi all,

Something like a service application hosted on localhost or on your hosted 
development server with several plugins for different versions of CakePHP.

SuperBake is an inspiration. Also Gii Module Generator from yii.

Without a shell file like bake.

Regards!

luni, 17 februarie 2014, 12:47:06 UTC+2, MihaiTL a scris:
>
> Hi,
>
> I updated php and the files from /usr/share/php aren't as they should be.
>
> I remember when exploring yii that there was an application / plugin (like 
> bake) that permited creation of models, views, controllers and many more 
> but using a web interface.
>
> Do you know something similar for cakePHP? It can be made? I am new so I 
> cannot contribute to it.
>
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Is there any online bake?

2014-02-17 Thread MihaiTL
Hi,

I updated php and the files from /usr/share/php aren't as they should be.

I remember when exploring yii that there was an application / plugin (like 
bake) that permited creation of models, views, controllers and many more 
but using a web interface.

Do you know something similar for cakePHP? It can be made? I am new so I 
cannot contribute to it.

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Set "title_for_layout" in controller or view?

2014-02-17 Thread Perumal Swaminathan
View is presentation layer, we just need to display in it.

-Perumal

On Mon, Feb 17, 2014 at 2:27 PM, LDSign  wrote:
> Thanks.
>
> But any reason for this? I would have guessed the title is more related to
> the view than to the controller...
>
> Frank
>
> Am Montag, 17. Februar 2014 09:25:59 UTC+1 schrieb perumal:
>>
>> Hi,
>>
>> The best practice well be setting title in controller.
>>
>> Regards,
>> Perumal S
>>
>> On Mon, Feb 17, 2014 at 1:54 PM, LDSign  wrote:
>> > Hi
>> >
>> > Sure, the title could be set in the controller and/or in the view.
>> >
>> > But what is the best practice regarding coding standards and the MVC
>> > pattern? The docs are not clear at this point. What do you think?
>> >
>> > Thanks,
>> > Frank
>> >
>> > --
>> > 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+u...@googlegroups.com.
>> > To post to this group, send email to cake...@googlegroups.com.
>> > Visit this group at http://groups.google.com/group/cake-php.
>> > 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.
> 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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Set "title_for_layout" in controller or view?

2014-02-17 Thread LDSign
Thanks.

But any reason for this? I would have guessed the title is more related to 
the view than to the controller...

Frank

Am Montag, 17. Februar 2014 09:25:59 UTC+1 schrieb perumal:
>
> Hi, 
>
> The best practice well be setting title in controller. 
>
> Regards, 
> Perumal S 
>
> On Mon, Feb 17, 2014 at 1:54 PM, LDSign > 
> wrote: 
> > Hi 
> > 
> > Sure, the title could be set in the controller and/or in the view. 
> > 
> > But what is the best practice regarding coding standards and the MVC 
> > pattern? The docs are not clear at this point. What do you think? 
> > 
> > Thanks, 
> > Frank 
> > 
> > -- 
> > 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+u...@googlegroups.com . 
> > To post to this group, send email to cake...@googlegroups.com. 
>
> > Visit this group at http://groups.google.com/group/cake-php. 
> > 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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Set "title_for_layout" in controller or view?

2014-02-17 Thread Perumal Swaminathan
Hi,

The best practice well be setting title in controller.

Regards,
Perumal S

On Mon, Feb 17, 2014 at 1:54 PM, LDSign  wrote:
> Hi
>
> Sure, the title could be set in the controller and/or in the view.
>
> But what is the best practice regarding coding standards and the MVC
> pattern? The docs are not clear at this point. What do you think?
>
> Thanks,
> Frank
>
> --
> 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.
> 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.
For more options, visit https://groups.google.com/groups/opt_out.


Set "title_for_layout" in controller or view?

2014-02-17 Thread LDSign
Hi

Sure, the title could be set in the controller and/or in the view.

But what is the best practice regarding coding standards and the MVC 
pattern? The docs are not clear at this point. What do you think?

Thanks,
Frank

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.