Re: Properly setting up CacheHelper

2012-12-26 Thread Nvp
t might work > up to some point - and than it breaks. > > the App::uses can be compared to require statements. If you don't tell > cake what files are required it fill fail eventually. > > same goes for helpers, models, behaviors, ... > > > Am Mittwoch, 26. Dezember 2012

Re: Properly setting up CacheHelper

2012-12-26 Thread Nvp
ant that you always specify all used classes in your files at > the top. > > > Am Mittwoch, 26. Dezember 2012 16:00:40 UTC+1 schrieb Nvp: >> >> Hi! I have a strange issue with CacheHelper and perhaps it's because I do >> some error in configuration. >> Fo

Properly setting up CacheHelper

2012-12-26 Thread Nvp
Hi! I have a strange issue with CacheHelper and perhaps it's because I do some error in configuration. For the first time I encountered this problem while working on my main project. After it, I have downloaded CakePHP 2.2.4 and created an app for testing. As mentioned above I'm trying to use C

How to pass HABTM validation errors to FormHelper?

2012-11-01 Thread Nvp
Hi! I read many topics about HABTM validation in Cake but I can't figure out how to solve my problem. I have my main model – Restaurants, it has many HABTM relations to additional models. Now I'm building admin area, and I'm working with new controller in which I have public $uses = array(

Re: hasMany through - how to retrieve my data?

2012-09-17 Thread Nvp
r index. > > - "The cold winds are rising" > On Sep 16, 2012 5:17 PM, "Nvp" > wrote: > >> Hi! >> I built DB with tables: >> >> *restaurants* - main table >> >> *kitchens* - second table >> >> *kitchen_restaurants* -

hasMany through - how to retrieve my data?

2012-09-16 Thread Nvp
Hi! I built DB with tables: *restaurants* - main table *kitchens* - second table *kitchen_restaurants* - join table with fields: id, kitchen_id, restaurant_id *Model/Restaurant.php*: public $hasMany = array( 'KitchenRestaurant' ); *Model/Kitchen.php*: public $hasMany = array(

Re: How to show latest comments (sitewide)?

2012-08-16 Thread Nvp
I'm new to CakePHP, can you please provide me some example or expand the idea? On Thursday, August 16, 2012 11:27:38 PM UTC+4, ibejohn818 wrote: > > Get and Set the data in your app_controller > > > On Aug 16, 2012, at 12:12 PM, Nvp wrote: > > Hi! > I need to have

How to show latest comments (sitewide)?

2012-08-16 Thread Nvp
Hi! I need to have a sitewide sidebar which will contain 5 latest comments to articles. Should I use elements with requestAction + cache in default layout or it can be achieved in more simple way? I use CakePHP 2.2.1. Thanks. -- You received this message because you are subscribed to the Goo

$title_for_layout and what changes I need to do

2012-07-15 Thread Nvp
Hi! It's my first Cake project I have about 5-6 static pages they are served by the default PagesController. I havein my layout file and set('title_for_layout', 'Page Title'); ?> in my views files. So as I read on API page $title_for_layout is deprecated and will be removed in CakePHP 3.0,