Re: Html Helper: Better way to generate table ?

2015-05-09 Thread Aday Talavera
I've this methods in a helper: ?php /* * Boostrap table helpers */ public function full_table(array $headers, array $rows, array $footer, $table_class = 'table table-bordered table-condensed', $header_class = 'active', $footer_class = 'active') { //style=white-space:

Re: Html Helper: Better way to generate table ?

2015-05-07 Thread samuel
nice! Is bshelper part of cakephp? On Friday, May 1, 2015 at 9:54:43 PM UTC+1, Sylvain Lévesque wrote: ?php echo $this-Html-tag( 'table', null, array( 'class' = 'table table-hover table-condensed' ) ); echo $this-Html-tag( 'thead' ); echo $this-Html-tableHeaders( array( 'One', 'Two',

Html Helper: Better way to generate table ?

2015-05-01 Thread Sylvain Lévesque
?php echo $this-Html-tag( 'table', null, array( 'class' = 'table table-hover table-condensed' ) ); echo $this-Html-tag( 'thead' ); echo $this-Html-tableHeaders( array( 'One', 'Two', 'Three', 'Four', 'Five' , 'Six', 'Seven', 'Eight', 'Nine' ) ); echo $this-Html-useTag( 'tagend', array( 'thead' )

CakePHP 3.0 beta 1: Please help to use Html helper in function on view

2014-09-02 Thread Nguyễn Anh Tuấn
Dear all. This so stupid but please help me. In my cell: *app/src/View/Cell/MyCell.php* i'm use public $helpers = ['Html']; In my cell view: *app/src/Template/Cell/MyCell/display.ctp* ?php $this-Html-link('name', ['controller' = 'mycontroller', 'action' = 'myaction', 'param']); // This one work

Re: CakePHP 3.0 beta 1: Please help to use Html helper in function on view

2014-09-02 Thread José Lorenzo
Where did you put that generateLink() function? Helpers can only be used in the templates and from other helpers. What you are trying to do is not possible. You can create other helpers that can call the Html helper internally On Tuesday, September 2, 2014 1:57:30 PM UTC+2, Nguyễn Anh Tuấn

Html helper generate invalid code: No space between attributes!

2013-05-15 Thread Salines
*Hello * * * I noticed that htmlhelper generated errors and creates not valid html code. ?php echo $this - Html - charset(); ? generate: meta charset=utf-8 with missing quote // other errors generated by html helper http://validator.w3.org/check?uri=http%3A%2F%2Ffarm.ba%2Fcharset=%28detect

Re: Html helper generate invalid code: No space between attributes!

2013-05-15 Thread Salines
(); ? generate: meta charset=utf-8 with missing quote // other errors generated by html helper http://validator.w3.org/check?uri=http%3A%2F%2Ffarm.ba%2Fcharset=%28detect+automatically%29doctype=Inlinegroup=0st=1user-agent=W3C_Validator%2F1.3+http%3A%2F%2Fvalidator.w3.org%2Fservices i used cakephp

html helper - image outside of webroot/img dir

2013-04-01 Thread Robert Gravel
Hi, I need to display an image outside the webroot/img dir for cake 1.3. Specifically I have to link to an image in the ckeditor which is at webroot/js/ckeditor... When I use $this-Html-image() it gives me a reference at webroot/img by default. Is there a solution that is portable between

RE: html helper - image outside of webroot/img dir

2013-04-01 Thread Advantage+
-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Robert Gravel Sent: Monday, April 01, 2013 10:42 PM To: cake-php@googlegroups.com Subject: html helper - image outside of webroot/img dir Hi, I need to display an image outside the webroot/img dir for cake 1.3. Specifically I

Re: html helper - image outside of webroot/img dir

2013-04-01 Thread Robert Gravel
the editor package itself just reference it as the correct path/filename *From:* cake...@googlegroups.com javascript: [mailto: cake...@googlegroups.com javascript:] *On Behalf Of *Robert Gravel *Sent:* Monday, April 01, 2013 10:42 PM *To:* cake...@googlegroups.com javascript: *Subject:* html

RE: html helper - image outside of webroot/img dir

2013-04-01 Thread Advantage+
No problem. Hope it helped. No expert but seems pretty straight forward so glad I could help in any way. From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Robert Gravel Sent: Monday, April 01, 2013 11:08 PM To: cake-php@googlegroups.com Subject: Re: html helper

Re: adding a custom prefix route that will snap in to all urls from the html helper

2012-09-18 Thread Devario Johnson
was looking over the routing docs and doing some other searches but couldnt find exactly what I needed. here is the issue. I have a site that is hosted at a subdirectory that is being pushed through a proxy that when ever the URLS are written from the HTML helper they dont go where they are supposed

adding a custom prefix route that will snap in to all urls from the html helper

2012-09-17 Thread Devario Johnson
that is being pushed through a proxy that when ever the URLS are written from the HTML helper they dont go where they are supposed to relative to the root of the subdirectory. The site loads fine from the subdirectory (with no changes to htaccess in root app or webroot) but what is happening is any

Re: Problem encountered: about passing multiple paramters from view (html helper: link) to an action ($arg1 = null, $arg2 = null) that the passed parameter became empty null strings

2012-08-09 Thread Tilen Majerle
http://majerle.eu 2012/8/8 Andante Cheng andantech...@gmail.com Dear all: I would be grateful if you could help me on this issue what I have been working on it few days: my problem is: about passing multiple paramters from view (html helper: link) to an action ($arg1 = null, $arg2 = null

Problem encountered: about passing multiple paramters from view (html helper: link) to an action ($arg1 = null, $arg2 = null) that the passed parameter became empty null strings

2012-08-08 Thread Andante Cheng
Dear all: I would be grateful if you could help me on this issue what I have been working on it few days: my problem is: about passing multiple paramters from view (html helper: link) to an action ($arg1 = null, $arg2 = null) that the passed parameter became empty null strings 1. First

Re: Html helper - stop adding prefix unless explicitly specified

2011-10-05 Thread Saransh Sharma
hey send me more and big clear pics On Wednesday, October 5, 2011, rchavik wrote: You could create a custom helper inheriting HtmlHelper, then use the joeb'sAnalogue pluginhttps://github.com/joebeeson/analogueto masquerade your helper as core HtmlHelper. This way, you don't have to modify

Re: Html helper - stop adding prefix unless explicitly specified

2011-10-05 Thread nowotny
On 5 Paź, 03:31, rchavik rcha...@gmail.com wrote: You could create a custom helper inheriting HtmlHelper, then use the joeb'sAnalogue pluginhttps://github.com/joebeeson/analogueto masquerade your helper as core HtmlHelper. This way, you don't have to modify your view files Thanks... that

Re: Html helper - stop adding prefix unless explicitly specified

2011-10-05 Thread Zaky Katalan-Ezra
I have 3 roles in my app. To Avoid adding the prefix arrays to each url, I am using this helper function. View code to create musician prefix url: echo $this-Html-link('Dashboard', $this-RoleLink-linkRole(array('controller'='users','action'='dashboard'),array('musician'))); Helper function:

Re: Html helper - stop adding prefix unless explicitly specified

2011-10-04 Thread nowotny
On 28 Wrz, 19:44, euromark dereurom...@googlemail.com wrote: i use a custom app helper method i called defaultLink() which resets all prefixes unless specified. although thats maybe not exactly what you have in mind but you could make sth similar with your own default values either way -

Re: Html helper - stop adding prefix unless explicitly specified

2011-10-04 Thread rchavik
You could create a custom helper inheriting HtmlHelper, then use the joeb'sAnalogue pluginhttps://github.com/joebeeson/analogueto masquerade your helper as core HtmlHelper. This way, you don't have to modify your view files -- Our newest site for the community: CakePHP Video Tutorials

Html helper - stop adding prefix unless explicitly specified

2011-09-28 Thread nowotny
could add 'admin'=false to all links that should not be prefixed but that's not really a feasible solution. So here comes my question: is there a way for Html helper not to add prefixes to links in prefixed routes unless when I explicitly set it to do so with 'admin'=true? I think it should

Re: Html helper - stop adding prefix unless explicitly specified

2011-09-28 Thread euromark
/posts(- wrong)www.domain.com/admin/users I know I could add 'admin'=false to all links that should not be prefixed but that's not really a feasible solution. So here comes my question: is there a way for Html helper not to add prefixes to links in prefixed routes unless when I explicitly set

Html Helper Tables :: Pure Curiosity

2011-07-15 Thread DragonFlyEye
Does anybody know a reason that the Html Helper contains a method to output table cells and headers, but not a method to output tables? Like, at least tableStart and tableEnd? It just looks sloppy to echo 'table' when everything else is done via the helper. -- Our newest site

Re: Html Helper Tables :: Pure Curiosity

2011-07-15 Thread Miles J
Its to generate rows using a helper, not really meant for generation within the view. On Jul 15, 7:28 am, DragonFlyEye dragonflyey...@gmail.com wrote: Does anybody know a reason that the Html Helper contains a method to output table cells and headers, but not a method to output tables? Like

Re: HTML helper (Meta Icon) duplicating unnecessarily?

2011-05-05 Thread euromark
as far as i know thats in order to address all browsers (because some stupid ones - i won't name any^^ - behave differently as the rest) On 4 Mai, 22:47, Ross rcurry1...@googlemail.com wrote: Hi I just got started with CakePHP, and have the following in  my layout, between the head tags's as

Re: HTML helper (Meta Icon) duplicating unnecessarily?

2011-05-05 Thread Ryan Schmidt
On May 4, 2011, at 15:47, Ross wrote: I just got started with CakePHP, and have the following in my layout, between the head tags's as you'd expect: ?php echo $this-Html-meta('icon') . \t\n; ? The output, however is: link href=/cakephp/myapp/favicon.ico type=image/x-icon rel=icon

Re: HTML helper (Meta Icon) duplicating unnecessarily?

2011-05-05 Thread Ross
That makes sense! Thank you. On May 5, 9:28 am, Ryan Schmidt google-2...@ryandesign.com wrote: On May 4, 2011, at 15:47, Ross wrote: I just got started with CakePHP, and have the following in  my layout, between the head tags's as you'd expect: ?php echo $this-Html-meta('icon') .

HTML helper (Meta Icon) duplicating unnecessarily?

2011-05-04 Thread Ross
Hi I just got started with CakePHP, and have the following in my layout, between the head tags's as you'd expect: ?php echo $this-Html-meta('icon') . \t\n; ? The output, however is: link href=/cakephp/myapp/favicon.ico type=image/x-icon rel=icon / link href=/cakephp/myapp/favicon.ico

Newbie having trouble with 'html helper', need to add 'rel' to url...

2011-03-24 Thread adam_g2000
Hi Guys, I'm using the following code: echo $this-Html-image('photos/' . $resource['Resource']['filename'], array( 'alt' = $resource['Resource']['title'], 'url' = array('controller' = 'resources', 'action' = 'lightbox', $resource['Resource']['filename_large']) )); What I need to

Re: Newbie having trouble with 'html helper', need to add 'rel' to url...

2011-03-24 Thread cricket
the image() method doesn't take that, or any other link attributes, into consideration. http://api.cakephp.org/view_source/html-helper/#line-604 I use link() plus image(): echo $this-Html-link( $this-Html-image( 'photos/' . $resource['Resource']['filename

Problem with Html Helper basepath in MAMP

2010-10-10 Thread roktok
I am struggling with Html helper in cake 1.3. The url method seems to reference different relative roots: ?php echo app: . APP; echo www_root: . WWW_ROOT; echo images: . IMAGES; echo url_test_relative: . $this-Html-url('/albums/show/'); echo url_test_absolute: . $this-Html-url('/albums/show

Problem with Html Helper basepath in MAMP

2010-10-10 Thread roktok
I am struggling with Html helper in cake 1.3. The url method seems to reference different relative roots: ?php echo app: . APP; echo www_root: . WWW_ROOT; echo images: . IMAGES; echo url_test_relative: . $this-Html-url('/albums/show/'); echo url_test_absolute: . $this-Html-url('/albums/show

Re: Problem with Html Helper basepath in MAMP

2010-10-10 Thread euromark
always use arrays for internal links On 10 Okt., 17:35, roktok heiko@googlemail.com wrote: I am struggling with Html helper in cake 1.3. The url method seems to reference different relative roots: ?php echo app: . APP; echo www_root: . WWW_ROOT; echo images: . IMAGES; echo

Re: Problem with Html Helper basepath in MAMP

2010-10-10 Thread roktok
with Html helper in cake 1.3. The url method seems to reference different relative roots: ?php echo app: . APP; echo www_root: . WWW_ROOT; echo images: . IMAGES; echo url_test_relative: . $this-Html-url('/albums/show/'); echo url_test_absolute: . $this-Html-url('/albums/show

html helper problem

2010-09-25 Thread Rifke
Dear CakePHP On my shared host (one.com) I'm having some issues with getting the HTML helper to work properly. For example I have ?php echo $html-link('Members', array('controller' = 'users'); ? which resolves in the URL: http://myhost.com/customers/account_name/account_name/httpd.www/app_name

Parsing image BB with HTML helper

2009-09-06 Thread BeroFX
Hi guys! I saw a really neat piece of code a few weeks ago, but forgot to bookmark it and am running crazy now. I was actually a component that did the following: You put [image:123] in your text (e.g. Post text) and save it. When you're reading the data out, you do $post['Post']['text'] =

Re: Parsing image BB with HTML helper

2009-09-06 Thread BeroFX
Okay, I know I wasn't crazy, after 3 hours of searching, I found it. http://www.gersh.no/posts/view/embed_images_anywhere_in_cakephp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this

Re: How to not escape Javascript in html helper link

2009-09-03 Thread Kana
Interesting, I'll have to check myself then if javascript in $html- link works in the latest cake version too. I'm using revision 7296. I know it is quite an old one. I could not find (or didn't know where to look for) info about this issue for the revision I use. On Sep 3, 4:46 am, Dr.

Re: How to not escape Javascript in html helper link

2009-09-02 Thread Kana
Hi there, thanks for your quick reply. I already mentioned trying both SINGLE quotes and DOUBLE quotes. Both result in escaped quotes, hence this post. The example you gave results in: a href=/image/a_link.php?test class=image onClick=pageTracker._trackEvent(#039;category#039;,

Re: How to not escape Javascript in html helper link

2009-09-02 Thread Kana
Quoting myself: I already mentioned trying both SINGLE quotes and DOUBLE quotes. Both result in escaped quotes, hence this post. I could have been more clear on where exactly I tried both double and single quotes :) On Sep 2, 9:44 am, Kana kana@gmail.com wrote: Hi there, thanks for your

Re: How to not escape Javascript in html helper link

2009-09-02 Thread Dr. Loboto
But your example was about double quotes that is wrong INITIALLY. Btw, on my cakes there are no problems with single quotes in tags attributes at all. What exact cake version do you have? On Sep 2, 3:48 pm, Kana kana@gmail.com wrote: Quoting myself: I already mentioned trying both SINGLE

How to not escape Javascript in html helper link

2009-09-01 Thread Kana
How to not escape Javascript in html helper link without having to use Javascript outside $html-link? I try to achieve: - the quotes in the onClick event, either single or double quotes a href=/image/a_link.php?test class=image onClick=pageTracker._trackEvent(category, action, label

Re: How to not escape Javascript in html helper link

2009-09-01 Thread Dr. Loboto
._trackEvent('category', 'action', 'label'); ), false, false ); ? On Sep 2, 12:15 am, Kana kana@gmail.com wrote: How to not escape Javascript in html helper link without having to use Javascript outside $html-link? I try to achieve: - the quotes in the onClick event, either

Re: HTML helper in function?

2009-08-12 Thread Martin Westin
I don't know how you do it James. I just did a quick test in a view and defining a function inline in the view will not provide that function with access to the local variables outside the function ($html, $form...) One ugly way of making it work is to make a global reference to the html helper

Re: HTML helper in function?

2009-08-12 Thread grigri
such as writing the anchor tag without the html helper, or turning the link array into a simpler two dimensional array where I can then iterate the link() function. However, I am wonder how I might specifically address the question of making the html-link() function available to a function

Re: HTML helper in function?

2009-08-12 Thread Josh
the anchor tag without the html helper, or turning the link array into a simpler two dimensional array where I can then iterate the link() function. However, I am wonder how I might specifically address the question of making the html-link() function available to a function within a view file. I

Re: HTML helper in function?

2009-08-12 Thread brian
a variable? There are some obvious work-arounds such as writing the anchor tag without the html helper, or turning the link array into a simpler two dimensional array where I can then iterate the link() function. However, I am wonder how I might specifically address the question of making the html-link

Re: HTML helper in function?

2009-08-12 Thread Josh
the function. Fatal error: Call to a member function link() on a non-object in... Any ideas? Is there a way to make the link() function global as you do a variable? There are some obvious work-arounds such as writing the anchor tag without the html helper, or turning the link array into a simpler

HTML helper in function?

2009-08-11 Thread Josh
: Call to a member function link() on a non-object in... Any ideas? Is there a way to make the link() function global as you do a variable? There are some obvious work-arounds such as writing the anchor tag without the html helper, or turning the link array into a simpler two dimensional array where I

Re: HTML helper in function?

2009-08-11 Thread JamesF
: Call to a member function link() on a non-object in... Any ideas? Is there a way to make the link() function global as you do a variable? There are some obvious work-arounds such as writing the anchor tag without the html helper, or turning the link array into a simpler two dimensional array where

Re: HTML helper in function?

2009-08-11 Thread Josh
as you do a variable? There are some obvious work-arounds such as writing the anchor tag without the html helper, or turning the link array into a simpler two dimensional array where I can then iterate the link() function. However, I am wonder how I might specifically address the question

Re: HTML helper in function?

2009-08-11 Thread JamesF
the html helper, or turning the link array into a simpler two dimensional array where I can then iterate the link() function. However, I am wonder how I might specifically address the question of making the html-link() function available to a function within a view file. I have

Re: HTML helper in function?

2009-08-11 Thread JamesF
hmm im not sure if this will work but you could try in your element: App:import('Helper', Html'); $html = new html(); does html helper work in other parts of your element outside the function? i usually have no problems at all using $html-link() within an element function. On Aug 11, 10:47 pm

Re: HTML helper in function?

2009-08-11 Thread JamesF
method error or non-object error. I think I will throw this all in an array - menu helper with the Html helper. That way I'll be able to reference the object with the link() function. Thanks for your help. On Aug 11, 11:15 pm, JamesF vacationrental...@gmail.com wrote: hmm im not sure

Re: HTML helper in function?

2009-08-11 Thread Josh
. I think I will throw this all in an array - menu helper with the Html helper. That way I'll be able to reference the object with the link() function. Thanks for your help. On Aug 11, 11:15 pm, JamesF vacationrental...@gmail.com wrote: hmm im not sure if this will work but you could try in your

Re: Modifying Html Helper Image method for localization support

2009-07-03 Thread daedalus
To: CakePHP cake-php@googlegroups.com Sent: Monday, June 15, 2009 6:24 AM Subject: Modifying Html Helper Image method for localization support Hello, I'm fairly new to CakePHP and have a question about the best way to accomplish a task. Here is my situation: I'm building a little localized

Re: Modifying Html Helper Image method for localization support

2009-06-15 Thread John Andersen
navigation buttons.  The most logical way to organize these images, it seems to me, is to put the images for each language into a folder bearing the language abbreviation in the img directory.  So, for instance, English images would be in img/ eng/. The app is working nicely now with Html helper

Modifying Html Helper Image method for localization support

2009-06-14 Thread daedalus
these images, it seems to me, is to put the images for each language into a folder bearing the language abbreviation in the img directory. So, for instance, English images would be in img/ eng/. The app is working nicely now with Html helper image calls such as $html-image('btn_action.gif

Re: Modifying Html Helper Image method for localization support

2009-06-14 Thread Adam Royle
@googlegroups.com Sent: Monday, June 15, 2009 6:24 AM Subject: Modifying Html Helper Image method for localization support Hello, I'm fairly new to CakePHP and have a question about the best way to accomplish a task. Here is my situation: I'm building a little localized app that incorporates a dozen

Re: quick tip: html helper - verbose linking + named anchor

2009-05-05 Thread JamesF
even better...that seems like a more cake-like method than my concat operator trick On May 4, 9:44 pm, brian bally.z...@gmail.com wrote: You can also pass '#' as an extra param: $html-link(         'View More Photos',         array(                 'controller'='listings',                

Re: quick tip: html helper - verbose linking + named anchor

2009-05-05 Thread Mohsin Kabir
I think it will be a solution $html-link('View More Photos','/listing/view/id#anchor'); Thanks, Mohsin On Tue, May 5, 2009 at 7:44 AM, brian bally.z...@gmail.com wrote: You can also pass '#' as an extra param: $html-link( 'View More Photos', array(

Re: quick tip: html helper - verbose linking + named anchor

2009-05-05 Thread brian
Moshin, that will work but will ignore any routes you might have. If you use the array syntax for creating links, Cake will look at your routes and create it from one of those, if there's a match. This can be really handy. On Mon, May 4, 2009 at 10:33 PM, Mohsin Kabir mohsint...@gmail.com wrote:

quick tip: html helper - verbose linking + named anchor

2009-05-04 Thread JamesF
hey there i'm a big fan of verbose linking but i was having a problem linking to a named anchor in the target page figured it out before i posted my question so figured i would share. code sans named anchor link: echo $html-link('View More Photos', array('controller'='listings',

Re: quick tip: html helper - verbose linking + named anchor

2009-05-04 Thread brian
You can also pass '#' as an extra param: $html-link( 'View More Photos', array( 'controller'='listings', 'action'='view', $id '#' = 'anchor' ) ); On Mon, May 4, 2009 at 5:55 PM, JamesF

Re: skype links with html helper

2009-04-03 Thread donnerbeil
Oh, thats easy. Is that HTML? Just kidding. Sometimes it's still easier without cakebut only sometimes Thanks for helping my brain thinking in a non-cake way Donnerbeil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: skype links with html helper

2009-04-03 Thread Sam Sherlock
of cource you also customise the built in html helper in cake/libs/views/helpers/ putting the customised version in your app/views/helpers/ - see the tags at the top would get you start but depending on how many you have - guess you only have the one - S 2009/4/3 donnerbeil donnerb

skype links with html helper

2009-03-31 Thread donnerbeil
Hi, Does anyone know, if it is possible to generate a link like: skype:username?call with the html-link() method? I tried this: $html-link('username','skype:username?call); output is: http://www.mydomain.com/skype:username?call Any ideas?

Re: skype links with html helper

2009-03-31 Thread Sam Sherlock
I think that using the html helper is unnecessary it is more complicated than simply echo 'a href=skype:' . $username . '?call' . $username . '/a'; - S 2009/3/31 donnerbeil donnerb...@googlemail.com Hi, Does anyone know, if it is possible to generate a link like: skype:username?call

Admin Routing with HTML Helper - Image Link Path Problem

2009-03-24 Thread JamesF
Hello all, I have an admin view set up at /view so in the browser it looks like (when logged in as admin): mysite.com/admin/view on this page is a thumbnail of one image with a link to another image. echo $html-link($html-image($thumbnail_url , array('alt' = 'Thumbnail')),

Re: Admin Routing with HTML Helper - Image Link Path Problem

2009-03-24 Thread brian
On Tue, Mar 24, 2009 at 1:42 PM, JamesF usaexportexpe...@gmail.com wrote: Hello all, I have an admin view set up at /view so in the browser it looks like (when logged in as admin): mysite.com/admin/view on this page is a thumbnail of one image with a link to another image. echo

Re: Admin Routing with HTML Helper - Image Link Path Problem

2009-03-24 Thread JamesF
well i didn't think of using plain old html and i have tested that approach and it DOES work. BUT.if I am using a thumbnail image to link to another image, I have to make sure to update the paths in my view if i ever change my webroot. seeing as how this is on a dev box in a subdirectory, it

HTML Helper issue in Blog Tute

2009-02-07 Thread jim
This is not showing as a link in my browser: td?php echo $html-link($post['Post']['title'], /posts/view/.$post ['Post']['id']); ?/td Just looks like this: link($post['Post']['title'], /posts/view/.$post['Post']['id']); ? Any ideas? I'm new to Cake and I assume it's a helper issue. I am not

Re: HTML Helper issue in Blog Tute

2009-02-07 Thread Alfredo Quiroga-Villamil
Do you have var $helpers = array('Html') in your controller or AppController ? Regards, Alfredo On Sat, Feb 7, 2009 at 9:41 AM, jim beeniecop...@gmail.com wrote: This is not showing as a link in my browser: td?php echo $html-link($post['Post']['title'], /posts/view/.$post

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: html helper issue

2008-10-01 Thread soosa
that the missing metas must be implemented by cake to complete the bundle! Thanks again. On Wed, Oct 1, 2008 at 11:22 AM, Lance Willett [EMAIL PROTECTED] wrote: is there any way to generate the output for those metas as dealing with description and keywords metas? Hi soosa, The meta HTML helper

Re: html helper issue

2008-10-01 Thread Samuel DeVore
a ticket it will likely never happen ;) S Thanks again. On Wed, Oct 1, 2008 at 11:22 AM, Lance Willett [EMAIL PROTECTED] wrote: 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

Re: Html Helper

2008-09-19 Thread nayan
\helper.php, line 148].can we use html helper in cake 1.2 ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group

Re: Html Helper

2008-09-12 Thread nayan
') in my form.it give me the following error Method HtmlHelper::input does not exist [CORE\cake\libs\view \helper.php, line 148].can we use html helper in cake 1.2 ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Html Helper

2008-09-12 Thread David C. Zentgraf
use html helper in cake 1.2 ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL

Slight HTML helper problem

2008-09-11 Thread tyhmeln
Hi I'm running the latest release candidate of CakePHP on a local Windows XAMPP installation. The web root of Apache is set to the CakePHP directory (not app/webroot). Whenever I use the HTML helper, it outputs URLs such as: css/style.css However, it should output URLs like this: /css

Html Helper

2008-09-10 Thread nayan
I am using cake 1.2 .When i use echo $html-input('FanType/ fantype_name') in my form.it give me the following error Method HtmlHelper::input does not exist [CORE\cake\libs\view \helper.php, line 148].can we use html helper in cake 1.2 ? --~--~-~--~~~---~--~~ You

Re: Html Helper

2008-09-10 Thread John David Anderson
On Sep 10, 2008, at 1:35 AM, nayan wrote: I am using cake 1.2 .When i use echo $html-input('FanType/ fantype_name') in my form.it give me the following error Method HtmlHelper::input does not exist [CORE\cake\libs\view \helper.php, line 148].can we use html helper in cake 1.2 ? Yes

Re: Html Helper

2008-09-10 Thread Donkeybob
HtmlHelper::input does not exist [CORE\cake\libs\view \helper.php, line 148].can we use html helper in cake 1.2 ? Yes, but you use the FormHelper in 1.2 for forms. :) -- John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Html Helper

2008-09-10 Thread Luiz Poleto
the following error Method HtmlHelper::input does not exist [CORE\cake\libs\view \helper.php, line 148].can we use html helper in cake 1.2 ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post

Html Helper get wrong!!

2008-06-24 Thread [EMAIL PROTECTED]
hi all: i get use the new cake version 1.2.0.7125 RC1, i code the Html helper like before: ?php echo $html-input('Artist/name');? but it got html: input name=Artist name/ could somebody tell me how should i do? --~--~-~--~~~---~--~~ You received

Re: Html Helper get wrong!!

2008-06-24 Thread Daniel Hofstetter
Hi, i get use the new cake version 1.2.0.7125 RC1, i code the Html helper like before: ?php echo $html-input('Artist/name');? but it got html: input name=Artist name/ could somebody tell me how should i do? HtmlHelper::input() is deprecated and shouldn't be used anymore. Most of it's

Re: Html Helper get wrong!!

2008-06-24 Thread dr. Hannibal Lecter
Also, be sure to use a dot instead of a slash: $form-input('Artist.name'); Happy baking! On Jun 24, 11:51 am, Daniel Hofstetter [EMAIL PROTECTED] wrote: Hi, i get use the new cake version 1.2.0.7125 RC1, i code the Html helper like before: ?php echo $html-input('Artist/name

Re: Html Helper get wrong!!

2008-06-24 Thread [EMAIL PROTECTED]
the Html helper like before: ?php echo $html-input('Artist/name');? but it got html: input name=Artist name/ could somebody tell me how should i do? HtmlHelper::input() is deprecated and shouldn't be used anymore. Most of it's functionality is now in the FormHelper

Re: HTML Helper webroot not correct

2008-05-22 Thread Dardo Sordi Bogado
It's documented since a long time ago: CakePHP 1.2: http://book.cakephp.org/view/32/installation CakePHP 1.1: http://manual.cakephp.org/view/308/installing-cakephp On Wed, May 21, 2008 at 10:34 AM, Joel Perras [EMAIL PROTECTED] wrote: Add the line: RewriteBase /~user/ to the .htaccess

Html Helper link onclick option question

2008-05-22 Thread jimbo
Hi, can anybody help me with this problem, I am creating a simple link in one of my views and I am having a problem giving an onClick option/ attribute for the link, as it seems cake is escaping/encoding the javascript function special characters like this: echo $html-link(foo, '#',

Re: Html Helper link onclick option question

2008-05-22 Thread fr3nch13
You have to turn off the escaping in the link functions, it auto escapes. Check out: http://www.donutczar.com/blog/?p=4 http://api.cakephp.org/1.2/class_html_helper.html On May 22, 4:56 am, jimbo [EMAIL PROTECTED] wrote: Hi, can anybody help me with this problem, I am creating a simple link

Re: HTML Helper webroot not correct

2008-05-21 Thread Tobes
Joel, Thanks for the advice, but I am not sure what to set it to. The site is currently in folder on URL http://localhost/~user/cakephptest/... The images that the default layout includes are referencing to http://localhost/img rather than http://localhost/~user/cakephptest/img Can you advise

Re: HTML Helper webroot not correct

2008-05-21 Thread Joel Perras
Add the line: RewriteBase /~user/ to the .htaccess files that already exist in your cake installation. They should be found in app/.htaccess and app/webroot/.htaccess (this last one may be redundant). Assuming you haven't changed the location of any Cake folders and files, this should solve

HTML Helper webroot not correct

2008-05-20 Thread Tobes
Hi all, I've just started playing with CakePHP have found that, because I'm not using a domain name to access my site, but instead using a sub- folder, the HTML helper is using / as the webroot, rather than the sub- folder the site is in. Any advice on how to correct this welcomed. Thanks, T

Re: HTML Helper webroot not correct

2008-05-20 Thread Joel Perras
- folder, the HTML helper is using / as the webroot, rather than the sub- folder the site is in. Any advice on how to correct this welcomed. Thanks, T --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group

Re: Custom html helper

2008-04-04 Thread grigri
There should be an official solution sometime involving aliased helpers. In the meantime, check out my hack here: http://groups.google.com/group/cake-php/browse_thread/thread/1c1c370160cb467f On Apr 4, 3:02 pm, Greg Baker [EMAIL PROTECTED] wrote: I want to create a custom HTML helper

Re: Custom html helper

2008-04-04 Thread Greg Baker
/1c1c3701... On Apr 4, 3:02 pm, Greg Baker [EMAIL PROTECTED] wrote: I want to create a custom HTML helper that extends htmlhelper.. However because of the code I have already that I don't want to change, I want to name this helper so that I can use $html-... in my views. Any way I can

Custom html helper

2008-04-04 Thread Greg Baker
I want to create a custom HTML helper that extends htmlhelper.. However because of the code I have already that I don't want to change, I want to name this helper so that I can use $html-... in my views. Any way I can do this? Normally if this was a new project I'd just create a new class

Re: Custom html helper

2008-04-04 Thread Matias Lespiau
HTML helper that extends htmlhelper.. However because of the code I have already that I don't want to change, I want to name this helper so that I can use $html-... in my views. Any way I can do this? Normally if this was a new project I'd just create a new class and use that in my

Re: Custom html helper

2008-04-04 Thread grigri
helpers. In the meantime, check out my hack here: http://groups.google.com/group/cake-php/browse_thread/thread/1c1c3701... On Apr 4, 3:02 pm, Greg Baker [EMAIL PROTECTED] wrote: I want to create a custom HTML helper that extends htmlhelper.. However because of the code I have

  1   2   >