Category: Views

Custom query from view for theming purpose

I want to add custom query feature to my blog app that is written in cakephp 3. The idea is to allow front-end developers to create their own themes and to write custom queries (suppose they know

#theming
0 Answers
RJ
RJ

4

Category: Views

compact($var) in CakePHP

When you are passing a variable from controller to view, you use the set function, but..Compare$this->set('var', $var);to the following$this->set(compact('var'));Which one is better?  

SOLVED
1 Answers
Kake
Kake

3

Category: Views

RSS feed view in CakePHP 3

I want to create a view of news for RSS in CakePHP. Now I have all posts set to /news/rss.ctppublic function rss() {     //get recent news     //... &n

#rss
2 Answers
Doug
Doug

3

Category: Views

CakePHP access user login status in view

I need CakePHP 3 to access user login status (is logged in or not) in view .ctp file. I'm unable to use AuthComponent or SessionComponent to retrieve user status. I wonder if there is a SessionHelp th

#user
2 Answers

Category: Views

CakePHP 2 download link from view using alternative file name

Hi Aero Coding:I have a project written in CakePHP 2 that provides pdf storage and sharing service to end users. The pdf name of download links are same as is the hash name in s3, and pdf file name wa

SOLVED #aws #s3 #pdf
1 Answers
Betts
Betts

2

Category: Views

Create dropdown list in CakePHP

I use CakePHP's form helper to generate <form></form> columns, but I didn't see a helper that is able to create dropdown list. I use foreach to list all possible options..<!-- in view /

SOLVED #select #htmlhelper
2 Answers
Lara
Lara

4

Category: Views

Cakephp 3 read config value in helper class

I want to read domain's settings (usually hostname) from app.php config file in DomainHelper. How to read a value from cakephp's config file? I need to get config settings to build up urls for publish

SOLVED #helper #configuration
1 Answers