Questions in Category: Views

RSS

1 answer

0 votes

Asked by ecom, 4 days, 5 hours ago in Views

defer="defer"

hello, anyone know

how to use defer="defer" attribute in cakephp?

i would like to use it in the script tags:

<?php echo $html->script(array('ad.js'));?>

thanks!!

1 answer

0 votes

Asked by jeekuli, 5 days, 13 hours ago in Views

Highlight current page!

I have menu as an element. How do I highlight the current active page in the menu?

Some of my pages are static pages and some use controllers.

Please help me!

1 answer

0 votes

Asked by wcj343169893, 5 days, 19 hours ago in Views

Cache xml json

it Can cache the html page

but Can not cache the xml and json

2 answers

0 votes

Asked by jeekuli, 6 days, 13 hours ago in Views

Creating subpages?

Novice here. How do I create subpages with CakePHP? And how I route them correctly?

I'm trying to add pages to a new folder under Pages-folder.

For example:

www.example.com/people

www.example.com/people/players <-- subpage 1

2 answers

0 votes

Asked by parmod, 1 week, 6 days ago in Views

How to send a value from view to controller?

How to send a value from view to controller?

Please help me

1 answer

0 votes

Asked by alexkd, 2 weeks ago in Views

Disabled field

In my edit.ctp I have a select box which I don't need the user to change. So I put array(disabled=>true). But this field is not coming when

pr($this->data); and showing an error while saving.

What options are there to solve this issue....

thanks.

2 answers

0 votes

Asked by ecom, 2 weeks, 3 days ago in Views

adding a specific css or javascript file links in webpage?

How to add a specific css or javascript file links in webpage header (only for two pages)?

i use the codes below, but not working,

<?php $html->css('css', null, array('inline'=>false));?>

can someone tell me how to fix this.

thanks!!!

2 answers

0 votes

Asked by dhel, 2 weeks, 6 days ago in Views

how to write a script in jquery using a form->button?

hello everyone :)

Can anyone know this?

In my modulepartsearch.ctp:

i have created 3 buttons and also 2 div which are:

<table

<tr

<tdForm-button('Author', array('type'='button','name'='author')); ?

<tdForm-button('Module',...

2 answers

0 votes

Asked by saidbakr, 3 weeks, 6 days ago in Views

Is there any way to prevent layout element in some views?

Hi,

In my application default layout I use some elements that will rendered in all action's views.

I need to know if there is any way to prevent some elements to be rendered in some views actions!

I guess that beforeRender in the controller may has...

0 answers

0 votes

Asked by PierreLechelle, 4 weeks ago in Views

Associative data array structure for elements

Hello,

Let say that I've views for my controller and elements in it.

When I want tu use the same elements for displaying data under another controller, like with associative data, the elements don't work correctly.

We owe that to the associated data...

<< previous 1   2   3   4   5   6   7   8   9

How does CakePHP Questions work?

CakePHP Questions is easy to use: Register and login or directly login using OpenID and just ask your question!

After you ask your question you just need to wait until you have got some answers and pick the correct answer.

Other users might help you by finding the right answer by voting and giving comments.