On Feb 5, 9:23 am, Mistoo misto...@gmail.com wrote:
Bonjour, je viens de débuter avec CakePHP en version 1.2.4, et je
cherche des examples de codes, lien, ... pour utiliser Cakephp avec
Tabs jquery. Merci
Mistoo -- I don't know if there are tutorials on that exact topic, but
you can start
Hi Pau,
Are you using 1.2? If so, $this-renderElement is deprecated and you
should use $this-element instead. You can read up on elements at
http://book.cakephp.org/view/97/Elements.
But this specific situation sounds like a perfect task for a helper.
Helpers (see
$form-input('Curse.0.curse_id',array('type' = 'checkbox', 'value' =
13));
how do I recoup the fields checked for edition?
The data will be in $this-data['Curse'] in the controller.
$this-data = $this-User-read(null, $id);
By doing this you are completely blowing away the form submitted
Hi laceja,
Try removing both the before and after attributes, and instead adding
'class' = 'short200' to the input array. There's really no need to
add the span, you can style the input itself instead.
On Jan 18, 8:16 am, laceja mkings...@weblinesys.com wrote:
I'm very new to CakePHP... this is
Jesse,
The underlying assumption with Cake layouts is that they are all-
encompassing, unlike Java Struts tiles, for example, where you have
a master tile layout and various pieces that are included and shared
between layouts.
Of course there are case (like yours) where you are presented with a
I vote for West Coast first, Central second.
West: Denver, Phoenix, San Diego, Austin, and Bay Area are top
choices. Easy to fly to, mostly good weather. ;)
Central: Chicago would be my vote for ease of travel.
Essentially, our choices are:
- USA East Coast
- USA West Coast
- USA Central
--
Hi Julia,
When you are using $javascript-link you will generally want the
script to be called in the head of the document (not inline). Which
means adding false as the second parameter: see
http://api.cakephp.org/class/javascript-helper#method-JavascriptHelperlink.
Calling the Google Maps script
Jules,
In order to force a specific redirect after login you'll need to
specify that redirect in the login action of your users controller. By
default the Auth component uses its own login action, and thus you
can't override the redirect behavior after a successful login. To
force your own
As jacmoe said, the best practice is to put elements specific to one
view into a subfolder named the same as the view. That way you aren't
cluttering the elements directory with lots of files, and the element
files specific to that view will be easy to find and call.
Example: if the element
a tutu and go go boots
By which you mean TextMate, right? ;)
I use TextMate with Samuel DeVore's excellent CakePHP bundle.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send
I think that with new apps that's not an issue but if you have to merge it
with some kind of legacy code then you will have to override each and every
one of those entities styles.
I believe that the generic stylesheet that ships with Cake by default
is just that, a generic default
i want to get ishttps://mycart/carts/authorize/, what i have to do for it
Hi Jipson,
Most likely you'll need to include the full path to the secure URL,
like this:
?php echo $html-url('https://mycart/carts/authorize/); ?
in order to force the HTTPS protocol.
Out of curiosity, why are you
is there any way to generate the output for those metas as dealing with
description and
keywords metas?
Hi soosa,
The meta HTML helper currently supports building meta elements for
rss, icon, atom, keywords, and description. For all the
other types of meta elements, you are better off
i’m trying to just create a “selected” option
basically i just want the “Yes” option to be the default
Hi slimcady,
There are two approaches I can think of:
1) Set $showEmpty to false to automatically make the first option be
selected (removes the empty option).
2) Build an array of the
i copied a new app folder over the existing one and not i can't even
see the cakePHP default screen
harry,
Make sure when you copy Cake directories around that you make sure
hidden files are moved as well. A very common topic here is the issue
where htaccess files don't get moved with their
I need to have pretty URL's and cannot also figure out how to get rid
of index.php in my URL.
When index.php appear in the URL, it's usually an issue with
htaccess rules or your server setup not supporting mod_rewrite. See
the Cookbook page on mod_rewrite for more:
@peterm95018 and @Malcolm, how-to for CSS and HTML probably isn't an
appropriate topic for the Cake group–unless of course you are having
trouble getting the HTML output you want from the HTML helper, for
example.
A bit of Google searching will find you some great examples of form
layout. From 4
My next step was to use some of the code snippets on the bakery...
I then start adding some components like captcha, which use a helper,
here is were it starts going wrong.
Are you following this article in the Bakery? Improved Captcha
Component:
Tallbrick,
In CakePHP 1.1 there was a method to override the default HTML output
by placing a file called tags.ini.php in your /app/config directory.
In CakePHP 1.2, that same override can be achieved by using creating a
file called tags.php in /app/config. There is one extra step for
1.2,
But it just gives me an img src='... but not the actual image.
That HTML image element is a reference to the image; browsers and HTML-
enabled email readers will display it correctly. When you say not the
actual image, do you mean:
(1) the image doesn't display correctlty in the email you
but the CakePHP Email component wasn't really designed to do this.
@Jonathan Snook
Sending images in HTML email with the Email component works just fine;
you don't need to send it as an attachment. And yes, if you have a
very large amount of images, it might get marked as spam by the
recipient
Let me clarify since I think you missed what I was trying to say.
This is different than what you are suggesting.
Sorry for hijacking the thread—I did indeed misunderstand Meloy's
question. And yes, you are right in saying that the Email component is
not designed to embed images in emails.
The problem is, when i put html codes in the $html-textarea
fields, it actually outputs the html codes, how can i stop it from
outputting the actual html and only show the html codes in plain text?
Are you trying to enter HTML values into the value attribute for the
textarea? Or is your
Thanks, my question is, how can i stop the script from out putting the
html code when its inserted through the comments box?
It appears that you are using a JavaScript comment form preview
script, which unfortunately I can't help you with—and if it *is* a
JavaScript issue it's probably not a
Jonathan: In that sense, print stylesheets aren't much of a priority for most
projects. This depends heavily on user
expectations and type of project.
In my experience using CakePHP I've always created my own stylesheets,
and thus have never noticed the lack of default print styles. I'd
Try: ?php echo $form-submit('/path/to/image.png'); ?
If the button image file is in your /webroot/img/ directory, you can
just use the image file name:
?php echo $form-submit('my-button.gif') ?
See more in the API docs:
Do you have any JavaScripts anywhere in the page?
I agree that this sounds like a JavaScript issue, not a PHP or HTTP
issue. If you want to force IE to have a longer keep-alive value, see
How to change the default keep-alive time-out value in Internet
Explorer article on Microsoft.com:
It's not complete unstyled.
So the CSS files were loading correctly, but you were getting a design
that you weren't expecting?
If you aren't familiar with Chris Pedericks's Firefox, I'd suggest
installing it right now: http://chrispederick.com/work/web-developer/.
It can turn CSS on off with
Has anyone else encountered this problem?
Yes, see this thread: http://tinyurl.com/4mx6zq, or search for
wordpress in this group.
From my experience installing WordPress into CakePHP webroot, if
the .htaccess in your /app/webroot/ is enabled and working correctly,
any requests to a /blog/ will
When I launch cake in the browser the page shows up, but it doesn't
look properly styled.
My research suggests its an issue with the mod_rewrite... but I can't
seem to find out how to solve it.
Hi bdiddymc,
See Beware the Finder and dot files:http://tinyurl.com/5572wp. A
very common error
I created a form with a radio section. But i just can't figured out
how to put an onclick funktion to one single Button...
Ideally, you would not use an onclick attribute at all, but instead
use an event listener to watch for that specific radio button being
clicked. You would first look at
My suspcicion is that this has to do with the symlink. Running php
info has the SCRIPT_FILENAME as /mnt/webhosting/company/cake/app/
webroot/info.php, while the rest of the path related variables show /
cake/...
Hi JDG,
There are quite a few answers to the shared hosting setup already here
Off-topic, but needed to share this publicly:
I followed the link above to check out Wildflower. In viewing the
screenshots, I was really surprised to see the UI (graphics and
layout) look almost identical to the UI built by 37signals with their
Backpack product (backpackit.com).
It's not cool
I'm making an app where I need to be able to have a link that when
clicked, dims the windows(like lightbox) and then brings up an ajax
calendar. I know that lightbox is for photos, so does anyone have any
suggestions on apps that could be used for this?
Kyle, I've used Particletree's
1.5.0 on Mac OS X).
Have you been able to reproduce the problem on any other systems or
browsers? Try IE7 also to see if it happens there.
HTH,
--
Lance Willett
simpledream web studio
http://www.simpledream.net
--~--~-~--~~~---~--~~
You received this message
I can see two different things going on here: (1) the anchor is being
generated, and you don't want it, and (2) you want to change the color
that is associated with the CSS class warning_msg.
For item one, it could be a third party vendor or error layout view
file that are adding the anchor; are
here...
--
Lance Willett
simpledream web studio
http://simpledream.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe
37 matches
Mail list logo