Pools/betting sports links matched odds/

2015-07-14 Thread allisonmck84
Approaching successful betting site, Promote company products using your own links and your own websites to build up your own client/customer base as a third party Business on behalf of successfull company's under their licence and their terms and agreements under licences commis

Magento From local server to live web server, links not working

2014-06-05 Thread vinothkumar
Now, the homepage is working fine but every link on it directs you to a 404 not found error. Can't even access "/admin". -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google

Re: Building a tree menu with nested lists containing links

2013-03-25 Thread euromark
enu and/or suckerfish > > dropdowns. > > > > Model, controller and view are created according to the cookbook: > > http://book.cakephp.org/2.0/en/core-libraries/behaviors/tree.html > > > > Everything works fine BUT: > > > > If I build the menu vi

Re: Building a tree menu with nested lists containing links

2013-03-25 Thread lowpass
eTreeList the result is a flat list with > links: > > > Home >   Subcategory > > > I cannot turn his into a tree/drop-down menu with DOM manipulation because > the category hierarchy is not reflected in the HTML structure. > > To do so, I would need the tree built wi

Building a tree menu with nested lists containing links

2013-03-25 Thread Carsten Kozianka
Everything works fine BUT: If I build the menu via generateTreeList the result is a flat list with links: Home   Subcategory I cannot turn his into a tree/drop-down menu with DOM manipulation because the category hierarchy is not reflected in the HTML structure. To do so, I would need the tree built

Re: Dumb with links

2013-02-16 Thread AD7six
For simple links why wouldn't you use use the image function echo $this->Html->image('cake_icon.png', array('alt' => 'CakePHP', 'url' => 'http://cakephp.org')); http://api.cakephp.org/class/html-helper#method-HtmlHelpe

Re: Dumb with links

2013-02-16 Thread lowpass
On Sat, Feb 16, 2013 at 2:04 PM, Advantage+ wrote: > > Html->imageLink('', array(), '/');?> > > Not a big deal but it beats the whole shit you hav to type out. Yeah, that would save a good deal of typing -- if all your links point to "/". And

Dumb with links

2013-02-16 Thread Advantage+
/ * CREATE A IMAGE LINK * *** * * * * / public function

PaginatorHelper.php I updated to show disabled (current) links

2012-12-18 Thread Ersin Demirtas
Hi! I have updated the numbers function, the bold areas are the updated parts, please tell me if I did wrong, or if you have better code to replace. I did this because currentTag was not available under numbers function so I had to add my self. public function numbers($options = array()) { if

links outside cakephp root directory

2012-12-04 Thread Chris
hi guys,... how can I link outside cakephp root directory,... I have a link that I want to take to another URL ($dba['Dba']['url'] sets in DB table): link($dba['Dba']['name'], $dba['Dba']['url']) ?> but source show http://some_url_from_table (with root: dbas...) and I want it to be http

Re: links outside root directory

2012-12-04 Thread Chris
thanks angelxmoreno,... it solved,... I forgot to put slashes '//' in URL while creating or editing dba,... lol On Monday, December 3, 2012 8:36:01 PM UTC-8, angelxmoreno wrote: > > try a well formed url. > > "http://www. some_domain > inste

Re: links outside root directory

2012-12-04 Thread Chris
thanks Andras,... it solved,... I forgot to put slashes '//' in URL while creating or editing dba,... lol On Tuesday, December 4, 2012 12:21:54 AM UTC-8, Andras Kende wrote: > > Seems your have url as "www.domain.com" instead of "http://www.domains.com > " > in your database….. > > Its ugly, bu

Re: links outside root directory

2012-12-04 Thread Andras Kende
Seems your have url as "www.domain.com" instead of "http://www.domains.com"; in your database….. Its ugly, but you could try: link($dba['Dba']['name'], 'http://' . $dba['Dba']['url']) ?> might want to prefix your urls with "http://"; in the database Andras Kende http://www.kende.com On Dec 3, 2

Re: links outside root directory

2012-12-03 Thread Chris
thanks angelxmoreno,... however this didn't work,... link($dba['Dba']['name'], "$dba['Dba']['url']) ?> On Monday, December 3, 2012 8:36:01 PM UTC-8, angelxmoreno wrote: > > try a well formed url. > > "http://www. some_domain > instead of "ht

Re: links outside root directory

2012-12-03 Thread angelxmoreno
try a well formed url. "http://www. some_domain instead of "http:www. some_domain On Monday, December 3, 2012 10:40:43 PM UTC-5, Chris wrote: > > hi guys,... > how can I link outside root d

links outside root directory

2012-12-03 Thread Chris
hi guys,... how can I link outside root directory? link($dba['Dba']['name'], $dba['Dba']['url']) ?> this output with a root, in a view: http://www.hamayk.com/dbas/http:www.zippopeople.com> some_domain">Here is test but I want it to be: http://www.hamayk.com/dbas/http:www.zippopeople.com> s

Please send Links for tutorials of Restful via cakephp

2012-11-29 Thread kyi min han
I did not understand about http://book.cakephp.org/2.0/en/development/rest.html. I would like to learn restful via cakephp. Thz you. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed t

Re: Link checker suddenly reports nearly all links as http://www.domain.com/index.php/en/level1/level2...

2012-07-17 Thread DiabloGeto
you can use these rules set in all the other htaccess outside ur webroot of cake. RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.domain.com/$1 [R,L] RewriteRule^$/webroot/[L] RewriteRule(.*) /webroot/$1[L] and remove ur https redirect from htacc

Re: Link checker suddenly reports nearly all links as http://www.domain.com/index.php/en/level1/level2...

2012-07-17 Thread DiabloGeto
I assume that you are talking about your cakephp app or ststic pages as it sis not obvious from your mail at all. it depends where you have put ur htaccess. I expect u have placed the rule in webroot of your cakeapp, n not in webroot of ur webhosting. surely this rule is overriding some link fr

Link checker suddenly reports nearly all links as http://www.domain.com/index.php/en/level1/level2...

2012-07-17 Thread DigitalDude
Hey, I'm wondering why this happens, but within the last days the linkchecker reports nearly all links within my app with *index.php* within my urls! When I check the source of the website, there are no links with the index.php within. I cannot find out why these links are built. The

Re: How to omit controller name in pagination links?

2012-05-22 Thread rahajiyev
This line does it, put in template: $this->Paginator->options(array('url' => array('controller' => null))) Now all page links are generated without the controller name. Not sure if it's clean to be put it there and not in the controller, but I couldn'

How to omit controller name in pagination links?

2012-05-22 Thread rahajiyev
I have URL /operations configured to 'controller' => 'milli' But Cake builds pagination links such as /milli/operations/page:2 How can I tell it not to include the controller name milli so it's / operations/page:2 ? -- Our newest site for the community: C

Re: Little help with routes and links

2012-05-16 Thread Confused Dev
Thanks guys for all your tips... I couldn't wrap my head around http://book.cakephp.org/2.0/en/development/routing.html but now it's all clear... :) I ended up using lowpass solution and it all works great so thanks again... -- Our newest site for the community: CakePHP Video Tutorials http:/

Re: Little help with routes and links

2012-05-09 Thread lowpass
ello. > > I need help with defining some unusual routes. > > Here are my 2 tables Colors and Products: > > mysql> select * from colors; > ++--+ > | id | name | > ++--+ > |  1 | blue | > ++--+ > > mysql> select * from products; > ++--+--+ >

Re: pass some key in Pagination links

2012-05-09 Thread hoss7
no my action is "search" On Wednesday, May 9, 2012 12:27:39 PM UTC+3:30, hoss7 wrote: > > > i want pass some value in Pagination links > > like this: > > http://localhost/142tel/tels/search/page:2/name/miki > or > http://localhost/142tel/tels/search/name/mi

Re: pass some key in Pagination links

2012-05-09 Thread Marcus James
is your view and the page where you want your link to point are different? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe

Re: pass some key in Pagination links

2012-05-09 Thread hoss7
thanks, but i want send this values to some actions. On Wednesday, May 9, 2012 12:27:39 PM UTC+3:30, hoss7 wrote: > > > i want pass some value in Pagination links > > like this: > > http://localhost/142tel/tels/search/page:2/name/miki > or > http://localhost/142tel/t

Re: pass some key in Pagination links

2012-05-09 Thread Marcus James
Hi, In your views you can use it like this echo $this->Paginator->options(array('url' => $var1.'/'.$var2)); echo $this->Paginator-numbers(); where $var1 and $var2 are the two variable that we want to send. Enjoy Marcus -- Our newest site for the community: CakePHP Video Tutorials http:

pass some key in Pagination links

2012-05-09 Thread hoss7
i want pass some value in Pagination links like this: http://localhost/142tel/tels/search/page:2/name/miki or http://localhost/142tel/tels/search/name/miki/page:2 how can i edit *Defualt* Pagination links -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org

Re: Little help with routes and links

2012-05-08 Thread Jeremy Burns | Class Outfit
Can you throw some background on what you are trying to achieve (why these links?)? Jeremy Burns Class Outfit http://www.classoutfit.com On 8 May 2012, at 14:29:16, Mike Griffin wrote: > On Tue, May 8, 2012 at 1:26 PM, Confused Dev wrote: >> Hello. >> I'd like to

Re: Little help with routes and links

2012-05-08 Thread Mike Griffin
On Tue, May 8, 2012 at 1:26 PM, Confused Dev wrote: > Hello. > I'd like to have links like this: > http://example.com/items/blue/bowl/1 > > I don't even know where to begin to make it produce automatic links > like that. Any help would be greatly appreciated. You c

Re: Little help with routes and links

2012-05-08 Thread Michael Stelly
e | > ++--+ > > mysql> select * from products; > ++--+--+ > | id | name | color_id | > ++--+--+ > | 1 | bowl |1 | > ++--+--+ > > > Normally Cake will produce links like this: > http://example.com/products/view/1 > > I&

Little help with routes and links

2012-05-08 Thread Confused Dev
lor_id | ++--+--+ | 1 | bowl |1 | ++--+--+ Normally Cake will produce links like this: http://example.com/products/view/1 I'd like to have links like this: http://example.com/items/blue/bowl/1 I don't even know where to begin to make it produce automatic links lik

Re: Double URL in Links

2012-04-23 Thread Michael Gaiser
I was able to fix the issue by adding this to my core.php file. Configure::write('App.baseUrl', "/"); :) -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP rela

Re: Double URL in Links

2012-04-22 Thread Thiago Belem
How you're creating the links? Show us some code. -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando-sites.com.br <http://goo.gl/b1EEd> thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.we

Re: Double URL in Links

2012-04-22 Thread Michael Gaiser
No one has run into this? It seems that the links are pointing to my root directory instead of the directory that has been designated as the virtual domain. I'm not really good with .htaccess files so the problem might be in there although I am using the default and they do seem to work

Double URL in Links

2012-04-22 Thread Michael Gaiser
So, I am getting this strange error. My links have the site name listed twice in the url. http://www.mysite.com/mysite.com/users/view/9 Now, http://www.mysite.com brings up my home page as expected, but all the links on the site have the additional layer in the name for some reason. I am

Re: Auth.redirect - still problems with external links

2012-04-18 Thread Panos Gkikakis
ect, I will find an empty variable when coming > from external Links. > > Any Ideas? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.

Using $this->requestAction from shell is breaking the links

2012-03-21 Thread Eugenio
Hi, i am using the requestAction feacture to generate the cache of heavy traffic pages, the only problem is that the base param of the urls is /usr/share/php/cake/console/ instead of /, is there any way of solve this? now i am usign a str_replace to change de links but i want a better way to solve

Re: Links in the setFlash

2012-03-09 Thread majna
You can use Router like: $url = Router::url(array('controller'=>'users', 'action'=>'login')); $this-Session->setFlash(sprintf('Please login', $url)); On Friday, March 9, 2012 3:47:17 AM UTC+1, Thiago Silva wrote: > > Hello, &g

Links in the setFlash

2012-03-08 Thread Thiago Silva
Hello, I'm trying to insert links in the Session->setFlash method, but it's not working. I've tried to use Html helper in the controller but it crashed. I'm using version 2.1. Thanks, Thiago -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp

Re: Add class to active links

2012-02-29 Thread jeremyharris
('my link', array('controller' => 'users', > 'action' > > > => 'index'), array('class' => 'mylink')); > > > > > If my memory serves me correctly that is > > > >

Re: Add class to active links

2012-02-29 Thread euromark
#x27;my link', array('controller' => 'users', 'action' > > => 'index'), array('class' => 'mylink')); > > > If my memory serves me correctly that is > > > Sent from my iPhone > > > On

Re: Add class to active links

2012-02-29 Thread Kiran Ambati
y that is > > Sent from my iPhone > > On 29 Feb 2012, at 07:48, Kiran Ambati wrote: > > Hi > > I am using cakphp 'link' to generate anchor tags. Now i awnt to add a > class to active links to apply some styling to those links. Is there a way > to that. >

Re: Add class to active links

2012-02-29 Thread euromark
, > 'action' => 'index'), array('class' => 'mylink')); > > If my memory serves me correctly that is > > Sent from my iPhone > > On 29 Feb 2012, at 07:48, Kiran Ambati wrote: > > > > > > > > > Hi &

Re: Add class to active links

2012-02-29 Thread Stephen Speakman
s me correctly that is Sent from my iPhone On 29 Feb 2012, at 07:48, Kiran Ambati wrote: Hi I am using cakphp 'link' to generate anchor tags. Now i awnt to add a class to active links to apply some styling to those links. Is there a way to that. -- Thank you, Kiran. -- Our newe

Add class to active links

2012-02-28 Thread Kiran Ambati
Hi I am using cakphp 'link' to generate anchor tags. Now i awnt to add a class to active links to apply some styling to those links. Is there a way to that. -- *Thank you,* *Kiran.* -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the n

Re: Auth.redirect - still problems with external links

2012-02-17 Thread René Weber
> > > > If I open a page directly by enteringhttp://myserver/posts/view/123 > > > > he will redirect me to login and after successful login he will > > > > present post 123 to me. > > > > If I open a page by clicking on a link with the same URL, he will &g

Re: Auth.redirect - still problems with external links

2012-02-16 Thread René Weber
n a page directly by enteringhttp://myserver/posts/view/123 > > > he will redirect me to login and after successful login he will > > > present post 123 to me. > > > If I open a page by clicking on a link with the same URL, he will > > > redirect me to log

Re: Auth.redirect - still problems with external links

2012-02-15 Thread René Weber
clicking on a link with the same URL, he will > > redirect me to login and afterwars to / > > > Therese is NO AutoRedirect->false and there I even removed my Routes > > for testing. > > When I dump Auth.redirect, I will find an empty variable when coming > > from

Re: Auth.redirect - still problems with external links

2012-02-15 Thread euromark
and afterwars to / > > Therese is NO AutoRedirect->false and there I even removed my Routes > for testing. > When I dump Auth.redirect, I will find an empty variable when coming > from external Links. > > Any Ideas? -- Our newest site for the community: CakePHP Video Tutorials

Auth.redirect - still problems with external links

2012-02-15 Thread René Weber
rom external Links. Any Ideas? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsub

Switch languages links

2012-01-31 Thread Constantin.FF
)); Router::connect('/', array('controller' => 'pages', 'slug' => 'home'), array('pass' => array('slug'))); Router::connect("/:controller/:slug", array('action' => 'index'), arra

links in a "nested app"

2012-01-03 Thread roundrightfarm
I have a demo of my cake app nested inside my main app with a url like so localhost/demo/users/autologin the demo folder contains all the folders of a cakephp app such that when I reference a pdf file like it looks in the webroot folder in the demo app. How can can I reference the pdf file, w

Re: Paginator Links, need urgent help

2011-11-11 Thread heohni
           $text = ($sortDir == 'asc')?__('getting higher', > > true):__('getting lower', true); > >        ?> > >        Paginator->sort($text, 'OBJ_PREIS', $options > > = array('escape' => false, 'class' =&

Re: Paginator Links, need urgent help

2011-11-10 Thread Andras Kende
> >Paginator->sort($text, 'OBJ_PREIS', $options > = array('escape' => false, 'class' => 'sortdefault')); ?> > > on default, when I load the page the is shown as > getting higher > > When I click it, I get the same pa

Paginator Links, need urgent help

2011-11-10 Thread heohni
OBJ_PREIS', $options = array('escape' => false, 'class' => 'sortdefault')); ?> on default, when I load the page the is shown as getting higher When I click it, I get the same page again which is sorted by ASC and the links is still getting higher When I

Re: Alphabet links, eg click A and get all the entries beginning with the letter A

2011-05-10 Thread MeatSandwich
roach it: > > > // Loop through the ascii values for capital A-Z; > > // And make output a link for each letter > > // Do this in your view > > for ($i = 65; $i < 90; $i++) { > >     // chr() documentation -http://us.php.net/manual/en/function.chr.php > >     ech

Re: Alphabet links, eg click A and get all the entries beginning with the letter A

2011-05-10 Thread dreamingmind
tp://us.php.net/manual/en/function.chr.php >     echo $html->link(chr($i), array('action' => 'letter_find', > chr($i))) , ' - '; >     // This should output the links like this: A - B - C - D - ... > > } > > Now in your controller, the actio

Re: Alphabet links, eg click A and get all the entries beginning with the letter A

2011-05-10 Thread dreamingmind
n - http://us.php.net/manual/en/function.chr.php echo $html->link(chr($i), array('action' => 'letter_find', chr($i))) , ' - '; // This should output the links like this: A - B - C - D - ... } Now in your controller, the action letter_find() is going to g

Re: Alphabet links, eg click A and get all the entries beginning with the letter A

2011-05-10 Thread MeatSandwich
Hey, thanks for the response. I'm reading through the link you sent me but I'm a total neub (not all that familiar with php either!) so having a bit of trouble making sense of what exactly I'm meant to be doing. I'm I meant to create a link for each letter and then do a query each time someone cl

Re: Alphabet links, eg click A and get all the entries beginning with the letter A

2011-05-10 Thread dreamingmind
Cake will accept regular expressions in your find conditions. That should make your task pretty easy... as easy as writing regular expressions :-) http://book.cakephp.org/view/1017/Retrieving-Your-Data#Complex-Find-Conditions-1030 Regards, Don On May 10, 6:57 am, MeatSandwich wrote: > I have a

Alphabet links, eg click A and get all the entries beginning with the letter A

2011-05-10 Thread MeatSandwich
I have a table which holds the names of loads of charities in the UK. I want to have a page which will allow users to search through these charities but there's 1000s of them. I'd like to be able to have the alphabet written out A, B, C and so on with each letter a link to all the charities beginn

Re: Proper associations for a link table that links to the same table

2011-04-26 Thread turbo2ltr
nd/or other assemblies. So I > need a table to link one records in Parts to one or more other records > in the same Parts table. > > I have  AssyData which is a link table which has part_id and > assy_part_id.  The problem is the table links two ID's in the same > Parts table.  A

Proper associations for a link table that links to the same table

2011-04-23 Thread turbo2ltr
the same Parts table. I have AssyData which is a link table which has part_id and assy_part_id. The problem is the table links two ID's in the same Parts table. All the docs and tutorials seem to assume you are linking two different tables. Can CakePHP handle that or will I have to have a t

Re: My Links Pages

2011-04-08 Thread Ryan Schmidt
On Apr 8, 2011, at 04:01, dvvbrook79 wrote: > On Apr 8, 4:52 am, Ryan Schmidt wrote: >> On Apr 7, 2011, at 09:38, dvvbrook79 wrote: >>> http://www.disneyvillavacations.com/links/travel_services/page:1 >> >> Ok, I've taken a look at that page, but I didn't

Re: My Links Pages

2011-04-08 Thread dvvbrook79
Hi Ryan, Thanks for taking a look Basically as you can see when you go to this page there is page after page of travel service links...but what i want to do is have these numbered pages show up at the bottom of the home page, so that if a user clicks it, it will take them straight to the

Re: My Links Pages

2011-04-07 Thread Ryan Schmidt
On Apr 7, 2011, at 09:38, dvvbrook79 wrote: > Im fairly new to cakephp and php, but im learning fast. Im helping a > friend do some minor updates to his website, and have come stuck, > basically the links page (and system needs updating) needs sorting > out. > > What im

My Links Pages

2011-04-07 Thread dvvbrook79
Hi everyone, Im fairly new to cakephp and php, but im learning fast. Im helping a friend do some minor updates to his website, and have come stuck, basically the links page (and system needs updating) needs sorting out. What im trying to do is im trying to get all the links pages to display on

LinkableBehavior with limit and order in links

2011-03-24 Thread mikl
Hi, I've tried LinkableBehavior from https://github.com/Terr/linkable with great pleasure. But there's one thing I cannot get my head around. I'm using the group option to calculate the average by including fields of the type 'fields' => array('AVG(Car.price) AS price_avg') with 'group' => array('

Re: Links to previous forum messages

2011-02-26 Thread John Andersen
I am still on the old version, because I don't like the new design. It does not give me a quick overview of threads that are missing a reply. The old version does! :) I will stay on the old version as long as I can. Enjoy, John On Feb 26, 6:57 am, Jeremy Burns | Class Outfit wrote: > Hi John >

Re: Links to previous forum messages

2011-02-25 Thread Jeremy Burns | Class Outfit
John > > On Feb 25, 8:54 am, Jeremy Burns wrote: >> Slightly off topic, but relevant. I have noticed lately that links such as >> this one: >> >> http://groups.google.com/group/cake-php/msg/022622017dd329f8 >> >> ...which ought to take me to a forum

Re: Links to previous forum messages

2011-02-25 Thread John Andersen
Hi Jeremy, I just tried your link, and it went to the post, both signed in and not signed in! Do you have other examples? Enjoy, John On Feb 25, 8:54 am, Jeremy Burns wrote: > Slightly off topic, but relevant. I have noticed lately that links such as > this one: > > http://group

Links to previous forum messages

2011-02-24 Thread Jeremy Burns
Slightly off topic, but relevant. I have noticed lately that links such as this one: http://groups.google.com/group/cake-php/msg/022622017dd329f8 ...which ought to take me to a forum post are just taking me to the Google Groups index page. The id of the post does not seem to tie up to a post

Re: Links

2011-01-17 Thread euromark
uthorize-net-a... > > Jeremy Burns > Class Outfit > > jeremybu...@classoutfit.comhttp://www.classoutfit.com > > On 17 Jan 2011, at 13:03, Spha ps wrote: > > > > > > > > > Hi All, > > > Anyone know how to recognize links when a user adds a post so

Re: Links

2011-01-17 Thread Jeremy Burns | Class Outfit
ne know how to recognize links when a user adds a post so i can make the > link active on the view page ? > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed

Links

2011-01-17 Thread Spha ps
Hi All, Anyone know how to recognize links when a user adds a post so i can make the link active on the view page ? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the

Re: How to create a nested list with links?

2010-12-07 Thread Salines
I do, but I need to make a sitemap, which has three levels, root, child, and his child, such as menu > submenu >> subsubmenu Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to t

Re: How to create a nested list with links?

2010-12-05 Thread Amit Badkas
Hi, Have you tried Tree behavior, http://book.cakephp.org/view/1339/Tree ? Amit Badkas PHP Applications for E-Biz: http://www.sanisoft.com On Sun, Dec 5, 2010 at 9:42 PM, Salines wrote: > Please help > > I need to make a nested list with links. My database is ready for use, >

How to create a nested list with links?

2010-12-05 Thread Salines
Please help I need to make a nested list with links. My database is ready for use, it contains id, parent_id, name, slug, ... List should show the content tree. Is there any sample code, helper, plugin that does what I need? Check out the new CakePHP Questions site http://cakeqs.org and help

Re: What are the links between relationships and containable?

2010-11-18 Thread cricket
On Thu, Nov 18, 2010 at 1:02 PM, Jeremy Burns | Class Outfit wrote: > And don't forget it's $actsAs, not $actAs (cricket has identified this in his > response). I hadn't noticed. Been bit by that a couple of times (as with not providing the keys in 'fields'). Check out the new CakePHP Questions

Re: What are the links between relationships and containable?

2010-11-18 Thread Jeremy Burns | Class Outfit
And don't forget it's $actsAs, not $actAs (cricket has identified this in his response). Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 18 Nov 2010, at 17:45, cricket wrote: > On Thu, Nov 18, 2010 at 11:03 AM, Dan wrote: >> When using contain, I have to sp

Re: What are the links between relationships and containable?

2010-11-18 Thread cricket
On Thu, Nov 18, 2010 at 11:03 AM, Dan wrote: > When using contain, I have to specify the $actAs = Containable for it > to work, correct? Yes, of course. Just as with any other behavior. If you plan to use it a lot you can put it in AppModel's $actsAs array. > And if you have a linking table (HAB

Re: What are the links between relationships and containable?

2010-11-18 Thread Dan
When using contain, I have to specify the $actAs = Containable for it to work, correct? And if you have a linking table (HABTM), would you have to specify that model in the contain statement or can it be omitted (figured out by Cake)? On Nov 18, 10:03 am, euromark wrote: > @jeremy > yes, redunda

Re: What are the links between relationships and containable?

2010-11-18 Thread euromark
@jeremy yes, redundant as long as you dont use find("list") in this case (i consider it a bug which i already reported) you will need containable On 18 Nov., 14:54, Jeremy Burns | Class Outfit wrote: > Yes. If you try and contain a model that is not related (with $hasMany, > $belongsTo etc) it

Re: What are the links between relationships and containable?

2010-11-18 Thread Jeremy Burns | Class Outfit
Yes. If you try and contain a model that is not related (with $hasMany, $belongsTo etc) it will error. Don't forget that you can daisy chain them too by using nested arrays. So if you have: User->Profile->ProfileData->ProfileDataType ...you can do: $result = $this->User->find( 'all',

Re: What are the links between relationships and containable?

2010-11-18 Thread Dan
I meant Model relationships. So, they would be required for the containable behavior to work then? On Nov 18, 8:38 am, Jeremy Burns | Class Outfit wrote: > Do you mean relationships in the database or in the models? They are > essential in the models (else Cake won't know how to relate models) a

Re: What are the links between relationships and containable?

2010-11-18 Thread Jeremy Burns | Class Outfit
Do you mean relationships in the database or in the models? They are essential in the models (else Cake won't know how to relate models) and although not a Cake requirement I'd say it is paramount from a performance point of view in the database. Jeremy Burns Class Outfit jeremybu...@classoutf

What are the links between relationships and containable?

2010-11-18 Thread Dan
Basically, can containable work without having relationships specified? Or does containable rely on those relationships? In some tutorials, they specify to use recursive = -1 and then containable to get more optimized SQL. I can't help but think, what's the point specifying the relationships?? Ch

Re: problem with links helper

2010-11-13 Thread Dobrogor
Thanks Mattijs!!! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 unsubsc

Re: problem with links helper

2010-11-13 Thread Mattijs
gt; On 13 nov, 00:04, Dobrogor wrote: > Hi all! > I have a little problem. > I want to use russian languale at my links in main menu. I create my > links with html helper. > > For example, if i write  in code > Html->link('Works', array('controller' =>

problem with links helper

2010-11-12 Thread Dobrogor
Hi all! I have a little problem. I want to use russian languale at my links in main menu. I create my links with html helper. For example, if i write in code Html->link('Works', array('controller' => 'art_works', 'action' => 'show')) ?&g

Re: Auto genereated links do not include route "prefixes"

2010-10-22 Thread odd
Solved it. I've change the route like this: Router::connect('/mobile/:controller/:action/*', array('theme' => 'mobile')); and the link generation like this: $html->link('Title', array('plugin' => null, 'controller' => 'news', 'action' => 'view', 'theme' => $this->params['theme'], $id)); Check

Auto genereated links do not include route "prefixes"

2010-10-21 Thread odd
Hello, i have a small routing and linking problem, and i can't find a solution for it. The problematic route looks like this: Router::connect('/mobile/:controller/:action/*', array('mobile' => true)); Works fine so far, the problem are the links, they aren't c

Re: Change the Show/Edit/Delete links in the scaffold's index?

2010-09-22 Thread AD7six
On Sep 22, 9:58 am, Joshua Muheim wrote: > Thanks, but I asked explicitly for changing a template *without* > having to bake real ctp files. ;-) Then try reading the linked info instead of assuming what it's going to tell you ";-)" AD Check out the new CakePHP Questions site http://cakeqs.org

Re: Change the Show/Edit/Delete links in the scaffold's index?

2010-09-22 Thread Joshua Muheim
Thanks, but I asked explicitly for changing a template *without* having to bake real ctp files. ;-) On Wed, Sep 22, 2010 at 9:35 AM, AD7six wrote: > > > On Sep 22, 8:45 am, Joshua Muheim wrote: >> Yes I do. What a pity, I hoped there would be an easy solution for >> this. But thanks anyway! > >

Re: Change the Show/Edit/Delete links in the scaffold's index?

2010-09-22 Thread AD7six
On Sep 22, 8:45 am, Joshua Muheim wrote: > Yes I do. What a pity, I hoped there would be an easy solution for > this. But thanks anyway! There's an awesome resource which answers these sort of questions: http://tinyurl.com/29cljt2 ;) AD Check out the new CakePHP Questions site http://cakeqs.

Re: Change the Show/Edit/Delete links in the scaffold's index?

2010-09-21 Thread Joshua Muheim
Yes I do. What a pity, I hoped there would be an easy solution for this. But thanks anyway! On Tue, Sep 21, 2010 at 10:03 PM, andrewperk wrote: > I don't think so. Are you just using: > > var $scaffold; > > in your controllers? You would have to bake out the scaffolded views > and just make your

Re: Change the Show/Edit/Delete links in the scaffold's index?

2010-09-21 Thread andrewperk
I don't think so. Are you just using: var $scaffold; in your controllers? You would have to bake out the scaffolded views and just make your changes to your views/controller_name/index.ctp file. On Sep 21, 2:27 am, psybear83 wrote: > Hi all > > Instead of > > Show - Edit - Delete > > I'd like t

Change the Show/Edit/Delete links in the scaffold's index?

2010-09-21 Thread psybear83
Hi all Instead of Show - Edit - Delete I'd like to have Show (ID) - Edit (ID) - Delete (ID) in my scaffold's index. Is there an easy way to implement this *without* having to use hard-written index.ctp files? Thanks Josh Check out the new CakePHP Questions site http://cakeqs.org and help oth

  1   2   3   4   5   >