1 answer
0 votes
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
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
Cache xml json
it Can cache the html page
but Can not cache the xml and json
2 answers
0 votes
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
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
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
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
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
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
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...
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.







