Re: Example de formulaire Cakephp avec Tabs jquery

2010-02-08 Thread Lance Willett
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

Re: How to include an element in a view.

2010-02-03 Thread Lance Willett
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

Re: I need help with checkbox

2010-01-27 Thread Lance Willett
$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

Re: CSS and CakePHP

2010-01-19 Thread Lance Willett
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

Re: Layout Structuring Issues

2009-11-19 Thread Lance Willett
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

Re: CakeFest IV - America - Help us pick a location!

2009-11-19 Thread Lance Willett
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 --

Re: Stuck with GoogleMap vs. CakePHP

2009-11-16 Thread Lance Willett
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

Re: How do I force redirect after login

2009-11-16 Thread Lance Willett
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

Re: Howto include a View into another View?

2009-10-22 Thread Lance Willett
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

Re: What do you develop in (ide, text editor, etc.)?

2009-03-24 Thread Lance Willett
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

Re: Self contained css in Cake's default app

2008-12-04 Thread Lance Willett
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

Re: Adding https in $html-url

2008-12-04 Thread Lance Willett
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

Re: html helper issue

2008-10-01 Thread Lance Willett
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

Re: HtmlHelper selectTag

2008-09-24 Thread Lance Willett
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

Re: getting error can't establish a connection to the server at localhost

2008-09-23 Thread Lance Willett
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

Re: $htmlHelper and layouts for a cake noob

2008-09-17 Thread Lance Willett
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:

Re: 2 column layout for $form-input() ?

2008-08-19 Thread Lance Willett
@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

Re: Problems with helper class

2008-07-22 Thread Lance Willett
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:

Re: Customizing the output of Form Helpers

2008-07-15 Thread Lance Willett
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,

Re: Embed images to HTML-mails

2008-07-15 Thread Lance Willett
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

Re: Embed images to HTML-mails

2008-07-15 Thread Lance Willett
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

Re: Embed images to HTML-mails

2008-07-15 Thread Lance Willett
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.

Re: $html-textarea displaying actual html codes

2008-07-10 Thread Lance Willett
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

Re: $html-textarea displaying actual html codes

2008-07-10 Thread Lance Willett
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

Re: Request for the Devs to take into consideration concerning print

2008-07-10 Thread Lance Willett
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

Re: How to make submit image button in php?

2008-06-26 Thread Lance Willett
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:

Re: Timeout on IE but not on other browsers

2008-06-23 Thread Lance Willett
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:

Re: cakephp on MAMP

2008-06-18 Thread Lance Willett
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

Re: Wordpress Redirect

2008-06-18 Thread Lance Willett
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

Re: cakephp on MAMP

2008-06-17 Thread Lance Willett
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

Re: Radio with single onclick

2008-06-17 Thread Lance Willett
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

Re: Install problems on shared host

2008-06-17 Thread Lance Willett
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

Re: CMS?

2008-06-09 Thread Lance Willett
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

Re: Need a lightbox type app

2008-05-29 Thread Lance Willett
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

Re: launched a small cake site...weird problem

2007-02-06 Thread Lance Willett
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

Re: HTML anchor tag issue

2007-01-27 Thread Lance Willett
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

Re: HTML anchor tag issue

2007-01-26 Thread Lance Willett
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