0 answers
0 votes
FormHelper::create() now generate acion attribute that not contain id param?
Hi, I am wondering a explanation for the FormHelper enhancement of following url.
http://cakephp.lighthouseapp.com/projects/42648/13-migration-guide
It says:
Default urls generated by form helper no longer contain 'id' parameter.
I guess
Maybe...
0 answers
0 votes
Howto access helper from core email component view?
I've created a shell task that I call from the crontab.
It works great except it breaks when I use the EmailComponent in conjunction with any helper. Example:
I use EmailComponent to send an email.
In views/elements/email/html/myemail.ctp I am using...
0 answers
0 votes
What am I missing in $script_for_layout..
ref:Inserting Well Formatted elements # css
Using cake 1.3, I'm trying to load scripts and css from a view or an element using inline=false. For instance, I have $this->Html->css ( 'adm-navigation', null, array('inline'=>false) ); in the...
0 answers
0 votes
$number->format()
Help! I am trying to format numeric data in my view. I am attempting to use the $number-format(number,options) helper.
Can someone show me a real-world example of this function being used? It is used in the view, correct? I have made a ton of...
0 answers
0 votes
Why cakephp forms doesn't work with jquery (mb)menu ?
Hi
In my menu (jquery plugin named (mb)Menu) i wrote a simple login form:
<div id="login" class="mbmenu">
<a rel="title" >Login panel</a>
<a rel="separator"> </a>
<a rel="text" class="rel_text">
<?php echo $form->create('User', array('action'... 1 answer
0 votes
Has way to fixed the pagination params in navigation, by default?
I'm learn about cakephp and not find properties to set the pagination to keep the params into args url.
Example:
List users, ordered by name and I'm in second page, clicked in edit, data has edited and click to save, data has been saved! I want to...
1 answer
0 votes
html entities
I want a link with a span inside. like this: <a href=''>linktext
When I use this the span tags are converted to html entities(<span class="text">)
$html->link($title . $html->tag("span", null, array('class' => 'welcome')), $url);
1 answer
0 votes
Is there any helper or plugin for blogging to use with cakePHP?
Is there any helper or plugin for blogging to use with cakePHP?
1 answer
0 votes
helper and models
I want to use a model (and a function of this model ) at my helper,how can I do that?
for example
{{{
$post = new Calendars();
$post->findArticlePostedThisMonth()
}}}
1 answer
0 votes
JsHelper and Cakephp 1.3
Hi:
I'm start using cakephp and i made a demo app using AjaxHelper
$ajax->link('title', 'url', array('update' => 'mydiv'))
Now i want to migrate that to cakephp 1.3 and AjaxHelper is deprecated on cake 1.3 and will be removed, so i want to...
1 answer
0 votes
help on linking javascript
how to solve the following error ?
Notice (8): Undefined variable: javascript [APP\views\layouts\default.ctp, line 50
i have following the instructions on ajax helper in cakephp manual (7.1)
echo $javascript-link('prototype');echo...
1 answer
0 votes
Why does Form::hidden drops class for input?
Why can't I do this:
$this->Form->hidden("name", array("class"=>"someClass"));
FormHelper drops class name I want to pass. Why is it that way?
1 answer
0 votes
Can´t include helpers and components in app_controller
Hello,
When I put the following in my app_controller:
var $components = array('Auth', 'Session');
I get no errors, and I can use the components.
But when I put the following:
var $components = array('Auth', 'Session');
var $helpers =... 1 answer
0 votes
Html link helper with internal anchor and parameter
Hi,
I use a link in my view as following:
<?php echo $html->link('Update list', '/controller/action/parameter'); ?>
But I would like to scroll the page displayed by this link to the anchor "#there" which is at the botton of the page.
I tried...
1 answer
0 votes
Is there a qr code generator helper for cakephp?
Hi,
Is there a qr code generator helper for cakephp available?
I appreciate any help.
Thanks.
1 answer
0 votes
HTML5 input types with form helper
Is there a way to create html5 input types (for example type="email") using the form helper, or to create custom input types? When I tried the obvious method of setting 'type' in the options array I got a textarea which from looking at the code...
1 answer
0 votes
How to replace Prototype->submit with Jquery->submit?
I'm in the process of changing over my Prototype Ajax calls with Jquery ajax calls. I'm using cake v1.3.3 and I want to use the new JsHelper. I am having problems finding a suitable replacement for the prototype option "condition" on the submit...
2 answers
1 vote
How can I extend the core helpers ?
How can I extend the core helpers ?
I need to use new options in function $form->create() and others methods in the Form helper.
Thank you,
Paolo
2 answers
1 vote
How do I access a Helper from inside an Element?
I created a helper function that automatically generates an image for me (using GD), writes it to a file in the images directory, and then returns an image tag for the image.
The generated image is a progress meter, so it is general enough to be a...
2 answers
0 votes
How do I create various checkboxes for an list of items in a form?
<?php echo $form->input('CategoriaAtendimento'); ?>
This echoes a list with all the items on CategoriaAtendimento, can any1 tell how do I echo a "checkbox list" instead? plz