Re: display by categories from bootstrap

2012-11-09 Thread Chris
ok cricket,... the problem is solved ,... I have to read from a bootstrap,.. cause my categories setup is from bootstrap, and much easy to setup in bootstrap,... so this is what I have,... in case anyone wonder,... bootstrap: Configure::write('Blog.blog_category', array('select categry',

Re: display by categories from bootstrap

2012-11-09 Thread Jeremy Burns | Class Outfit
I think Cricket's (extremely valid) point is what happens when you (or one of those pesky users) wants to add another category? For a site that's backed by a database it seems really odd to extract just one small tier of data out of the data layer. Jeremy Burns Class Outfit

Re: display by categories from bootstrap

2012-11-09 Thread lowpass
Also, you still have a typo, fwiw. On Fri, Nov 9, 2012 at 12:25 PM, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: I think Cricket's (extremely valid) point is what happens when you (or one of those pesky users) wants to add another category? For a site that's backed by a

display by categories from bootstrap

2012-11-08 Thread Chris
hi guys,... I have a problem of displaying blogs by categories,... can someone help me please,... I'm in cake 1.3 have a categories setup in db from bootstrap: Configure::write('Blog.blog_category', array('select categry', 'realestate', 'autos', 'appliances', 'antique')); // etc,... I

Re: display by categories from bootstrap

2012-11-08 Thread lowpass
I don't understand quite what you're trying to do (what is array_search for?) but there's a typo: 'select categry' Instead of hard-coding your categories, why not just get them from the DB? You can always write the list to cache and update it whenever the categories change. On Thu, Nov 8, 2012

Re: display by categories from bootstrap

2012-11-08 Thread Chris
hi cricket, thank you for your response,... ok this is what I have now,... in bootstrap: Configure::write('Blog.blog_category', array('select categry', 'realestate', 'autos', 'appliances', 'antique')); which gives me categories in a url: my_site.com/blogs/category/autos and the blogs db I

Re: display by categories from bootstrap

2012-11-08 Thread Chris
opps,... db blogs, field categories getting numbers from bootstrap on categories select: On Thursday, November 8, 2012 5:00:41 PM UTC-8, Chris wrote: hi cricket, thank you for your response,... ok this is what I have now,... in bootstrap: Configure::write('Blog.blog_category',